[Libav-user] Stream RTP to a specific network interface OR accessing underlying UDP socket

Mohamed Ismail Mejri imejri at sabsystem.com
Fri Mar 23 02:23:04 EET 2018


Hi,

Use your OS routing table. Example in linux:
#  route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1
Best regards.


2018-03-22 17:17 GMT+01:00 LP C <lp.cordier at dynamixyz.com>:

> Hi everybody,
>
> Currently coding a C application that is sending video over the network
> using MULTICAST, I am looking for a way to set on which network interface
> the RTP stream should be sent.
>
> I tried to use 'rtp://237.0.0.1:1234?localaddr=192.168.1.1' but it does
> not work. After digging in the source code of the RTP protocol, it seems
> that this option is not supported right now.
>
> Thus I would like to know if I can access to the underlying socket in
> order to apply IP_MULTICAST_IF using setsockopt (6.3:
> https://www.tldp.org/HOWTO/Multicast-HOWTO-6.html)
>
> Any clues of how to solve this issue programmatically?
>
> Thanks,
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Garanti
sans virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180323/f5ea1cfe/attachment.html>


More information about the Libav-user mailing list