Gstreamer pipeline streaming stopped

Hi,

I was able to run the below pipeline in jetpack 4.4 version

gst-launch-1.0 -e v4l2src device=/dev/video2 ! queue ! video/x-raw, width=1920, height=1080, framerate=30/1 ! videorate ! video/x-raw, width=1920, height=1080, framerate=30/1 ! queue ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),format=RGBA” ! queue ! comp.sink_0 v4l2src device=/dev/video1 io-mode=2 do-timestamp=true ! queue ! image/jpeg,width=1920,height=1080, framerate=30/1 ! videorate ! image/jpeg,width=1920,height=1080,framerate=30/1 ! queue ! nvv4l2decoder mjpeg=1 ! nvvidconv ! queue ! video/x-raw ! queue ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),format=RGBA” ! queue ! comp.sink_1 nvcompositor background-w=1920 background-h=540 name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=960 sink_0::height=540 sink_1::xpos=960 sink_1::ypos=0 sink_1::width=960 sink_1::height=540 ! tee name=t1 t1. ! queue ! nvvidconv ! queue ! nvv4l2h264enc maxperf-enable=1 bitrate=4000000 profile=4 ! queue ! h264parse ! queue ! mux.video_0 audiomixer name=mixer ! queue ! audioconvert ! voaacenc ! mux.audio_0 alsasrc device=“hw:4,0” ! tee name=a1 ! queue ! audio/x-raw ! queue ! audioresample ! “audio/x-raw,rate=48000” ! queue ! mixer.sink_0 alsasrc device=“hw:3,0” ! tee name=a2 ! queue ! audio/x-raw ! queue ! audioresample ! “audio/x-raw,rate=48000” ! queue ! mixer.sink_1 mp4mux name=mux ! filesink location=“ff.mp4” t1. ! queue ! nvvidconv ! queue ! “video/x-raw(memory:NVMM),format=NV12” ! queue ! nvoverlaysink display-id=1 overlay-x=0 overlay-y=0 overlay-w=1920 overlay-h=1080 overlay=1 audiomixer name=mix ! queue ! audioconvert ! alsasink device=“hw:0,3” a1. ! queue ! audio/x-raw ! queue ! mix.sink_0 a2. ! queue ! audio/x-raw ! queue ! mix.sink_1

I am trying to run the same pipeline in jetpack 4.6 and get the below error

Opening in BLOCKING MODE
Opening in BLOCKING MODE
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
NvMMLiteOpen : Block : BlockType = 277
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 277
Redistribute latency…
Redistribute latency…
New clock: GstAudioSrcClock
Redistribute latency…
Redistribute latency…
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Redistribute latency…
H264: Profile = 100, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
Redistribute latency…
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 100, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
WARNING: from element /GstPipeline:pipeline0/GstMP4Mux:mux: Can’t change input format at runtime.
Additional debug info:
gstqtmux.c(5757): gst_qt_mux_video_sink_set_caps (): /GstPipeline:pipeline0/GstMP4Mux:mux:
pad video_0 refused renegotiation to video/x-h264, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)3.2, width=(int)1920, height=(int)540, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, chroma-format=(string)4:2:0, bit-depth-luma=(uintOpening in BLOCKING MODE
Opening in BLOCKING MODE
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
NvMMLiteOpen : Block : BlockType = 277
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 277
Redistribute latency…
Redistribute latency…
New clock: GstAudioSrcClock
Redistribute latency…
Redistribute latency…
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Redistribute latency…
H264: Profile = 100, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
Redistribute latency…
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 100, Level = 0
NVMEDIA_ENC: bBlitMode is set to TRUE
WARNING: from element /GstPipeline:pipeline0/GstMP4Mux:mux: Can’t change input format at runtime.
Additional debug info:
gstqtmux.c(5757): gst_qt_mux_video_sink_set_caps (): /GstPipeline:pipeline0/GstMP4Mux:mux:
pad video_0 refused renegotiation to video/x-h264, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)3.2, width=(int)1920, height=(int)540, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, codec_data=(buffer)01640c20ffe1000c67640c20ac2ca8078045fb4001000468ee3cb0
WARNING: from element /GstPipeline:pipeline0/GstMP4Mux:mux: Can’t change input format at runtime.
Additional debug info:
gstqtmux.c(5757): gst_qt_mux_video_sink_set_caps (): /GstPipeline:pipeline0/GstMP4Mux:mux:
pad video_0 refused renegotiation to video/x-h264, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)3.2, width=(int)1920, height=(int)540, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, codec_data=(buffer)01640c20ffe1000c67640c20ac2ca8078045fb4001000468ee3cb0
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
ERROR: from element /GstPipeline:pipeline0/GstQueue:queue0: Internal data stream error.
Additional debug info:
gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline0/GstQueue:queue0:
streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src1: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1:
streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstQueue:queue4: Internal data stream error.
Additional debug info:
gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline0/GstQueue:queue4:
streaming stopped, reason not-negotiated (-4)
)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, codec_data=(buffer)01640c20ffe1000c67640c20ac2ca8078045fb4001000468ee3cb0
WARNING: from element /GstPipeline:pipeline0/GstMP4Mux:mux: Can’t change input format at runtime.
Additional debug info:
gstqtmux.c(5757): gst_qt_mux_video_sink_set_caps (): /GstPipeline:pipeline0/GstMP4Mux:mux:
pad video_0 refused renegotiation to video/x-h264, stream-format=(string)avc, alignment=(string)au, profile=(string)high, level=(string)3.2, width=(int)1920, height=(int)540, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, chroma-site=(string)jpeg, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, codec_data=(buffer)01640c20ffe1000c67640c20ac2ca8078045fb4001000468ee3cb0
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
ERROR: from element /GstPipeline:pipeline0/GstQueue:queue0: Internal data stream error.
Additional debug info:
gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline0/GstQueue:queue0:
streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src1: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1:
streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstQueue:queue4: Internal data stream error.
Additional debug info:
gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline0/GstQueue:queue4:
streaming stopped, reason not-negotiated (-4)

What can be the issue for this scenario?

Hi,
It looks like the v4l2 sources are not configured correctly. Please refer to steps in Jetson Nano FAQ to configure exact format, width,height,framerate fitting the supported mode.

1 Like

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