[gst-devel] help: udpsrc with ip address.

Zibo SHI shizibo at gmail.com
Fri Mar 27 04:01:08 CET 2009


Hi, all. I am a newbie to gstreamer.  I am now trying build a simple
pipeline to transmit video with udp between two machines.
Here are what I have done now.

server:
gst-launch filesrc location=new0.mpg ! mpegdemux mpegdemux0.video_00 ! {
queue ! udpsink port=4400 } \
mpegdemux0.audio_00 ! { queue ! udpsink port=4401 }

client:
gst-launch udpsrc port=4400 ! { queue ! mpeg2dec ! xvimagesink } \
udpsrc port=4401 ! { queue ! decodebin ! audioconvert ! audioresample !
autoaudiosink }

I test them in one machine. They work well.

But when I tried to specify the ip address as:

server:
gst-launch filesrc location=new0.mpg ! mpegdemux mpegdemux0.video_00 ! {
queue ! udpsink port=4400 host=192.168.0.1} \
mpegdemux0.audio_00 ! { queue ! udpsink port=4401 host=192.168.0.1 }
client:
gst-launch udpsrc uri=udp://192.168.0.1:4400 ! { queue ! mpeg2dec !
xvimagesink } \
udpsrc uri=udp://192.168.0.1:4401 ! { queue ! decodebin ! audioconvert !
audioresample ! autoaudiosink }

Error occurs in the client.
error: from element /pipeline0/udpsrc0:can't get the resource specified. (I
translate the message from my local language)

gstudpsrc.c(825): gst_udpsrc_start (): /pipeline0/udpsrc0:
could add membership -1: invalid parameter (22)


Even cannot work with using 127.0.0.1 in one machine.
server:
gst-launch filesrc location=new0.mpg ! mpegdemux mpegdemux0.video_00 ! {
queue ! udpsink port=4400 host=127.0.0.1 } \
mpegdemux0.audio_00 ! { queue ! udpsink port=4401 host=127.0.0.1 }
client:
gst-launch udpsrc uri=udp://127.0.0.1 :4400 ! { queue ! mpeg2dec !
xvimagesink } \
udpsrc uri=udp://127.0.0.1 :4401 ! { queue ! decodebin ! audioconvert !
audioresample ! autoaudiosink }

But using "localhost" works,
gst-launch filesrc location=new0.mpg ! mpegdemux mpegdemux0.video_00 ! {
queue ! udpsink port=4400 host=localhost } \
mpegdemux0.audio_00 ! { queue ! udpsink port=4401 host=localhost }
client:
gst-launch udpsrc uri=udp://localhost :4400 ! { queue ! mpeg2dec !
xvimagesink } \
udpsrc uri=udp://localhost :4401 ! { queue ! decodebin ! audioconvert !
audioresample ! autoaudiosink }

I'm confused. Can anybody help me?
Thanks very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090327/a5866b3e/attachment.htm>


More information about the gstreamer-devel mailing list