RTSP playbin to splitmuxsink

Henk Schurink mail228673 at gmail.com
Mon Oct 14 16:25:27 UTC 2019


I am trying to record a RTSP stream into 10-sec files.
Currently I use the following playbin:

gst-launch-1.0 rtspsrc location=rtsp://user:pwd@url:port/videoMain 
                ! queue ! rtpjitterbuffer latency=100 ! rtph264depay 
                ! h264parse ! splitmuxsink location=file%02d.mp4
max-size-time=10000000000


The problem is that the output files are only 1-2 seconds long and some of
them are corrupted.
Any help would be appreciated.
GST-Launch shows the following error in console:

WARNING: from element
/GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMP4Mux:muxer: Can't
change input format at runtime.
Additional debug info:
gstqtmux.c(5757): gst_qt_mux_video_sink_set_caps ():
/GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMP4Mux:muxer:
pad video_0 refused renegotiation to video/x-h264,
stream-format=(string)avc, alignment=(string)au,
codec_data=(buffer)0164001fffe1002d6764001fac34cc05005bff016a020202800001f400003a987430028280028225de5c686005050005044bbcb85001000468ee3c30,
level=(string)3.1, profile=(string)high, pixel-aspect-ratio=(fraction)1/1,
width=(int)1280, height=(int)720, framerate=(fraction)15/1,
interlace-mode=(string)progressive, chroma-format=(string)4:2:0,
bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true

VLC shows the following codec information:

Codec: H264 - MPEG-4 AVC (part 10) (h264)
Video resolution: 1280x720
Frame rate: 15
Color primaries: ITU-R BT.709
Color space: ITU-R BT.709 Range
Chroma location: Left



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list