udpsink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

udpsink

Ivan Zoli
Hello,

I am streaming an h.264 video from an embedded system to PC.

The pipeline is something like (I miss some properties to be more concise):

gst-launch v4lsrc ! my_h264enc ! queue ! h264parse ! rtph264pay ! \
   udpsink port=5334 ip=192.168.20.1 ts-offset=0 sync=false async=true max-lateness=1000000000

The connection is made using an RNDIS driver (Ethernet over USB).
All if fine, but if the cable is disconnected before killing the pipeline,
I have a lock in executing

gst_element_set_state(my_pipe, GST_STATE_NULL);

I have no return from this function, unless I connect back USB cable.

I'd like to avoid this block, because I can recognize that user
has disconnect the USB cable so I'd like to destroy the
pipeline, in a better way than kill the application.

Thank you

Ivan


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: udpsink

Kapil Agrawal
I think you should be getting a error/warning message on bus, if the disconnection takes place.
So you should be handling this in your bus call back ?

On Fri, Oct 28, 2011 at 5:38 PM, Ivan Zoli <[hidden email]> wrote:
Hello,

I am streaming an h.264 video from an embedded system to PC.

The pipeline is something like (I miss some properties to be more concise):

gst-launch v4lsrc ! my_h264enc ! queue ! h264parse ! rtph264pay ! \
   udpsink port=5334 ip=192.168.20.1 ts-offset=0 sync=false async=true max-lateness=1000000000

The connection is made using an RNDIS driver (Ethernet over USB).
All if fine, but if the cable is disconnected before killing the pipeline,
I have a lock in executing

gst_element_set_state(my_pipe, GST_STATE_NULL);

I have no return from this function, unless I connect back USB cable.

I'd like to avoid this block, because I can recognize that user
has disconnect the USB cable so I'd like to destroy the
pipeline, in a better way than kill the application.

Thank you

Ivan


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
http://www.linkedin.com/in/kapilagrawal
www.mediamagictechnologies.com
(Consultancy - Multimedia, Gstreamer, ffmpeg, Streaming for platforms- linux, windows, TI, android)



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel