DeepStream 6.0 deepstream_rt_src_add_del.py Bug

Hello,

I tried running deepstream_rt_src_add_del.py with a single RTSP stream as the input.
I did not make any modifications to the source code provided via GitHub but I get the following error after a few moments

Creating Pipeline

Creating streammux

Creating source_bin  0

Creating uridecodebin for [rtsp://<link>]
source-bin-00
Creating Pgie

Creating nvtracker

Creating tiler

Creating nvvidconv

Creating nvosd

Creating EGLSink

Atleast one of the sources is live
Adding elements to Pipeline

Linking elements in the Pipeline

Now playing...
1 :  rtsp://<link>
Starting pipeline

Calling Start 2
Creating uridecodebin for [rtsp://<link>]
source-bin-02
Decodebin child added: source

STATE CHANGE NO PREROLL

Calling Start 3
Creating uridecodebin for [rtsp://<link>]
source-bin-03
Decodebin child added: source

STATE CHANGE NO PREROLL

Calling Start 1
Creating uridecodebin for [rtsp://<link>]
source-bin-01
Decodebin child added: source

STATE CHANGE NO PREROLL

Calling Stop 2
STATE CHANGE SUCCESS

sink_2
Traceback (most recent call last):
  File "deepstream_rt_src_add_del.py", line 218, in delete_sources
    stop_release_source(source_id)
  File "deepstream_rt_src_add_del.py", line 168, in stop_release_source
    sinkpad.send_event(Gst.Event.new_flush_stop(False))
AttributeError: 'NoneType' object has no attribute 'send_event'

I was wondering if I can get any assistance with regards to this issue.

Update: I notice that on the streammux, there is no sink_%u % source_id via the following check:

# output: src
# FYL streammux.pads contains only the source pad and no sink pads,
# hence we get a value of None when we call the following code: 
# streammux.get_static_pad(pad_name)
print(f'pad name: {streammux.pads[0].name}')
# Contains only one element (we need to add sink pad)
print(f'pad list: {streammux.pads}')

Specs

• Hardware Platform (Jetson / GPU): dGPU
• DeepStream Version: 6.0
• JetPack Version (valid for Jetson only)
• TensorRT Version: 8.01
• NVIDIA GPU Driver Version (valid for GPU only): 470.57.02

Best regards,
Jay

I managed to fix the issue. FYI, for whoever comes across this, is it just me or does deepstream_rt_src_add_del.py GitHub Link not work right out of the box?

Thanks for the update, will have team to check this issue.

1 Like

I think there might have been some other unaccounted variable / factor.

To double check, I tried reproducing the issue on a different machine and for some reason, the pipeline works fine on that device.
If the reproduction was successful, then great!

Otherwise, I wanted to let you know in case you are having trouble reproducing the issue.

Thank you for taking time to look into this!

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