/GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Call to S_FMT failed

  1. xavier NX , R34.1.1

  2. Transplant NX native IMX219 driver, debug GMSL 9296+9295

  3. capture cmd:
    gst-launch-1.0 -v v4l2src device=“/dev/video0” ! video/x-raw,framerate=30/1,width=1920,height=1080,format=UYVY ! xvimagesink

  4. err log

root@ubuntu:/home/camera# gst-launch-1.0 -v v4l2src device=“/dev/video0” ! video/x-raw,framerate=30/1,width=1920,height=1080,format=UYVY ! xvimagesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, framerate=(fraction)30/1, width=(int)1920, height=(int)1080, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, framerate=(fraction)30/1, width=(int)1920, height=(int)1080, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = video/x-raw, framerate=(fraction)30/1, width=(int)1920, height=(int)1080, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, framerate=(fraction)30/1, width=(int)1920, height=(int)1080, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device ‘/dev/video0’ has no supported format
Additional debug info:
gstv4l2object.c(3776): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for UYVY @ 1920x1080: Invalid argument
Execution ended after 0:00:00.017685948
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …

root@ubuntu:/home/camera# v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'UYVY' (UYVY 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
	[1]: 'NV16' (Y/CbCr 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
	[2]: 'UYVY' (UYVY 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
root@ubuntu:/home/camera# v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'UYVY' (UYVY 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
	[1]: 'NV16' (Y/CbCr 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
	[2]: 'UYVY' (UYVY 4:2:2)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)

May I ask what caused the problem? This drive for me on the ORIN platform is normal

Does v4l2-ctl working well?

v4l2-ctl --stream-mmap --stream-count=100 --set-ctrl bypass_mode=0 -d /dev/video0

No error was reported with this command

Does it show the fps and terminal after 100 frames captured?

It hasn’t been collected yet because it’s in the debugging phase;

Now it is not clear why “gst-launch -1.0” is incorrect

How to solve the problem that “Call to S_FMT ”failed in “gst-launch-1.0 ” capture;

gst-launch-1.0 -v v4l2src device=“/dev/video0” ! video/x-raw,framerate=30/1,width=1920,height=1080,format=UYVY ! xvimagesink

The S_FMT is implement in your sensor driver. You may need to check the sensor driver.
Also I would suggest update to r35.1 that could be release soon. (Maybe tomorrow)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.