Eos not working with RTSP stream

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Eos not working with RTSP stream

Stefan Puntigam
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




_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel