<div dir="ltr"><div><div><div>Hi,<br><br></div>I try to record a part of the rtsp stream output to a file using gst-launch -e option. But it doesnt work.<br><br>~/main$ gst-launch-1.0 -e rtspsrc location=rtsp://<snipped> ! decodebin ! 'video/x-raw,format=I420' ! x264enc ! mp4mux ! filesink location=/home/manickam/test.mp4<br>
Setting pipeline to PAUSED ...<br>Pipeline is live and does not need PREROLL ...<br>Progress: (open) Opening Stream<br>Progress: (connect) Connecting to rtsp://<a href="http://cl5742.myfoscam.org:8554/videoSub">cl5742.myfoscam.org:8554/videoSub</a><br>
Progress: (open) Retrieving server options<br>Progress: (open) Retrieving media info<br>Progress: (request) SETUP stream 0<br>Progress: (request) SETUP stream 1<br>Progress: (open) Opened Stream<br>Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>Progress: (request) Sending PLAY request<br>Progress: (request) Sending PLAY request<br>Progress: (request) Sent PLAY request<br>WARNING: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.<br>
Additional debug info:<br>gstrtspsrc.c(4367): gst_rtspsrc_reconnect (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:<br>Could not receive any UDP packets for 5.0000 seconds, maybe your firewall is blocking it. Retrying using a TCP connection.<br>
Redistribute latency...<br>^Chandling interrupt.<br>Interrupt: Stopping pipeline ...<br>EOS on shutdown enabled -- Forcing EOS on the pipeline<br>Waiting for EOS...<br><br></div>..... doesnt terminate even after 5 minutes, need to kill it.<br>
<br></div>But If I use rtspt instead of rtsp, it works:<br><br>$gst-launch-1.0 -e rtspsrc location=rtspt://<snipped> ! decodebin ! 'video/x-raw,format=I420' ! x264enc ! mp4mux ! filesink location=/home/manickam/test.mp4<br>
<div><div>Setting pipeline to PAUSED ...<br>Pipeline is live and does not need PREROLL ...<br>Progress: (open) Opening Stream<br>Progress: (connect) Connecting to rtspt://<a href="http://cl5742.myfoscam.org:8554/videoSub">cl5742.myfoscam.org:8554/videoSub</a><br>
Progress: (open) Retrieving server options<br>Progress: (open) Retrieving media info<br>Progress: (request) SETUP stream 0<br>Progress: (request) SETUP stream 1<br>Progress: (open) Opened Stream<br>Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>Progress: (request) Sending PLAY request<br>Progress: (request) Sending PLAY request<br>Progress: (request) Sent PLAY request<br>Redistribute latency...<br>^Chandling interrupt.<br>Interrupt: Stopping pipeline ...<br>
EOS on shutdown enabled -- Forcing EOS on the pipeline<br>Waiting for EOS...<br>Got EOS from element "pipeline0".<br>EOS received - stopping pipeline...<br>Execution ended after 0:00:11.014150750<br>Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>Setting pipeline to NULL ...<br>Freeing pipeline ...<br>$<br><br></div></div></div>