Stream to a specific lancard

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Stream to a specific lancard

Bhikkhu Mettavihari
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.

With metta
Mettavihari

>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Stream to a specific lancard

Marton Balint


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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".