Gst-launch-1.0 not-negotiated

agx orin, jp6.0 36.3

1920*1536 60fps yuv sensor

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=1920,height=1536,framerate=60/1 ! nvvidconv ! video/x-raw,format=BGRx,width=640,height=480! autovideosink —— works well,but bellow command does not work

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=1920,height=1536,framerate=60/1 ! nvvidconv ! video/x-raw,format=BGRx,width=1920,height=1536! autovideosink

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=1920,height=1536,framerate=60/1 ! nvvidconv ! video/x-raw,format=BGRx,width=1920,height=1536 ! autovideosink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Got context from element ‘autovideosink0’: gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)“(GstGLDisplayX11)\ gldisplayx11-0”;
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Signal lost
Additional debug info:
../sys/v4l2/gstv4l2src.c(556): gst_v4l2src_query_preferred_size (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
No input source was detected - video frames invalid
New clock: GstSystemClock
Redistribute latency…
0:00:00.5 / 99:99:99.
(gst-launch-1.0:59063): GStreamer-CRITICAL **: 00:59:58.152: gst_mini_object_copy: assertion ‘mini_object != NULL’ failed

(gst-launch-1.0:59063): GStreamer-CRITICAL **: 00:59:58.152: gst_caps_get_structure: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:59063): GStreamer-CRITICAL **: 00:59:58.152: gst_structure_copy: assertion ‘structure != NULL’ failed

(gst-launch-1.0:59063): GStreamer-CRITICAL **: 00:59:58.152: gst_caps_append_structure_full: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:59063): GStreamer-CRITICAL **: 00:59:58.152: gst_caps_get_structure: assertion ‘GST_IS_CAPS (caps)’ failed

(gst-launch-1.0:59063): GStreamer-CRITICAL **: 00:59:58.152: gst_structure_copy: assertion ‘structure != NULL’ failed

(gst-launch-1.0:59063): GStreamer-CRITICAL **: 00:59:58.152: gst_caps_append_structure_full: assertion ‘GST_IS_CAPS (caps)’ failed
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)

Hello @lvjianming1,

Can you provide the output of the following command?

v4l2-ctl --all -d /dev/video0

I just want to first verify the sensor capabilities reported by v4l2.

best regards,
Andrew
Embedded Software Engineer at ProventusNova

Hi,
Please refer to steps in
Jetson AGX Orin FAQ

And you can try xvimagesink:

$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=1920,height=1536,framerate=60/1 ! nvvidconv !  "video/x-raw(memory:NVMM)" ! nvvidconv  ! video/x-raw,format=I420,width=1920,height=1536 ! xvimagesinksink sync=0

v4l2-ctl --all -d /dev/video0
Driver Info:
Driver name : tegra-video
Card type : vi-output, sgx-yuv-gmsl2 0-001a
Bus info : platform:tegra-capture-vi:2
Driver version : 5.15.136
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : tegra-camrtc-ca
Model : NVIDIA Tegra Video Input Device
Serial :
Bus info :
Media version : 5.15.136
Hardware revision: 0x00000003 (3)
Driver version : 5.15.136
Interface Info:
ID : 0x03000011
Type : V4L Video
Entity Info:
ID : 0x0000000f (15)
Name : vi-output, sgx-yuv-gmsl2 0-001a
Function : V4L2 I/O
Pad 0x01000010 : 0: Sink
Link 0x02000015: from remote pad 0x1000003 of entity ‘13e00000.host1x:nvcsi@15a00000-’ (Unknown sub-device (0002000a)): Data, Enabled
Priority: 2
Video input : 0 (Camera 2: no power)
Format Video Capture:
Width/Height : 1920/1536
Pixel Format : ‘UYVY’ (UYVY 4:2:2)
Field : None
Bytes per Line : 3840
Size Image : 5898240
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Limited Range)
Flags :

Camera Controls

                 group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                 hdr_enable 0x009a2004 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
                            0: 0 (0x0)
                            1: 1 (0x1)
                sensor_mode 0x009a2008 (int64)  : min=0 max=1 step=1 default=0 value=0 flags=slider
                       gain 0x009a2009 (int64)  : min=16 max=357 step=1 default=16 value=16 flags=slider
                   exposure 0x009a200a (int64)  : min=28 max=22001 step=1 default=22000 value=28 flags=slider
                 frame_rate 0x009a200b (int64)  : min=30000000 max=60000000 step=1 default=30000000 value=30000000 flags=slider
             exposure_short 0x009a200c (int64)  : min=28 max=22000 step=1 default=22000 value=28 flags=slider
              stereo_eeprom 0x009a200d (u8)     : min=0 max=4096 step=2 default=0 dims=[104] flags=read-only, has-payload
       sensor_configuration 0x009a2032 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[22] flags=read-only, volatile, has-payload
     sensor_mode_i2c_packet 0x009a2033 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
  sensor_control_i2c_packet 0x009a2034 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
                bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
                            0: 0 (0x0)
                            1: 1 (0x1)
            override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
                            0: 0 (0x0)
                            1: 1 (0x1)
               height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                 size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0 (1 0x1)
                            0: 1 (0x1)
                            1: 65536 (0x10000)
                            2: 131072 (0x20000)
           write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
   sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][18] flags=read-only, has-payload
    sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] flags=read-only, has-payload
  sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][36] flags=read-only, has-payload
          sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] flags=read-only, has-payload
           low_latency_mode 0x009a206d (bool)   : default=0 value=0
           preferred_stride 0x009a206e (int)    : min=0 max=65535 step=1 default=0 value=0
               sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=1920,height=1536,framerate=60/1 ! nvvidconv ! “video/x-raw(memory:NVMM)” ! nvvidconv ! video/x-raw,format=I420,width=1920,height=1536 ! xvimagesink sync=0
Setting pipeline to PAUSED …
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
../sys/xvimage/xvimagesink.c(1806): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
XVideo extension is not available
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …

Hi,
Please set

$ export DISPLAY=:0

And see if you can use xvimagesink plugin.

Hi, DaneLLL

after set export DISPLAY=:0, bellow command works well

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=1920,height=1536,framerate=60/1 ! nvvidconv ! “video/x-raw(memory:NVMM)” ! nvvidconv ! video/x-raw,format=I420,width=1920,height=1536 ! xvimagesink sync=0

Can it converted to BGRx format?

Hi,
The xvimagesink plugin should not be able to render BGRx. You may try fakesink:

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,width=1920,height=1536,framerate=60/1 ! nvvidconv ! “video/x-raw(memory:NVMM)” ! nvvidconv ! video/x-raw,format=BGRx,width=1920,height=1536 ! fakesink

Hi, DaneLLL

Can it be directly converted to BGR format?

Hi,
No, BGR is no supported in nvvidconv plugin. You would need to convert to BGRx first, and then can convert to BGR through software converter videoconvert plugin.

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