天嵌 ARM开发社区

 找回密码
 注册
查看: 3669|回复: 0

再问一下有关TQ2440开发板移植USB摄像头的问题

[复制链接]
wangshulin 发表于 2012-5-31 15:02:06 | 显示全部楼层 |阅读模式
我用的是2.6.30.4的内核,在开发板上插入USB摄像头后显示:
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=18ec, idProduct=3288
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB2.0 PC CAMERA
usb 1-1: Manufacturer: ARKMICRO
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB2.0 PC CAMERA (18ec:3288)
uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
input: USB2.0 PC CAMERA as /devices/platform/s3c2410-ohci/usb1/1-1/1-1:1.0/input/input2
这是不是说明我的摄像头已经被识别了?我在板子的/dev目录下,也找到了设备/dev/video0。
我按照光盘资料里的网络摄像机试验做了一遍,当我运行命令:mjpg_streamer -i "/lib/WebCam/input_uvc.so  -y" -o "/lib/WebCam/output_http -w 192.168.1.14:8080"(我板子的IP是192.168.1.14)后出现以下提示:
MJPG-streamer [691]: starting application
MJPG Streamer Version.: 2.0
MJPG-streamer [691]: MJPG Streamer Version.: 2.0

i: Using V4L2 device.: /dev/video0
MJPG-streamer [691]: Using V4L2 device.: /dev/video0

i: Desired Resolution: 640 x 480
MJPG-streamer [691]: Desired Resolution: 640 x 480

i: Frames Per Second.: 5
MJPG-streamer [691]: Frames Per Second.: 5

i: Format............: YUV
MJPG-streamer [691]: Format............: YUV

i: JPEG Quality......: 80
MJPG-streamer [691]: JPEG Quality......: 80

Unable to set format: Invalid argument
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
MJPG-streamer [691]: init_VideoIn failed
我看了论坛很多的贴子,说这是摄像头的输出格式不对反映,但是我在命令里不加-Y的话会出现这个错误: i: Frames Per Second.: 5
MJPG-streamer [692]uvcvideo: Failed to query (130) UVC probe control : 0 (exp. 26).
: Frames Per Second.: 5
我想我的摄像头应该输出格式应该是YUYV的吧,但是为什么还是不能正常使用呢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-18 16:48 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表