How does MPlayer recognize an MJPEG stream?

帅比萌擦擦* 提交于 2021-02-07 19:46:01

问题


Since MJPEG over http consists basically on the transmission of a series of JPEG images seperated by a defined seperator, how does MPlayer recognize that it is an MJPEG stream?

Thank you


回答1:


Have a look at:

MplayerMjpegStreamViewing < Motion < Foswiki

e.g.

mplayer -fps 4 -demuxer lavf http://rpi-6:8080/?action=stream

does the job for me. Suitable for a streaming server running on a Raspberry like this:

/usr/local/bin/mjpg_streamer -o output_http.so -w ./www -i input_raspicam.so -x 1920 -y 1440 -fps 3 -hf -vf


来源:https://stackoverflow.com/questions/43369429/how-does-mplayer-recognize-an-mjpeg-stream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!