|
我用的是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的吧,但是为什么还是不能正常使用呢。 |
|