Force-sw-decoders in uridecodebin is not work well

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) 3090 rtx
• DeepStream Version 9.0
• JetPack Version (valid for Jetson only)
• TensorRT Version deepstream installation 9.0 guide
• NVIDIA GPU Driver Version (valid for GPU only) 590
• Issue Type( questions, new requirements, 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I am using GStreamer/DeepStream with uridecodebin.

I want the input stream to be decoded using a software decoder, so I set:

uri_decode_bin.set_property("force-sw-decoders", True)

I set this property immediately after creating uridecodebin and before changing the pipeline state to PAUSED or PLAYING.

I also verified the value:

print(
    uri_decode_bin.get_property("force-sw-decoders")
)

It returns:

True

However, while the pipeline is running, nvidia-smi dmon shows the GPU decoder at 100%:

#Date        Time         gpu    pwr  gtemp  sm    mem    enc    dec
20260711     14:44:19       0    187     52  45      8     11    100
20260711     14:44:20       0    189     52  41      8      9    100
20260711     14:44:21       0    187     53  46      8      9    100
20260711     14:44:22       0    188     53  40      8     10    100

are you testing in docker container? if so, please make sure softeware decoder is available. you can run /opt/nvidia/deepstream/deepstream/user_additional_install.sh to install avdec_h264.
force-sw-decoders=1 only filters decoders whose GStreamer factory metadata class contains the literal string Hardware, as shown in the code. It only looks at the element factory’s Klass metadata. For example, if a hardware decoder is registered as:
Codec/Decoder/Video/Hardware
then force-sw-decoders=1 will filter it out. But if nvv4l2decoder is registered as something like:
Codec/Decoder/Video
then it is not considered Hardware by this logic, even though it uses NVDEC. In that case, uridecodebin may still select nvv4l2decoder, especially if its rank is higher than avdec_h264.
You can verify this with:
gst-inspect-1.0 nvv4l2decoder | grep -i klass
gst-inspect-1.0 nvv4l2decoder | grep -i rank
gst-inspect-1.0 avdec_h264 | grep -i rank
A practical workaround is to lower the rank of the NVIDIA decoder when launching:
GST_PLUGIN_FEATURE_RANK=nvv4l2decoder:NONE gst-launch-1.0 uridecodebin uri=file:///home/sample_720p_x10.mp4 force-sw-decoders=1 ! fakesink
Or explicitly build the software decode path:
gst-launch-1.0 filesrc location=/home/sample_720p_x10.mp4 !
qtdemux ! h264parse ! avdec_h264 ! fakesink

You may also try the DeepStream Code Agent which provide the DeepStream skills. DeepStream/skills at main · NVIDIA/DeepStream, you can use Cursor or Claude CLI to obtain solutions and generate sample codes.