|
uname -a
Linux debian10.toybrick 4.19.172 #130 SMP PREEMPT Wed Jun 16 19:25:46 CST 2021 armv7l GNU/Linux
创建方法
1, 修改 /usr/share/json/RV1126/sys/usb.json,
"config":"uvc",
重启设备,
PC已发现 UVC Camera
2. 运行 uvc-app 680 480
日志如下:
sudo ./uvc_app 640 480
[uvc_app][main]:VERSION:SDK V1.35 Nov 4 2024 08:33:24 media_set:0x0
[uvc_app][main]:size:460800[uvc_app][check_uvc_video_id]:found uvc video port.
[uvc_app][query_uvc_streaming_intf]:uvc_streaming_intf = 1
[uvc_app][query_uvc_streaming_maxpacket]:uvc_streaming_maxpacket = 1024
[uvc_app][uvc_video_id_add]:add uvc video id: 25
[uvc_app][uvc_gadget_main]:uvc_gadget_main io_method=2
[uvc_app][uvc_open]:uvc device is dwc3-gadget on bus gadget
[uvc_app][uvc_open]:uvc open succeeded, file descriptor = 8
[uvc_app][uvc_fill_streaming_control]:+++++++++dwMaxPayloadTransferSize:1024[uvc_app][uvc_fill_streaming_control]:+++++++++dwMaxPayloadTransferSize:1024
PC:
用 PotPlayer打开摄像头提示: 该媒体无法播放
用XUDedebuger查询, 提示: 获取CS长度失败, 错误码 0x80070490
|
|