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

Zibo SHI shizibo at gmail.com
Sat Mar 28 13:20:51 CET 2009


>> 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

Hello, Mike. Thanks for your reply.
But there is something I can't understand. Yes, I'm trying to use unicast
with udp. I want to run the server and client in different machines (say,
one with ip 192.168.0.1, the other 192.168.0.10). how can I communicate
between two machines if I can't specify ip address and only with port.

If I use 0.0.0.0, that won't be an unicast. Yeah? Can you help. Or anybody
kown how to do that?
Thanks very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090328/a5f19d98/attachment.htm>


More information about the gstreamer-devel mailing list