Live video stream for streaming HTTP server
I have a streaming video server that provides an HTTP API for streaming video streams. The stream is sent as multipart/x-mixed-replace
, so each video frame is limited to a specific boundary line, for example --DigifortBoundary
. Also each frame has its own header Content-Type
, which according to this particular streaming server documentation can be one of the following:
- image / jpeg
- image / wavelet
- video / MPEG
- video / h 263
- video / h 264
Example stream:
--DigifortBoundary
Content-Type: image/jpeg
Content-Length: 35463
JPEG_DATA
JPEG_DATA
..
..
..
JPEG_DATA
--DigifortBoundary
Content-Type: image/jpeg
Content-Length: 34236
JPEG_DATA
JPEG_DATA
..
..
.. JPEG_DATA
The problem is I need to embed a video player in an HTML page, but I couldn't find any player that supports the content type multipart/x-mixed-replace
or even streaming over HTTP. I know that flash video players usually support RTMP or RTSP , but I have never heard of a player that supports HTTP video streaming.
Do you know of any web video player that can do this?
source to share
on the client side, VLC and Firefox can do - perhaps a lot more. Server side: http://en.wikipedia.org/wiki/Motion_JPEG#M-JPEG_over_HTTP mentions three:
- MJPG-Streamer: http://sourceforge.net/projects/mjpg-streamer/
- ffmpeg-server as part of ffmpeg http://www.ffmpeg.org/
- cambozola http://www.charliemouse.com:8080/code/cambozola/
This is what I personally learned:
- MJPG-Streamer will only compile with linux accessories (does not compile on MacOS X for example)
- ffmpeg-server on ubuntu, if installed with apt-get installation, is most likely outdated and buggy
- Cambozola seems to be more like a standalone client
source to share