Save RTSP stream to disk

Christof Bodner christof.bodner at gmx.net
Tue Nov 29 22:28:44 UTC 2016


Hi,

I am quite new to GStreamer, so please be patient with my stupid question!

I can display a RTSP stream with the following command:
---
$ gst-launch-1.0 rtspsrc location=rtsp://44.143.145.186:5131/0 ! queue !
rtph264depay ! h264parse ! decodebin ! autovideosink
Leitung wird auf PAUSIERT gesetzt ...
Leitung ist aktiv und erfordert keinen VORLAUF 

Fortschritt: (open) Opening Stream
Fortschritt: (connect) Connecting to rtsp://44.143.145.186:5131/0
Fortschritt: (open) Retrieving server options
Fortschritt: (open) Retrieving media info
Fortschritt: (request) SETUP stream 0
Fortschritt: (request) SETUP stream 1
Fortschritt: (open) Opened Stream
Leitung wird auf ABSPIELEN gesetzt ...
New clock: GstSystemClock
Fortschritt: (request) Sending PLAY request
Fortschritt: (request) Sending PLAY request
Fortschritt: (request) Sent PLAY request
FEHLER: Von Element
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
Output window was closed
Zusätzliche Fehlerdiagnoseinformation:
xvimagesink.c(555): gst_xv_image_sink_handle_xevents ():
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage
Execution ended after 0:00:05.320125678
Leitung wird auf PAUSIERT gesetzt ...
Leitung wird auf BEREIT gesetzt ...
Leitung wird auf NULL gesetzt ...
Leitung wird geleert ...
---

I would like to save it also to a file (not at the same time), but when I
run this, the file that's generated is with size zero, so it's empty:
---
$ gst-launch-1.0 -e rtspsrc location=rtsp://44.143.145.186:5131/0 ! rtpbin
! mpegtsmux ! filesink location=file.ts
Leitung wird auf PAUSIERT gesetzt ...
Leitung ist aktiv und erfordert keinen VORLAUF 

Fortschritt: (open) Opening Stream
Fortschritt: (connect) Connecting to rtsp://44.143.145.186:5131/0
Fortschritt: (open) Retrieving server options
Fortschritt: (open) Retrieving media info
Fortschritt: (request) SETUP stream 0
Fortschritt: (request) SETUP stream 1
Fortschritt: (open) Opened Stream
Leitung wird auf ABSPIELEN gesetzt ...
New clock: GstSystemClock
Fortschritt: (request) Sending PLAY request
Fortschritt: (request) Sending PLAY request
Fortschritt: (request) Sent PLAY request
---
After pressing Ctrl-C, the EOS is not sent, as it is stuck with this output:
---
^Chandling interrupt.
Interrupt: Leitung wird gestoppt ...
EOS bei Beenden ist eingeschaltet -- EOS wird auf die Leitung erzwungen
Auf EOS wird gewartet 

---

Can anybody give me a hint, what's wring with the command?

KR,
Christof

(sorry, the messages are in german, but I think you can imagine, what's
going on)


-- 
---------------------------------------------------------------------
 Christof Bodner <Christof.Bodner at gmx.net>
   Linux - Life is too short for reboots
         - First they ignore you. Then they laugh at you. Then they
           fight you. Then you win(*). -- Ghandi
---------------------------------------------------------------------
email: mailto:Christof.Bodner at gmx.net
Tel.:  +43-650-7215383
ICQ:   22085157
---------------------------------------------------------------------
GnuPG public key: 8A265334
Fingerprint CF71 08D2 18B8 A824 37A5  B80E 0888 37E1 8A26 5334
---------------------------------------------------------------------




More information about the gstreamer-devel mailing list