Chinaunix首页 | 论坛 | 博客
  • 博客访问: 536059
  • 博文数量: 67
  • 博客积分: 1625
  • 博客等级: 上尉
  • 技术积分: 1053
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-04 14:40
文章分类

全部博文(67)

文章存档

2012年(67)

分类: LINUX

2012-07-11 22:03:55

以前体验时没有摄像头,现在有了一个USB摄像头,就再来体验一把!

首先按照友善之臂的《通过网络浏览CMOSUSB摄像头》说明的运行./start_uvc.sh

[root@FriendlyARM mjpg-streamer-mini2440-bin-r6]# ./start_uvc.sh

运行结果:(失败)

MJPG Streamer Version.: 2.0

 i: Using V4L2 device.: /dev/video0

 i: Desired Resolution: 640 x 480

 i: Frames Per Second.: 5

 i: Format............: MJPEG

Unable to set format: Invalid argument

 Init v4L2 failed !! exit fatal

 i: init_VideoIn failed

 

按照他的失败分析是我的摄像头不支持,说要换摄像头!

可是不甘心,我去哪里找摄像头了,最后偶然发现还有一个shell脚本:./start_uvc_yuv.sh

[root@FriendlyARM mjpg-streamer-mini2440-bin-r6]# ./start_uvc

./start_uvc.sh      ./start_uvc_yuv.sh

就尝试一下去运行:结果成功了!这也说明不能完全相信手册上讲的。

[root@FriendlyARM mjpg-streamer-mini2440-bin-r6]# ./start_uvc_yuv.sh

MJPG Streamer Version.: 2.0

 i: Using V4L2 device.: /dev/video0

 i: Desired Resolution: 640 x 480

 i: Frames Per Second.: 5

 i: Format............: YUV

 i: JPEG Quality......: 80

 format asked unavailable get width 160 height 120

 o: www-folder-path...: ./www/

 o: HTTP TCP port.....: 8080

 o: username:password.: disabled

o: commands..........: enabled

LINUX下的火狐浏览器进行浏览


WINDOWS下的IE浏览器:



ARM板上运行:

根据友善最后的介绍意思应试是还可以在ARM开发板上浏览运行,就将其用arm-linux-gcc进行编译然后ARM开发板上运行(失败):

编译:


file命令查看:


运行结果:

[root@FriendlyARM /]# ./mjpg_streamer

MJPG Streamer Version.: 2.0

ERROR: could not find input plugin

       Perhaps you want to adjust the search path with:

       # export LD_LIBRARY_PATH=/path/to/plugin/folder

       dlopen: input_uvc.so: cannot open shared object file: No such file or dir

ectory

意思应该是缺少某些库,这个问题先留在这!


阅读(7893) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

eastgeneral2013-08-16 20:39:57

赞一个,学习了