Are the MJPEGs of the same type/format?
Yes, they both are chunks of mjpeg stream from ip-camera.
C:>gst-launch-1.0 -v concat name=c ! m.video_0 qtmux name=m ! filesink location=result.mp4 filesrc name=fsrc1 location=mjpeg1.mp4 ! qtdemux ! jpegparse ! c. filesrc name=fsrc2 location=mjpeg2.mp4 ! qtdemux ! jpegparse ! c.
Use Windows high-resolution clock, precision: 1 ms
Setting pipeline to PAUSED …
Pipeline is PREROLLING …
/GstPipeline:pipeline0/GstJpegParse:jpegparse0.GstPad:sink: caps = image/jpeg, parsed=(boolean)true, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstJpegParse:jpegparse0.GstPad:src: caps = image/jpeg, parsed=(boolean)true, width=(int)1920, height=(int)1080, sof-marker=(int)0, colorspace=(string)sYUV, sampling=(string)YCbCr-4:2:0, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstConcat:c.GstPad:src: caps = image/jpeg, parsed=(boolean)true, width=(int)1920, height=(int)1080, sof-marker=(int)0, colorspace=(string)sYUV, sampling=(string)YCbCr-4:2:0, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstQTMux:m.GstQTMuxPad:video_0: caps = image/jpeg, parsed=(boolean)true, width=(int)1920, height=(int)1080, sof-marker=(int)0, colorspace=(string)sYUV, sampling=(string)YCbCr-4:2:0, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstConcat:c.GstConcatPad:sink_0: caps = image/jpeg, parsed=(boolean)true, width=(int)1920, height=(int)1080, sof-marker=(int)0, colorspace=(string)sYUV, sampling=(string)YCbCr-4:2:0, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstQTMux:m.GstAggregatorPad:src: caps = video/quicktime, variant=(string)apple
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)apple
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
Redistribute latency…
New clock: GstSystemClock
/GstPipeline:pipeline0/GstConcat:c: active-pad = “(GstConcatPad)\ sink_1”
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux1: Internal data stream error.
/GstPipeline:pipeline0/GstJpegParse:jpegparse1.GstPad:sink: caps = image/jpeg, parsed=(boolean)true, width=(int)1920, height=(int)1080, framerate=(fraction)15000/1001, pixel-aspect-ratio=(fraction)1/1
Additional debug info:
…/gst/isomp4/qtdemux.c(6967): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux1:
streaming stopped, reason not-negotiated (-4)
/GstPipeline:pipeline0/GstJpegParse:jpegparse1.GstPad:src: caps = image/jpeg, parsed=(boolean)true, width=(int)1920, height=(int)1080, sof-marker=(int)0, colorspace=(string)sYUV, sampling=(string)YCbCr-4:2:0, framerate=(fraction)15000/1001, pixel-aspect-ratio=(fraction)1/1
Execution ended after 0:00:00.023849500
Setting pipeline to NULL …
Freeing pipeline …