Multicast not working, how to configure? #609
Replies: 1 comment 2 replies
-
Hello, in order to multicast a stream, you have to do this:
The client will keep a direct connection to the server only to send the handshake and send keepalives, while the server will stream the video to one of the multicast IP provided in the configuration file. In case of multiple clients, the server will stream the video once, and tell all the clients to read the stream from a single multicast IP and port, saving bandwidth. You can't simply read from udp://multicast_ip:8000 since:
|
Beta Was this translation helpful? Give feedback.
-
Ok, I had to edit the whole issue because I was not right. Starting with Docker, I was able to modify the config file. My only change
multicastIPRange: 231.192.16.30/32
Then started the server with:
docker run --rm -it -e RTSP_PROTOCOLS=tcp -p 8554:8554 -p 1935:1935 -p 8002:8002 -v $PWD/rtsp-simp le-server.yml:/rtsp-simple-server.yml aler9/rtsp-simple-server
and tried both these streams:
udp://@231.192.16.30 and udp://@231.192.16.30/compressed
from a computer connected to the same LAN, but no multicast. Unicast at the RTSP stream works fine.
Also, tried the same thing with the Windows distribution and no luck either.
Am I missing something? Could you please point me in the right direction?
My goal is to have the server in a docker container multicasting the rtsp stream to the given address.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions