[FFmpeg-user] Stream to a specific lancard
Marton Balint
cus at passwd.hu
Mon Oct 8 21:58:48 EEST 2018
On Mon, 8 Oct 2018, Mettavihari D wrote:
> Greetings
>
> My os is Debian
>
> I have 2 lan cards which I want to stream 2 streams to.
>
> This is my commands.
> ffmpeg -re -i file2.ts -c:v copy -c:a copy -muxrate 2000k -f mpegts udp://
> 224.x.x.x:port <http://224.11.2.206:5180?ttl=30&pkt_size=1316>1
>
> ffmpeg -re -i file1.ts -c:v copy -c:a copy -muxrate 2000k -f mpegts udp://
> 224.y.y.y: <http://224.11.2.207:5180?ttl=30&pkt_size=1316>port2
>
> It works well, but It goes to the same lan card
>
> This is my route
> #ip route list
>>
>> default via 192.168.10.1 dev enp2s0
>> 10.0.7.220/30 dev enp3s0 proto kernel scope link src 10.0.7.222
>> 10.0.7.224/30 dev enp4s0 proto kernel scope link src 10.0.7.224
>> 192.168.10.0/24 dev enp2s0 proto kernel scope link src 192.168.10.2
>> 224.0.0.0/4 dev enp3s0 scope link
>> 224.0.0.0/4 dev enp4s0 scope link
>>
>
> How do I tell ffmpeg which lan card to deliver its stream to.
udp://224.x.x.x?localaddr=10.0.7.222
Regards,
Marton
More information about the ffmpeg-user
mailing list