How to get a stream with ffmpeg through a specific eth(interface)
6,446
udp://236.1.1.1:5000?pkt_size=188&localaddr=192.168.0.20
Related videos on Youtube
Author by
user6504700
Updated on September 18, 2022Comments
-
user6504700 over 1 year
I have a server with 2 interfaces, eth0 and eth1. eth0 -> conected to Managment Switch eth1 -> conectated to Video Switch
I would like to get a multicast with ffmpeg through eth1.
Is there some command like ffmpeg eth1 -i udp://236.1.1.1:5000 ? I also need to know how to send the multicast through the same interface like ffmpeg eth1 udp://236.1.1.1:5000 eth1 -f mpegts udp://239.1.1.1:5000?pkt_size=188
Thanks in advance.
-
Scott - Слава Україні about 5 yearsWhere are you getting
192.168.0.20
from? Please explain. -
vayvanne about 5 yearsSorry for unclearity, it is the IP address of the interface you would like to sent multicast traffic via
-
dasl almost 3 yearsThis worked for me -- see the documentation here: ffmpeg.org/ffmpeg-protocols.html#udp You can find your network interface's IP address via ifconfig