Eos not working with RTSP stream

Stefan Puntigam puntigam.stefan at me.com
Thu Dec 28 13:46:28 UTC 2017


Hey there!

I´m trying to save save a rtsp stream from my camera to a file using this line on my raspi3:
gst-launch-1.0 rtspsrc location=rtsp://user:user@IP:554 ! rtpjpegdepay ! omxmjpegdec ! omxh264enc ! h264parse ! matroskamux ! filesink location=output.mkv

This produces a mkv which I can view in vlc, but it is not seekable. I noticed that i have to use "gst-launch-1.0 -e". But it´s not working as expected.

When pressing CTRL+C this ouput is shown:

^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
Waiting for EOS...

And then I can wait forever, it won´t stop. With verbose output you can see pipeline0 is still filled with the stream.

/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstRtpBin:manager/GstRtpSession:rtpsession0: stats = "application/x-rtp-session-stats\,\ rtx-drop-count\=\(uint\)0\,\ sent-nack-count\=\(uint\)0\,\ recv-nack-count\=\(uint\)0\,\ source-stats\=\(GValueArray\)NULL\,\ rtx-count\=\(uint\)0\;"

I think this is the problem. Anyone knows what to do?

Thanks!
Regards,
Steve



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171228/72ba48cc/attachment.html>


More information about the gstreamer-devel mailing list