天嵌 ARM开发社区

 找回密码
 注册
查看: 3533|回复: 8

测试usb无驱摄像头不能预览

[复制链接]
memechashang 发表于 2013-1-24 11:29:42 | 显示全部楼层 |阅读模式
我的摄像头输出格式支持mjpeg,在pc上可以预览,在TQ2440不行。

测试环境:内核和文件系统都是用天嵌提供的

终端打印信息如下:
[root@EmbedSky /sbin]# WebCam_USB
MJPG-streamer [652]: starting application
MJPG Streamer Version.: 2.0
MJPG-streamer [652]: MJPG Streamer Version.: 2.0

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

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

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

i: Format............: MJPEG
MJPG-streamer [652]: Format............: MJPEG

o: www-folder-path...: 192.168.1.6:8080/
MJPG-streamer [652]: www-folder-path...: 192.168.1.6:8080/

o: HTTP TCP port.....: 8080
MJPG-streamer [652]: HTTP TCP port.....: 8080

o: username:password.: disabled
MJPG-streamer [652]: username:password.: disabled

o: commands..........: enabled
MJPG-streamer [652]: commands..........: enabled

MJPG-streamer [652]: starting input plugin
MJPG-streamer [652]: starting output plugin: /lib/WebCam/output_http.so (ID: 00)
MJPG-streamer [652]: serving client: 192.168.1.11

PC终端看不到图:pc端开始收到303个字节,然后就没数据了。

希望天嵌的工程师帮我看看,这个问题我已经卡了很久了,之前也发一个贴“”
usb摄像头不能预览,不能输出数据。。。没解决。。。。很急很急啊!

TQ-ZQL 发表于 2013-1-24 11:33:07 | 显示全部楼层
本帖最后由 TQ-ZQL 于 2013-1-24 11:33 编辑

分辨率太了,调小点320×240,先用我们光盘镜像测试下。pda的文件系统
这是们这边的打印
usb 1-1: new full speed USB device using s3c2410-ohci and address 2
usb 1-1: New USB device found, idVendor=1871, idProduct=0101
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB2.0 Camera
usb 1-1: Manufacturer: AVEO Technology Corp.
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB2.0 Camera (1871:0101)
input: USB2.0 Camera as /devices/platform/s3c2410-ohci/usb1/1-1/1-1:1.0/input/input2

 楼主| memechashang 发表于 2013-1-24 12:03:29 | 显示全部楼层
TQ-ZQL 发表于 2013-1-24 11:33
分辨率太了,调小点320×240,先用我们光盘镜像测试下。pda的文件系统
这是们这边的打印
usb 1-1: new fu ...

还是不行,打印如下

[root@EmbedSky /]# mjpg_streamer -i "/lib/WebCam/input_uvc.so -r 320x240" -o "/l
ib/WebCam/output_http.so -w
>
> 192.168.1.6:8080"
MJPG-streamer [670]: starting application
MJPG Streamer Version.: 2.0
MJPG-streamer [670]: MJPG Streamer Version.: 2.0

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

i: Desired Resolution: 320 x 240
MJPG-streamer [670]: Desired Resolution: 320 x 240

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

i: Format............: MJPEG
MJPG-streamer [670]: Format............: MJPEG

o: www-folder-path...:

192.168.1.6:8080/
MJPG-streamer [670]: www-folder-path...:

192.168.1.6:8080/

o: HTTP TCP port.....: 8080
MJPG-streamer [670]: HTTP TCP port.....: 8080

o: username:password.: disabled
MJPG-streamer [670]: username:password.: disabled

o: commands..........: enabled
MJPG-streamer [670]: commands..........: enabled

MJPG-streamer [670]: starting input plugin
MJPG-streamer [670]: starting output plugin: /lib/WebCam/output_http.so (ID: 00)
MJPG-streamer [670]: serving client: 192.168.1.11
 楼主| memechashang 发表于 2013-1-24 12:04:50 | 显示全部楼层
TQ-ZQL 发表于 2013-1-24 11:33
分辨率太了,调小点320×240,先用我们光盘镜像测试下。pda的文件系统
这是们这边的打印
usb 1-1: new fu ...

我这边插上摄像头提示如下:
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=0ac8, idProduct=3610
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: Vimicro USB2.0 UVC PC Camera
usb 1-1: Manufacturer: Vimicro Co.,ltd
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device Vimicro USB2.0 UVC PC Camera (0ac8:3610)
input: Vimicro USB2.0 UVC PC Camera as /devices/platform/s3c2410-ohci/usb1/1-1/1-1:1.0/input/input2
 楼主| memechashang 发表于 2013-1-24 12:41:43 | 显示全部楼层
memechashang 发表于 2013-1-24 12:04
我这边插上摄像头提示如下:
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
u ...

你们提供的文件系统我都试过了。
TQ-ZQL 发表于 2013-1-24 13:58:07 | 显示全部楼层
不知道了是不是摄像头的问题,我们这里用的是广州天弟的一款usb摄像头。蓝色的,你可以看下。
TQ-ZQL 发表于 2013-1-24 13:58:47 | 显示全部楼层
不知道了是不是摄像头的问题,我们这里用的是广州天弟的一款usb摄像头。蓝色的,你可以看下。
 楼主| memechashang 发表于 2013-1-24 14:11:20 | 显示全部楼层
TQ-ZQL 发表于 2013-1-24 13:58
不知道了是不是摄像头的问题,我们这里用的是广州天弟的一款usb摄像头。蓝色的,你可以看下。

产品名称是什么,我想买回来看看。
TQ-ZQL 发表于 2013-1-24 16:14:52 | 显示全部楼层
就是usb摄像头。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-9 02:26 , Processed in 1.062506 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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