Thomas M.
Thomas M.

Reputation: 690

PHP: How to serve JPG files (from a webcam) as a stream or movie?

I have a set of images with filenames in the format webcam-<timestamp>.jpg located in a folder on the webserver. I want to serve them as a kind of timelapse slideshow to the client.

Is there a way to create a movie stream on-the-fly from these images (maybe as mjpeg) and serve this stream to a browser?

If not, is there way in PHP to take these files and convert them to a mjpeg file (or other movie format) and let the browser download/stream this file?

Do you have another idea how to create a kind of slideshow for webcam pictures like this (maybe using JS/AJAX)? Is there a project out there, which I can use (I am a really bad js scripter, so that would be a great help)?

In the past I used the jsmovie project, but jsmovie loads all pictures into the memory of the browser which can get quite a huge amount of RAM used on the client).

Any help or thoughts are appreciated!

Upvotes: 0

Views: 510

Answers (0)

Related Questions