udp streaming: reconnect on the fly

Andrey Utkin andrey.krieger.utkin at gmail.com
Mon Jan 20 15:37:27 PST 2014


2014/1/20 hobbesc7 <hobbesc7 at gmail.com>:
> Andrey Utkin wrote
>> BTW which multimedia container (format) do you use for streaming? MPEG TS?
>
> x-h264?
>
> On the server:
>
> gst-launch -v filesrc location=/dev/video0 ! queue ! video/x-h264 !
> udpsink host=192.168.1.100 port=5011

Haven't check it, so cannot substantiate should it work or shouldn't.
But to be safe, i'd suggest you to try

gst-launch -v filesrc location=/dev/video0 ! queue ! video/x-h264 !
h264parse ! mpegtsmux ! udpsink host=192.168.1.100 port=5011

(h264parse may be not necessary, try without it to check if it still works.)

Maybe the client can stay the same, or, to be sure,

gst-launch -v udpsrc port=5011 ! tsdemux ! decodebin2 ! xvimagesink sync=false

MPEG TS is surely loss tolerant and can start playback mid-stream.

-- 
Andrey Utkin


More information about the gstreamer-devel mailing list