Concat MP4 files with H264 and AAC Audio

Hi guys, I’m trying to create a pipeline to concatenate mp4 files with H264 codecs and AAC audio, however with this pipeline only the audio is concatenated, the output file has no video. Has anyone experienced anything similar?

gst-launch-1.0 concat name=c ! qtmux faststart=true ! filesink location=outFile.mp4 filesrc location=out_00.mp4 ! qtdemux ! queue ! c. filesrc location=out_01.mp4 ! qtdemux ! queue ! c.

I just found a solution in case if someone need this pipeline

gst-launch-1.0 \
  concat name=c_v ! queue ! h264parse ! m.video_0 \
  concat name=c_a ! queue ! aacparse ! m.audio_0 \
  qtmux name=m faststart=true ! filesink location=saida_final.mp4 \
  filesrc location=out_00.mp4 ! qtdemux name=demux0 \
    demux0.video_0 ! queue ! c_v. \
    demux0.audio_0 ! queue ! c_a. \
  filesrc location=out_01.mp4 ! qtdemux name=demux1 \
    demux1.video_0 ! queue ! c_v. \
    demux1.audio_0 ! queue ! c_a.
1 Like