Ctrl-C keyboard Interrupt doesnt stop the gst-launch pipeline recording to a filesink

pal man p.mavanna at gmail.com
Thu Jul 10 02:49:49 PDT 2014


Hi,

I try to record a part of the rtsp stream output to a file using gst-launch
-e option. But it doesnt work.

~/main$ gst-launch-1.0 -e rtspsrc location=rtsp://<snipped> ! decodebin !
'video/x-raw,format=I420' ! x264enc ! mp4mux ! filesink
location=/home/manickam/test.mp4
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://cl5742.myfoscam.org:8554/videoSub
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
read from resource.
Additional debug info:
gstrtspsrc.c(4367): gst_rtspsrc_reconnect ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive any UDP packets for 5.0000 seconds, maybe your firewall
is blocking it. Retrying using a TCP connection.
Redistribute latency...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...

..... doesnt terminate even after 5 minutes, need to kill it.

But If I use rtspt instead of rtsp, it works:

$gst-launch-1.0 -e rtspsrc location=rtspt://<snipped> ! decodebin !
'video/x-raw,format=I420' ! x264enc ! mp4mux ! filesink
location=/home/manickam/test.mp4
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtspt://cl5742.myfoscam.org:8554/videoSub
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Redistribute latency...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...
Got EOS from element "pipeline0".
EOS received - stopping pipeline...
Execution ended after 0:00:11.014150750
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140710/52341ccc/attachment-0001.html>


More information about the gstreamer-devel mailing list