Issue in gst-pipeline, when the udpsink-server is restarted

Ajay Garg ajaygargnsit at gmail.com
Thu Feb 4 06:31:44 UTC 2016


Hi All.

I am using the following code snippet ::

####################################################################################
    /* Checkpoint 1 */
    pipeline = gst_parse_launch (mediaUrl, NULL);
    gst_element_set_state (pipeline, GST_STATE_PLAYING);

    bus = gst_element_get_bus (pipeline);
    /* Checkpoint 2 */

    msg = gst_bus_poll (bus, GST_MESSAGE_EOS | GST_MESSAGE_ERROR, -1);
    /* Checkpoint 3 */
####################################################################################



Following is the "mediaUrl" ::

####################################################################################
rtspsrc location=rtsp://192.168.1.71/0/0/0 ! rtph264depay ! avdec_h264 !
videoscale ! videorate skip-to-first=true ! videoconvert ! queue leaky=1 !
capsfilter caps=video/x-raw,framerate=1/1 ! x264enc byte-stream=true me=1
subme=6 bitrate=50 speed-preset=1 ! video/x-h264 ! rtph264pay pt=96
mtu=65000 ! udpsink host=1.2.3.4 port=1234
####################################################################################



Now, "Checkpoint 3" is reached fine, if and when the "mediaUrl" is invalid
(syntax-wise, or/and connectvity-wise).
However, "Checkpoint 3" is not reached, for the following sequence of
events ::

    * Pipeline is created fine.
    * Media starts getting streamed from the client, and the stream starts
being received at the udpsink-server.
    * After some time, the udpsink-server restarts, thus breaking all the
opened/connected UDP-sockets.

Now, it is expected that "Checkpoint 3" will be reached at the client, but
unfortunately, it does not.


Any ideas?
I will be grateful for any pointers.



Thanks and Regards,
Ajay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160204/1aa4bb42/attachment-0001.html>


More information about the gstreamer-devel mailing list