Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2095010
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2011-06-28 23:30:04

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"













Reference
1、http://sourceforge.net/projects/mjpg-streamer/develop
阅读(6934) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~