[Live-devel] Multicast H.264 with static IP

Ross Finlayson finlayson at live555.com
Sun May 21 19:26:28 PDT 2023



> On May 21, 2023, at 12:41 PM, Lindvall Karolina <Karolina.Lindvall at sj.se> wrote:
> 
> Hi,
> I am trying to multicast a H.264-video. I have been using testH264VideoStreamer for this. I am running the testH264VideoStreamer on one VM and have been trying different clients to receive the stream on another VM (mpv.io, ffplay, and the testRTSPClient). I can receive the stream with all clients (mpv, ffplay and testRTSPClient) if I don’t use static IP-address on the VMs. However, if I change to static IP I am not receiving the stream anymore (I am not receiving the frames). I have verified that I can ping the VMs. I tried the testOnDemandRTSPServer to stream using unicast, and that works fine with static IP on the VMs.  Do I need to change anything to be able to stream multicast with static IP?

There’s no inherent reason why this shouldn’t work, but I suspect that (somehow) you lost multicast routing when you switched to using a static IP.

To check this, run
	netstat -r -n
and check whether you have a route for 224/8

You might be able to fix this by running (as root):
	route add 224.0.0.0/4 ip-address-for-that-nic


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list