cancel
Showing results for 
Search instead for 
Did you mean: 

open USB UVC web camera start error

cool
Associate

hi:

I’m using the STM32N6570-DK board to develop a USB-host application that connects to a UVC webcam.
I started from the example in
STM32Cube_FW_N6_V1.2.0/Projects/STM32N6570-DK/Applications/USBX/Ux_Host_VIDEO.
At run-time the start-up fails here:
status = ux_host_class_video_start(video); // returns 0x54
Looking at ux_api.h, 0x54 equals
#define UX_FUNCTION_NOT_SUPPORTED 0x54
I’m now stuck. Could you give me some pointers on how to debug and solve this?
Thanks a lot!
Board: STM32N6570-DK
Web-cam info (Windows):
PS D:\workspace\temp> ffmpeg -hide_banner -list_options true -f dshow -i video="WEB CAMER"
[dshow @ 00000189a52882c0] DirectShow video device options (from video devices)
[dshow @ 00000189a52882c0] Pin "捕获" (alternative pin name "0")
[dshow @ 00000189a52882c0] vcodec=mjpeg min s=1280x720 fps=30 max s=1280x720 fps=30
[dshow @ 00000189a52882c0] vcodec=mjpeg min s=1280x720 fps=30 max s=1280x720 fps=30 (pc, bt470bg/bt709/unknown, center)
[dshow @ 00000189a52882c0] vcodec=mjpeg min s=640x480 fps=30 max s=640x480 fps=30
[dshow @ 00000189a52882c0] vcodec=mjpeg min s=640x480 fps=30 max s=640x480 fps=30 (pc, bt470bg/bt709/unknown, center)
[dshow @ 00000189a52882c0] vcodec=mjpeg min s=320x240 fps=30 max s=320x240 fps=30
[dshow @ 00000189a52882c0] vcodec=mjpeg min s=320x240 fps=30 max s=320x240 fps=30 (pc, bt470bg/bt709/unknown, center)
[dshow @ 00000189a52882c0] pixel_format=yuyv422 min s=640x480 fps=30 max s=640x480 fps=30
[dshow @ 00000189a52882c0] pixel_format=yuyv422 min s=640x480 fps=30 max s=640x480 fps=30 (tv, bt470bg/bt709/unknown, topleft)
[dshow @ 00000189a52882c0] pixel_format=yuyv422 min s=480x320 fps=30 max s=480x320 fps=30
[dshow @ 00000189a52882c0] pixel_format=yuyv422 min s=480x320 fps=30 max s=480x320 fps=30 (tv, bt470bg/bt709/unknown, topleft)
[dshow @ 00000189a52882c0] pixel_format=yuyv422 min s=320x240 fps=30 max s=320x240 fps=30
[dshow @ 00000189a52882c0] pixel_format=yuyv422 min s=320x240 fps=30 max s=320x240 fps=30 (tv, bt470bg/bt709/unknown, topleft)
Error opening input file video=WEB CAMER.

The log information I added:
>>>>>video live start process video_thread_entry 100
state:start video_thread_entry 198
ssssss start video
ssssss start video status:84 wit count:0
ssssss start video status:84 wit count:1
ssssss start video status:84 wit count:2
>>>>>video live start process video_thread_entry 100
sate:idle hard wait 2 secvideo_thread_entry 104
start get first format data 108
first format reqid:1
first format subtype:6
first format desp:3
frame data reqid:1
frame data subtype:6
start get frame data 135
frame data get reqid:1
frame data get subtype:36
frame data get frmint:333333
frame data get height:720
frame data get width:1280
frame data get inttype:1
frame data get intervals:
start set param data 167
get max_payload_size:3069
update start 192
>>>>>video live start process video_thread_entry 100
state:start video_thread_entry 198
ssssss start video
ssssss start video status:84 wit count:0
ssssss start video status:84 wit count:1
ssssss start video status:84 wit count:2
2 REPLIES 2
Julian E.
ST Employee

Hello @cool,

 

Do you think this could help you? 

STMicroelectronics/x-cube-n6-ai-h264-usb-uvc: An AI software application package demonstrating complex use case on STM32N6 product: camera capture, people detection inference on NPU, H264 encoding and USB UVC streaming to host.

 

If not let me know so I can look for the person in charge of the usbX project and hopefully find some answers.

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
dumb
Associate II

Hello, I encountered the same error as you: status = ux_host_class_video_start(video); // returns 0x54. Have you solved this problem? If so, could you share your solution