Run gstreamer ,got error

gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! “video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1” ! nvvidconv ! “video/x-raw(memory:NVMM),format=(string)I420” ! nv3dsink -ev
Setting pipeline to PAUSED …
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNv3dSink:nv3dsink0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesink.c(5367): gst_base_sink_change_state (): /GstPipeline:pipeline0/GstNv3dSink:nv3dsink0:
Failed to start
Setting pipeline to NULL …
Freeing pipeline …

CSI Camera Param:
v4l2-ctl -d /dev/video0 --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)
            Size: Discrete 1280x720
                    Interval: Discrete 0.017s (60.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.008s (130.000 fps)
    [1]: 'NV16' (Y/CbCr 4:2:2)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1280x720
                    Interval: Discrete 0.017s (60.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.008s (130.000 fps)
    [2]: 'UYVY' (UYVY 4:2:2)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1280x720
                    Interval: Discrete 0.017s (60.000 fps)
            Size: Discrete 640x480
                    Interval: Discrete 0.008s (130.000 fps)

and
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! “video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1” ! nvvidconv ! “video/x-raw(memory:NVMM),format=(string)I420” ! nvdrmvideosink -ev
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstNvV4l2CameraSrc:nvv4l2camerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)UYVY, interlace-mode=(string)progressive, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)UYVY, interlace-mode=(string)progressive, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, framerate=(fraction)30/1, format=(string)I420
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, framerate=(fraction)30/1, format=(string)I420
cannot create framebuffer
Cannot create frame buffer
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, framerate=(fraction)30/1, format=(string)I420
cannot create framebuffer
Cannot create frame buffer
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)UYVY, interlace-mode=(string)progressive, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)UYVY, interlace-mode=(string)progressive, framerate=(fraction)30/1
cannot create framebuffer
Cannot create frame buffer
gst_nvvconv_transform: NvBufSurfTransform Failed
ERROR: from element /GstPipeline:pipeline0/GstNvV4l2CameraSrc:nvv4l2camerasrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstNvV4l2CameraSrc:nvv4l2camerasrc0:
streaming stopped, reason error (-5)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
cannot create framebuffer
Cannot create frame buffer
cannot create framebuffer
Cannot create frame buffer
cannot create framebuffer
Cannot create frame buffer

^Chandling interrupt.
Interrupt: Stopping pipeline …
Interrupt while waiting for EOS - stopping pipeline…
Execution ended after 0:00:26.371339089
Setting pipeline to NULL …
Freeing pipeline …

Environment:
Jetson AGX ORIN 64gb
version 5.0.1-b118
R34 (release, REVISION: 1.1

Hi,

Some quick suggestions to discard other problems at the device driver level.

  1. Have you tried capturing the streaming with v4l2-ctl capture directly?
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat='UYVY' --set-ctrl bypass_mode=0 --stream-mmap --stream-count=30
  1. Also, similarly have you tried with a simpler GStreamer pipeline?
GST_DEBUG=2 gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! “video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1” !  fakesink silent=false -v

Jafet Chaves,
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

Thanks for the reply, these commands work without errors。

Hi,
Please break down the pipeline and try the commands:

gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 num-buffers=166 ! "video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1" ! fakesink
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 num-buffers=166 ! "video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! fakesink
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 num-buffers=166 ! "video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvv4l2h264enc ! h264parse ! matroskamux ! filesink location=test.mkv

If all commands are working, the last command will generate a video file. Please check if the content is good.

hi
thank you for your reply, the information as follows:
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 num-buffers=166 ! “video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1” ! fakesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Got EOS from element “pipeline0”.
Execution ended after 0:00:05.633812011
Setting pipeline to NULL …
Freeing pipeline …

gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 num-buffers=166 ! “video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1” ! nvvidconv ! “video/x-raw(memory:NVMM),format=(string)I420” ! fakesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
gst_nvvconv_transform: NvBufSurfTransform Failed
ERROR: from element /GstPipeline:pipeline0/GstNvV4l2CameraSrc:nvv4l2camerasrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstNvV4l2CameraSrc:nvv4l2camerasrc0:
streaming stopped, reason error (-5)
Execution ended after 0:00:00.086800849
Setting pipeline to NULL …
Freeing pipeline …

Hi,
Please use Jetpack 5.1.1(r35.3.1). 5.0.1 is developer preview and not stable.

Given the information so far I would say at this point it does not seem to be an issue with the device driver of your image sensor. One ultimate test to discard this would be perhaps to check with the test pattern element:

gst-launch-1.0 videotestsrc is-live=true ! nvvidconv ! "video/x-raw(memory:NVMM),format =(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1" ! nvvidconv !  "video/x-raw(memory:NVMM),format=(string)I420" ! fakesink silent=false -v

I would agree with DaneLLL it is best to test again in a production quality release like JetPack 5.1.1, JetPack 5.1 or JetPack 5.0.2

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