DS6.1 causes errors in well-behaved GST pipeline

Please provide complete information as applicable to your setup.

OS: Ubuntu 20.04
GST: 1.16.3
• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.1
• TensorRT Version 8.2.5.1
• NVIDIA GPU Driver Version (valid for GPU only) 515.48.07
• Issue Type( questions, new requirements, bugs) Questions/Bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

The pipeline SRC=./vid.mp4 && gst-launch-1.0 -v filesrc location="$SRC" ! qtdemux ! h264parse ! decodebin ! videoconvert ! autovideosink works perfectly if DS6.1 is not installed, but gives the following error once it is:

/GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad2: caps = video/x-raw(memory:NVMM), format=(string)NV12, width=(int)480, height=(int)270, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0: not negotiated
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
../subprojects/gstreamer/libs/gst/base/gstbasetransform.c(1431): gst_base_transform_reconfigure_unlocked (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0:
not negotiated
Additional debug info:
../subprojects/gst-plugins-good/gst/isomp4/qtdemux.c(6749): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

The pipeline also works fine in a development environment (python gst-env.py) where DS plugins aren’t available.

Try this.
SRC=./vid.mp4 && gst-launch-1.0 -v filesrc location=“$SRC” ! decodebin ! nvvideoconvert ! video/x-raw ! autovideosink

Yes, nvvideoconvert works, but should videoconvert break after installing DS?

What do you mean?

Considering that videoconvert works without having DS6.1 installed, is it normal for it to fail after installing DS6.1?

It should not break with Deepstream installed, what error you met?

As per the original question, I’m getting the follow when videoconvert is used:

gst-launch-1.0 filesrc location=$SRC ! qtdemux ! h264parse ! decodebin ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0: not negotiated
Additional debug info:
gstbasetransform.c(1423): gst_base_transform_reconfigure (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0:
not negotiated
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
qtdemux.c(6605): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Same result for gst-launch-1.0 filesrc location=$SRC ! decodebin ! videoconvert ! autovideosink

nvvideoconvert works fine though.

Since you installed Deepstream, decodebin will choose nvidia decoder to decode the video, the decoded byte stream are in GPU memory video/x-raw(memory:NVMM), you need nvvideoconvert to convert it to CPU memory, for autovideosink to connect with.

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

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