Invalid data found when processing deepstream UDP output - video stream unplayable

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson
• DeepStream Version
6.0
• JetPack Version (valid for Jetson only)
4.5.1
• TensorRT Version
8.0.1
• Issue Type( questions, new requirements, bugs)
bug
• 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)
Run deepstream in docker (network mode host) and output an RTSP stream, this will also produce a udp stream. Find information about the stream using:

ffmpeg -i udp://224.224.255.255:5400 -vcodec copy -acodec copy -f null -

which outputs:
udp://224.224.255.255:5400: Invalid data found when processing input

This is the rtsp sink config I’m using:
[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=2700000
#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=8556
udp-port=5400

I can view packets in wireshark, or view a tcpdump of the outputted packets:

sudo tcpdump -i paneth2 -Q out | grep 5400
12:25:32.845697 IP kxm-3b1287.59434 > 224.224.255.255.5400: UDP, length 1400
12:25:32.853677 IP kxm-3b1287.59434 > 224.224.255.255.5400: UDP, length 614

but I can’t connect to the udp stream using vlc (udp://@224.224.255.255:5400)

The tcp unicast stream output @ rtsp://0.0.0.0:8556/ds-test works fine and I can view it in vlc

How can i fix this and view the multicasted udp stream?

  1. The output of udpsink is the rtp multicast stream with payload h264.
    Due to the lack of sdp data, ffplay cannot obtain the encoding information of the rtp multicast stream, so it cannot be played.

Although the data packets can be received normally, ffplay does not recognize their format.

You can play the multicast using the following command

gst-launch-1.0 -v udpsrc address=224.224.255.255 port=5400 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! nv3dsink

Why do you want to play a multicast stream? As you described above, the multicast has been converted into an rtsp stream. Just play the on-demand stream.

Thanks I’ll try that. We’re wanting to multicast over udp because if you unicast over tcp network, bandwidth used is multiplied by the number of connections to the rtsp stream and we want to keep it low

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

In fact, rtsp defaults to udp unicast. Multicast may face delays and packet loss problem

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