[gst-devel] help: udpsrc with ip address.
Michael Smith
msmith at xiph.org
Sat Mar 28 04:25:39 CET 2009
2009/3/27 Zibo SHI <shizibo at gmail.com>:
> Thank you very much for your reply, Lin.
> I change the order of "host=" and "port=" as you said, but the same error
> occurs.
> The server side seems working normally as before, after I start the server:
>
> gst-launch filesrc location=new0.mpg ! mpegdemux mpegdemux0.video_00 ! {
> queue ! udpsink host=127.0.0.1 port=4400 } \
> mpegdemux0.audio_00 ! { queue ! udpsink host=127.0.0.1 port=4401 }
>
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
>
> Then the 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 }
The host part of a URI to udpsrc is only used for multicast sessions.
In the unicast case, you should just use udpsrc port=4400.
Equivalently, if you want to use the URI form, specify the 'any'
address like udp://0.0.0.0:4400
Mike
More information about the gstreamer-devel
mailing list