[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to join 2 video files with ffmpeg or mencoder



lou (12022-03-20):
> and then resized with same ffmpeg command to reduce file size

The advice to use the concat demuxer were sound if it was not for this
tidbit of information. Since you are transcoding the files, you should
be concatenating before transcoding, as anything else is way less
robust.

For that, use the concat filter, not the concat protocol:

ffmpeg \
  -i file1 \
  -i file2 \
  -lavfi '[0:v][0:a][1:v][1:a]concat=v=1:a=1:n=2' \
  <encoding options>

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature


Reply to: