<div dir="ltr">Hi,<div><br></div><div>Use your OS routing table. Example in linux:</div><div># route add -net 224.0.0.0 netmask 240.0.0.0 dev eth1</div><div>Best regards.</div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><br></div></div></div>
<br><div class="gmail_quote">2018-03-22 17:17 GMT+01:00 LP C <span dir="ltr"><<a href="mailto:lp.cordier@dynamixyz.com" target="_blank">lp.cordier@dynamixyz.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi everybody,<br>
<br>
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.<br>
<br>
I tried to use 'rtp://<a href="http://237.0.0.1:1234?localaddr=192.168.1.1" rel="noreferrer" target="_blank">237.0.0.1:1234?localadd<wbr>r=192.168.1.1</a>' 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.<br>
<br>
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: <a href="https://www.tldp.org/HOWTO/Multicast-HOWTO-6.html" rel="noreferrer" target="_blank">https://www.tldp.org/HOWTO/Mul<wbr>ticast-HOWTO-6.html</a>)<br>
<br>
Any clues of how to solve this issue programmatically?<br>
<br>
Thanks,<br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
</blockquote></div><br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Garanti sans virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>