MJPEG Stream Information

I get MJPEG stream from my camera. When I watch video data with a hex editor, it seems that it does not contain streaming information. I just see one raw JPEG after another, but there is no frame rate information, etc.

Is there no meta information for MJPEG or is it only related to the camera that I use? If there is no stream information, how can a player know how to quickly play a video?

+5
source share
3 answers

Lack of metadata is normal. IP cameras usually send MJPEG in this way, one JPEG image after another as a stream. This is the simplest MJPEG file. If you took a bunch of jpegs, put them together in a large giant file and pass it to ffmpeg, it will see it as a valid mjpeg file. Some cameras will add an extra header to contain audio data, but need not be considered a valid jpeg movement.

Many cameras will have a header, such as an X-Framerate, in the HTTP header when sending a stream, or you can set it as part of the camera configuration. However, when the camera sends only jpegs, there is no way to tell from the stream itself what the frame rate is.

+6
source

- MJPEG , ? , , ?

, IP- , , . IP- , ( ! ). , .

IP- . , . . -. ​​ ( ) - - .

. ​​ " ".

+3

Typically, MJPEG data is sent inside a streamlined stream media such as AVI or MOV (quicktime). The shell format will contain the frame rate and information about additional audio data.

0
source

All Articles