Ctrl-C keyboard Interrupt doesnt stop the gst-launch pipeline recording to a filesink
Tim Müller
tim at centricular.com
Thu Jul 10 13:59:26 PDT 2014
On Thu, 2014-07-10 at 15:19 +0530, pal man wrote:
Hi,
> I try to record a part of the rtsp stream output to a file using
> gst-launch -e option. But it doesnt work.
what exact version is this with? There were some issues with
rtpjitterbuffer and rtpbin passing on the EOS.
Cheers
-Tim
> ~/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 ...
> $
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list