Camera preview failed

Hi

We upgraded our camera driver to L4T R32.5.1 on AGX and got preview failed with some gstreamer command.
The thing is the command works well with R32.4.3.

The command we used is as below.
gst-launch-1.0 -vvv -e v4l2src device=“/dev/video0” ! “video/x-raw, width=1920,height=1080, format=(string)UYVY” ! nvvidconv ! “video/x-raw(memory:NVMM), width=640, height=320, format=(string)I420” ! nvvidconv ! nv3dsink sync=false

And got the error message.
nvidia@nvidia-desktop:~$ ./1.sh
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)UYVY, framerate=(fraction)60/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, format=(string)UYVY, framerate=(fraction)60/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)320, framerate=(fraction)60/1, interlace-mode=(string)progressive, format=(string)I420, pixel-aspect-ratio=(fraction)8/9
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)320, framerate=(fraction)60/1, interlace-mode=(string)progressive, format=(string)I420, pixel-aspect-ratio=(fraction)8/9

(gst-launch-1.0:11051): GLib-CRITICAL **: 16:11:13.079: g_array_remove_index: assertion ‘index_ < array->len’ failed

(gst-launch-1.0:11051): GStreamer-CRITICAL **: 16:11:13.079: gst_caps_remove_structure: assertion ‘idx <= gst_caps_get_size (caps)’ failed

(gst-launch-1.0:11051): GStreamer-CRITICAL **: 16:11:13.079: gst_caps_remove_structure: assertion ‘idx <= gst_caps_get_size (caps)’ failed

(gst-launch-1.0:11051): GStreamer-CRITICAL **: 16:11:13.079: gst_structure_set_parent_refcount: assertion ‘refcount != NULL’ failed

(gst-launch-1.0:11051): GStreamer-CRITICAL **: 16:11:13.079: gst_caps_features_set_parent_refcount: assertion ‘refcount != NULL’ failed
free(): invalid pointer
./1.sh: line 1: 11051 Aborted (core dumped) gst-launch-1.0 -vvv -e v4l2src device=“/dev/video0” ! “video/x-raw, width=1920,height=1080, format=(string)UYVY” ! nvvidconv ! “video/x-raw(memory:NVMM), width=640, height=320, format=(string)I420” ! nvvidconv ! nv3dsink sync=false

Plus, preview worked well with the following command.

gst-launch-1.0 v4l2src device=/dev/video1 ! “video/x-raw, format=(string)UYVY, width=(int)1920, height=(int)1080” ! fpsdisplaysink text-overlay=1 video-sink=xvimagesink sync=0 -v

Thank you for any advice,

Hi,
There are width, height, format in the capability. Please also set framerate. We have steps in
Jetson Nano FAQ
Q: I have a USB camera. How can I launch it on Jetson Nano?

Hi DaneLLL,

Yes. Cameras preview ok now.

Thank you for your support,