<div dir="ltr">Perhaps I was unclear about my scenario. I have an embedded linux system with multiple (VLAN) ethernet interfaces that generates MPEGTS data to distribute via UDP multicast. <div><br></div><div>So, under `ifconfig`, I have several interfaces, such as: eth0, eth0.10, eth0.12, eth0.25, eth0.30. Each of these "dot" interfaces sends packets via a different VLAN (eth0.X goes on VLAN X). </div>
<div><br></div><div>I need to ensure my video stream goes out (not to) a particular interface so that it gets the correct VLAN tag. For example, I need to target specifically `eth0.25` from the example above. </div><div><br>
</div><div>If I have direct control of the socket, I can call set_sockopt() with SO_BINDTODEVICE. Can this be done with udpsink? What would be the best way to ensure that my (multicast) packets go out the appropriate interface? </div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 1, 2014 at 11:43 AM, Peter Maersk-Moller <span dir="ltr"><<a href="mailto:pmaersk@gmail.com" target="_blank">pmaersk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Jospeh<br><br></div>It is rather trivial to identify the IP address though you may have to customize it to your system<br>
<br></div>#!/bin/bash<br><div>get_ip()<br>{<br>  ifconfig $1 |grep 'inet addr' |cut -f2 -d: |cut -f1 -d' '<br>
}<br><br></div><div>gst-launch ....... upsrc host=`get_ip eth0`<br><br></div><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sat, Mar 1, 2014 at 8:23 PM, Joseph Olivier <span dir="ltr"><<a href="mailto:jolivier@picodigital.com" target="_blank">jolivier@picodigital.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I'm generating a video stream which I send via UDP multicast. But the packets have to go out a specific Linux ethernet interface (with a VLAN tag). <div>

<br></div><div>Looking at udpsink, seems like the only configurables are HOST and PORT, which would not trivially allow me to identify the target interface. I'm looking for a strategy that more-or-less executes a bind-to-device(ethX) or a workaround. </div>


<div><br></div><div><br></div><div>Thanks, </div><div>Joe</div></div>
<br></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>