Can't view deepstream rtsp stream from vlc

• Hardware Platform (Jetson / GPU): Tesla T4
• DeepStream Version: 5.1
• TensorRT Version: 7.2.1
• NVIDIA GPU Driver Version (valid for GPU only): 455.32
• Issue Type( questions, new requirements, bugs): Bug

Normally, when i run deepstream-app I have no issue viewing rtsp stream with vlc. But recently there is some changes in the server’s network and I can not view the rtsp stream anymore.

My config (The app run perfectly)
deepstream-app -c config.txt

[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl


[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=4
uri=rtsp://admin:admin123@172.16.30.50:554
num-sources=1
#drop-frame-interval=2
gpu-id=0
# (0): memtype_device   - Memory type Device
# (1): memtype_pinned   - Memory type Host Pinned
# (2): memtype_unified  - Memory type Unified
cudadec-memtype=0


[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
#encoder type 0=Hardware 1=Software
enc-type=0
sync=0
bitrate=4000000
#H264 Profile - 0=Baseline 2=Main 4=High
#H265 Profile - 0=Main 1=Main10
profile=0
# set below properties in case of RTSPStreaming
rtsp-port=9093
udp-port=5499


[streammux]
gpu-id=0
##Boolean property to inform muxer that sources are live
live-source=0
batch-size=30
##time out in usec, to wait after the first buffer is available
##to push the batch even if the complete batch is not formed
batched-push-timeout=40000
## Set muxer output width and height
width=1920
height=1080
##Enable to maintain aspect ratio wrt source, and allow black borders, works
##along with width, height properties
enable-padding=0
nvbuf-memory-type=0
## If set to TRUE, system timestamp will be attached as ntp timestamp
## If set to FALSE, ntp timestamp from rtspsrc, if available, will be attached
# attach-sys-ts-as-ntp=1

# config-file property is mandatory for any gie section.
# Other properties are optional and if set will override the properties set in
# the infer config file.

[tests]
file-loop=0

I tried to debug the application and here is the output log when vlc connect to the stream:

0:01:02.089612404 20276      0x2cf98a0 WARN               rtspmedia rtsp-media.c:2994:wait_preroll: failed to preroll pipeline
0:01:02.089682277 20276      0x2cf98a0 WARN               rtspmedia rtsp-media.c:3298:gst_rtsp_media_prepare: failed to preroll pipeline
0:01:02.090997241 20276      0x2cf98a0 ERROR             rtspclient rtsp-client.c:1054:find_media: client 0x45277860: can't prepare media
0:01:02.091296503 20276      0x2cf98a0 ERROR             rtspclient rtsp-client.c:2910:handle_describe_request: client 0x45277860: no media

vlc log:

[00007f38484cc2a0] live555 demux debug: connection timeout
[00007f38484cc2a0] live555 demux error: Failed to connect with rtsp://localhost:9093/ds-test
[00007f38484cc2a0] main demux debug: no access_demux modules matched
[00007f38484cfca0] main stream debug: creating access: rtsp://localhost:9093/ds-test
[00007f38484cfca0] main stream debug: looking for access module matching "rtsp": 28 candidates
[00007f38484cfca0] satip stream debug: try to open 'rtsp://localhost:9093/ds-test'
[00007f38484cfca0] satip stream debug: connect to host 'localhost'
[00007f38484cfca0] main stream debug: net: connecting to localhost port 9093
[00007f38484cfca0] main stream debug: connection succeeded (socket = 6)
[00007f38484cfca0] main stream debug: net: opening 0.0.0.0 datagram port 9170
[00007f38484cfca0] main stream debug: net: opening 0.0.0.0 datagram port 9171
^C[000055805267a2a0] main libvlc debug: exiting
[000055805267a2a0] main libvlc debug: removing all interfaces
[000055805276c190] [cli] main interface debug: removing module "lua"
[000055805276c190] [cli] lua interface error: Error loading script /usr/lib/x86_64-linux-gnu/vlc/lua/intf/cli.luac: lua/intf/modules/host.lua:289: Interrupted.
[000055805275add0] main interface debug: removing module "hotkeys"
[00005580526763a0] main playlist debug: destroying
[00005580526763a0] main playlist debug: deactivating the playlist
[00005580526763a0] main playlist debug: incoming request - stopping current input
[00007f38484cfca0] satip stream error: read error: Resource temporarily unavailable
[00007f38484cfca0] satip stream error: Failed to setup RTSP session
[00007f38484cfca0] main stream debug: net: connecting to localhost port 9093
[00007f38484cfca0] access_realrtsp stream error: cannot connect to localhost:9093
[00007f38484cfca0] main stream error: Connection failed
[00007f38484cfca0] main stream error: VLC could not connect to "localhost:9093".
[00007f38484cfca0] access_realrtsp stream debug: could not connect to: localhost:9093/ds-test
[00007f38484cfca0] main stream debug: no access modules matched
[00005580526763a0] main playlist debug: dead input
[00007f3848000f60] main stream output debug: destroying useless sout
[00007f38484c9f50] main stream out debug: destroying chain... (name=transcode)
[00007f38484c9f50] main stream out debug: removing module "stream_out_transcode"
[00007f38484c9f50] main stream out debug: destroying chain done
[00007f3848001770] main stream out debug: destroying chain... (name=standard)
[00007f3848001770] main stream out debug: removing module "stream_out_standard"
[00007f38484c96f0] main mux debug: removing module "mpjpeg"
[00007f38484c96f0] mpjpeg mux debug: Multipart jpeg muxer closed
[00007f3848002be0] main access out debug: removing module "http"
[00007f3848003a40] main http host debug: HTTP host removed
[00007f3848002be0] http access out debug: Close

There should be [tiled-display] group and [primary-gie] group in your config file. If you don’t need inference, deepstream is not the proper SDK.

1 Like

Thanks for the reply, in fact, i have an pipeline that use inference, run normally too. the only problem is the rtsp output couldn’t be viewed by vlc.
This is just an simple config file to check whether i can view any deepstream rtsp output with vlc. I tried this config on other servers with the same platform, deepstream and driver version and have no problem with viewing the output. But for this server, this error showed up

0:01:02.089612404 20276      0x2cf98a0 WARN               rtspmedia rtsp-media.c:2994:wait_preroll: failed to preroll pipeline
0:01:02.089682277 20276      0x2cf98a0 WARN               rtspmedia rtsp-media.c:3298:gst_rtsp_media_prepare: failed to preroll pipeline
0:01:02.090997241 20276      0x2cf98a0 ERROR             rtspclient rtsp-client.c:1054:find_media: client 0x45277860: can't prepare media
0:01:02.091296503 20276      0x2cf98a0 ERROR             rtspclient rtsp-client.c:2910:handle_describe_request: client 0x45277860: no media

Do u have any suggestion for this kind of error? Thanks a lot

Please check the network problem.

This is not deepstream issue.

Thanks, the issue is indeed related to the server’s network. The solution is simply running deepstream docker and expose the necessary ports.

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