udp streaming: reconnect on the fly

Andrey Utkin andrey.krieger.utkin at gmail.com
Mon Jan 20 08:10:53 PST 2014


2014/1/20 Charles <hobbesc7 at gmail.com>:
> I'm live streaming from a usb encoder using a device node filesrc and a
> udpsink (the "server"), and then playing the video on my client from the
> udpsrc.
>
> If I leave the client video open, but kill the server, the video freezes, as
> expected.  When I restart the server, the video continues streaming.
>
> If I kill the client, however, I cannot reconnect to the stream without
> restarting the server.

Shouldn't be so. You have to figure out what's wrong with the client
(BTW which clients have you tried? Did you try such opensource clients
like gst-launch, vlc, ffplay?). Maybe it doesn't close socket
gracefully and next time it cannot bind to it.

> I'd also like to have multiple clients, each with their own IP address, who
> could each connect/disconnect from the stream, without restarting the
> server.  Is this possible?

Use multicast UDP address for stream.

-- 
Andrey Utkin


More information about the gstreamer-devel mailing list