How to take rtsp input in deepstream python sample test4 for nvmsgbroker

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
GPU
• DeepStream Version
6.1

• TensorRT Version
TensorRT 8.2.5.1

• NVIDIA GPU Driver Version (valid for GPU only)
510.47.03

• Issue Type( questions, new requirements, bugs)
In python sample test4, I am unable to take RTSP input alone with msg broker.
With file input it’s working, but when I change it to RTSP it’s not.
Can I get help on, how to convert -

This test for rtsp input?

1 Like

Can the RSTP stream be played by vlc locally? Can you share the command the logs? Thanks.

yes rtsp is running from mpv and vlc,

This file is working. It’s deepstream test 4 in python.

The msgbroker in pipeline is giving me data to my rabbitmq server.

The only change I making is -
Instead of filesrc input.
I am doing
gst-launch-1.0 uridecodebin uri=“” ! x264enc

Why x264enc?
well, on my local computer
I ran uridecodebin uri={url} ! x264enc ! h264parse ! mpegtsmux ! hlssink
This is converting my rtsp to hls.
and notice this is using h264parse, this plugin is getting used in the deepstream_test_4 too.
So according to me,
if I do

uridecodebin uri={url} ! x264enc ! h264parse ! → do the exact same working thing in deepstream_test_4
since my test 4 is working everything else should work. No issue in that. But it’s not working because , what I feel is the real time issue. Live stream is giving data and I get some time issue, This is just my guess.
So I just want to know, How to convert deepstream_test_4 for rtsp instead of filesrc.
I am stuck for months on this.

running.py (19.7 KB)
line number 347, this is my version of deepstream_test_4 to run the rtsp.

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

The only change I making is -
Instead of filesrc input.
I am doing
gst-launch-1.0 uridecodebin uri=“” ! x264enc

Did you mean the python app working using filesrc input, but not with rtsp input? How about your filesrc and rtsp src codec format?

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