I have a problem concating the videos gstreamer

This is the pipeline:

gst-launch-1.0 concat name=conc \
    ! videoconvert \
    ! videorate \
    ! video/x-raw,framerate=60/1 \
    ! queue max-size-buffers=600 max-size-bytes=104857600 max-size-time=6000000000 \
    ! splitmuxsink muxer=matroskamux location=/home/pi/videos/video-%05d.mkv max-files=600 max-size-time=1000000000 \
    videotestsrc pattern=smpte100 num-buffers=833 \
    ! video/x-raw,width=1280,height=800,framerate=1000/1,format=I420,colorimetry=bt470bg \
    ! conc. \
    filesrc location=/home/pi/cam1-video.mkv \
    ! matroskademux \
    ! queue max-size-buffers=600 max-size-bytes=104857600 max-size-time=6000000000 \
    ! jpegdec \
    ! conc.

What I’m trying to do is add a delay to the video based on the PTS.

The error is the following:

ERROR: from element /GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMatroskaMux:matroskamux0: Could not multiplex stream.

Additional debug info:

../gst/matroska/matroska-mux.c(974): gst_matroska_mux_video_pad_setcaps (): /GstPipeline:pipeline0/GstSplitMuxSink:splitmuxsink0/GstMatroskaMux:matroskamux0:

Caps changes are not supported by Matroska

Current: `video/x-raw, format=(string)I420, width=(int)1280, height=(int)800, framerate=(fraction)60/1, multiview-mode=(string)mono, colorimetry=(string)bt470bg, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive`

New: `video/x-raw, format=(string)I420, width=(int)1280, height=(int)800, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)1:4:0:0, framerate=(fraction)60/1`

any ideas?

You already solve it with colorimetry=1:4:0:0

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.