I’m working with a Logitech BRIO 4K webcam on a Jetson Orin NX (JetPack 6.2.1) and attempting to run the official MathWorks Simulink example for deploying a deep learning model that classifies webcam images directly on the Jetson.
Environment:
Jetson Orin NX (JetPack 6.2.1, V4L2 v1.22.1, GStreamer 1.20.3)
MATLAB & Simulink R2025b
MathWorks NVIDIA Jetson Support Package
Logitech BRIO 4K (USB 3.0)
I can verify that the camera works with v4l2-ctl and also through tools like cheese and OpenCV. The problem arises only when Simulink attempts to launch the model and access the camera.
During model execution, I consistently get the following runtime error:
MW_camera.c:365 ERROR Unsupported pixel format
I have confirmed from v4l2-ctl --list-formats-ext that the camera supports:
YUYV (YUV422)
MJPG
NV12
All tested at various resolutions including 640x480, 1280x720, 1920x1080.
I suspect this might be due to:
Simulink accessing the wrong camera device (IR sensor instead of RGB)
Logitech BRIO defaulting to MJPG, which is unsupported
GStreamer + V4L2 pipeline limitations in supported FourCC formats
My questions:
Is there a way to force YUYV or NV12 format at a specific resolution (e.g., 1280x720) on the Jetson Orin using V4L2 or GStreamer configs?
Have others successfully used Logitech BRIO 4K in uncompressed mode with V4L2/GStreamer on Jetson?
Is this a known issue when cameras expose multiple video devices (e.g., IR and RGB sensors)?
Any guidance on how to configure the Logitech BRIO or Jetson to ensure compatible pixel formats for Simulink/V4L2 access would be greatly appreciated.
you may use video converter, nvvidconv to convert the formats.
for instance,
here’s capture pipeline captures video from the /dev/video0 device at a resolution of 1280x720 and converts it to NV12 format. $ gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! 'video/x-raw(memory:NVMM), width=(int)1280, height=(int)720' ! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)NV12' ! nv3dsink -e
the root cause should be on the application side, you may dig into this for confirmation.