MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem
or other input plugins and streams them as M-JPEG via HTTP to
webbrowsers, VLC and other software. It is the successor of
uvc-streamer, a Linux-UVC streaming application with Pan/Tilt.
安装依赖sudo apt-get install libv4l-dev下载源码cd ~/Workshop
svn co mjpg-streamer
启动服务程序
cd mjpg-streamer/mjpg-stream
make clean all
sudo ./start.sh通过浏览器监控高清摄像头出来的效果还不错,不卡、挺流畅。
如果你不想通过浏览器查看监控流,亦可以通过mplayer播放器查看,不过效果就不堪入目了,画面不完整,而且马赛克非常严重,mplayer一直打印
... ...
Cache not filling!
Cache not filling!
Cache not filling!
... ...
增加mplayer缓存(-cache)、减小fps都不起作用(-fps)、优先使用IPV4均不起作用(vi ~/.mplayer/config,add prefer-ipv4=yes)。
mplayer -fps 30 -demuxer lavf "&ignored.mjpg"Reference1、
http://sourceforge.net/projects/mjpg-streamer/develop
阅读(7010) | 评论(0) | 转发(1) |