mjpg-streamer不显示Stream unavaliable错误解决方法
上篇文章中已经提到问题的解决方法和完整的挂载摄像头的教程了
相关推荐
摄像头安装stream unavaliable错误openwrt使用MJPG-streamer挂载
在此单独提出来是为了更好的给大家提供解决方案。
=====================================================
说白了这个问题的出现是因为摄像头的参数不正确,摄像头分辨率、fps、输出格式等信息
那么怎么知道一个摄像头的详细信息呢,如果你没有他的说明书或者网上都找不到和他相关的参数信息
那就直接插到ubuntu上,用下面的命令来看!
#sudo apt-get install luvcview #安装软件 jack@ubuntu:~$ luvcview -l #启动摄像头 luvcview 0.2.6 SDL information: Video driver: x11 A window manager is available Device information: Device path: /dev/video0 Stream settings: Frame format: YUYV (MJPG is not supported by device) Frame size: 640x480 Frame rate: 30 fps Available controls of device 'Camera 1' (Type 1=Integer 2=Boolean 3=Menu 4=Button)
看到上面的信息了,完全解决了我的疑问
Frame format: YUYV (MJPG is not supported by device)
Frame size: 640×480
Frame rate: 30 fps
根据这个信息回到openwrt的luci中重新设置参数就ok了!!
BB版本问题
BB上的mjpg-stream版本无法支持yuyv格式,尝试了恩山朋友说的更改PKG_SOURCE_URL也不成功。
#PKG_SOURCE_URL:=https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer-experimental PKG_SOURCE_URL:=https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer
所以索性将CC的直接移植过来,终于成功了!
在启动mjpg的时候logread看到日志如下
Sat May 28 04:13:14 2016 MJPG-streamer [1663]: starting application Sat May 28 04:13:14 2016 MJPG-streamer [1663]: MJPG Streamer Version: svn rev: exported Sat May 28 04:13:15 2016 MJPG-streamer [1663]: Using V4L2 device.: /dev/video0 Sat May 28 04:13:15 2016 MJPG-streamer [1663]: Desired Resolution: 640 x 480 Sat May 28 04:13:15 2016 MJPG-streamer [1663]: Frames Per Second.: 30 Sat May 28 04:13:15 2016 MJPG-streamer [1663]: Format............: YUYV #BB的版本显示为MJPEG,启动失败 Sat May 28 04:13:15 2016 MJPG-streamer [1663]: JPEG Quality......: 80 Sat May 28 04:13:15 2016 MJPG-streamer [1663]: TV-Norm...........: DEFAULT Sat May 28 04:13:15 2016 MJPG-streamer [1663]: www-folder-path...: /www/webcam/ Sat May 28 04:13:15 2016 MJPG-streamer [1663]: HTTP TCP port.....: 8080 Sat May 28 04:13:15 2016 MJPG-streamer [1663]: username:password.: disabled Sat May 28 04:13:15 2016 MJPG-streamer [1663]: commands..........: enabled Sat May 28 04:13:15 2016 MJPG-streamer [1663]: starting input plugin input_uvc.so Sat May 28 04:13:15 2016 MJPG-streamer [1663]: starting output plugin: output_http.so (ID: 00) Sat May 28 04:13:15 2016 MJPG-streamer [1663]: serving client: 192.168.1.100 Sat May 28 04:13:15 2016 MJPG-streamer [1663]: serving client: 192.168.1.100
注意到上面的Format…………: YUYV了吗,我的摄像头仅支持这个格式,但是BB的显示为MJEG。
下面把CC的直接传上来!直接删掉原来BB的mjpg,解压放进去即可。
链接: https://pan.baidu.com/s/1GTxBFfwRz2z5ym30iLbxlg?pwd=5egq 提取码: 5egq
点击链接加入群聊四群:722808830
点击链接加入群聊三群:751529538(已满)
点击链接加入群聊二群:376877156(已满)
点击链接加入群聊一群:622891808(已满)
饿了么红包
本站附件分享,如果附件失效,可以去找找看