hi3516ev300 v4l2 采集usb摄像头失败
2 E币
成为会员,免费下载资料
文件大小:1.83 KB
上传者:yangchar
时间:2021-03-14 15:08:30
下载量:16
Capability Informations:
driver: uvcvideo
card: Aoni HD Camera
bus_info: usb-xhci-hcd.0.auto-1
version: 00040925
capabilities: 84200001
supprot formarts:
1.Motion-JPEG
2.YUYV 4:2:2
Stream Format Informations:
type: 1
width: 640
height: 480
pixelformat: YUYV
field: 1
bytesperline: 1280
sizeimage: 614400
colorspace: 8
priv: -17970434
raw_date: �
Frame buffer 0: address=0xb6e39000, length=614400
Frame buffer 1: address=0xb6da3000, length=614400
Frame buffer 2: address=0xb6d0d000, length=614400
Frame buffer 3: address=0xb6c77000, length=614400
VIDIOC_STREAMON failed (-1), errno (5) input/output error
1.当前代码在linux pc/hi3516a上执行采集正常,但是hi3516ev300执行报错
2.测试过多种摄像头都无法采集到
3.附上源码,希望帮忙指正
enum v4l2_buf_type type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
ret = ioctl(fd, VIDIOC_STREAMON, &type);
if (ret < 0) {
printf("VIDIOC_STREAMON failed (%d), errno (%d)\n", ret, errno);
return ret;
}
`
展开》
折叠》