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
Share:
6,446

Related videos on Youtube

user6504700
Author by

user6504700

Updated on September 18, 2022

Comments

  • user6504700
    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 - Слава Україні
    Scott - Слава Україні about 5 years
    Where are you getting 192.168.0.20 from? Please explain.
  • vayvanne
    vayvanne about 5 years
    Sorry for unclearity, it is the IP address of the interface you would like to sent multicast traffic via
  • dasl
    dasl almost 3 years
    This worked for me -- see the documentation here: ffmpeg.org/ffmpeg-protocols.html#udp You can find your network interface's IP address via ifconfig