Closed rayzie closed 1 year ago
Hi rayzie,
There is no implementation of UDP streaming, you can use RTP streaming without RTSP layer using multicast option -M
.
By default it choose random multicast group and use port 20000, you can also specify them using -M234.1.2.3:50000
next you will get the RTP stream on port 50000 of 234.1.2.3 multicast group.
Best Regards, Michel.
Hi, I am facing the same thing.
I got the multicast running. However how do I run my client?
I use
mpv rtp://239.0.0.5:5000 --rtsp-transport=udp_multicast'
but no stream is shown.
Also tried with '/multicast', with or whitout --rtsp-transport.
Tried ffprobe, ffplay. Same thing, no input is shown.
I use ip route add 239.0.0.0/24 dev
Is there any working client with config for multicasts?
Hi wvdakker,
I don't see what is similar to the initial issue... did you try mpv rtsp://<server_ip>/multicast --rtsp-transport=udp_multicast
?
Best Regards, Michel.
Yes tried that also: [ffmpeg] tcp: Connection to tcp://192.168..x.x failed Connection refused.
I am using:
v4l2rtspserver -W 1024 -H 576 -F 8 -M 239.0.0.5:20005 /dev/video0
In my (perhaps wrong) opinion I should use
mpv rtp://239.0.0.5:5000 --rtsp-transport=udp_multicast.
Or do I make a mistake in thinking .....
Hi,
I don't know how mpv wrap ffmpeg option (however rtsp-transport option has probably no impact using an rtp url). It is working with :
v4l2rtspserver -M239.0.0.5:20005 &
ffplay -fflags nobuffer rtp://239.0.0.5:20005
Best Regards, Michel.
If I use your ffplay command I get
Unable to receive RTP payload type 96 without an SDP file describing it rtp://239.0.0.5:20005: Invalid data found when processing input
Googling for SDP file says that a RTP stream cannot be shown because the stream has no payload and the player dont know what to use.
Hello. I am now using RTSP Server with your help to provide the best streaming service. There is one thing to worry about. Now I'm using the server in the following way:
sudo ./h264_v4l2_rtspserver/v4l2rtspserver -F 25 -W 1280 -H 720 -P 8555 /dev/video0
I would like to change to UDP or RTP method for the above server. Please tell me how to structure the Script.
And what about the url for connecting to a UDP streaming server?
Thank you.