udpsink to specific interface

Peter Maersk-Moller pmaersk at gmail.com
Sat Mar 1 11:43:10 PST 2014


Hi Jospeh

It is rather trivial to identify the IP address though you may have to
customize it to your system

#!/bin/bash
get_ip()
{
  ifconfig $1 |grep 'inet addr' |cut -f2 -d: |cut -f1 -d' '
}

gst-launch ....... upsrc host=`get_ip eth0`





On Sat, Mar 1, 2014 at 8:23 PM, Joseph Olivier <jolivier at picodigital.com>wrote:

> 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).
>
> 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.
>
>
> Thanks,
> Joe
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140301/321c0762/attachment.html>


More information about the gstreamer-devel mailing list