Skip to main content
Working from scratch, following simplicity

Add new comment

Mike (not verified) Thu, 10/22/2015 - 00:32

Hi Nicola,
thank you for publishing your tips for cutting & joining MP4s with ffmpeg.
I Currently run different converters (freeware and trial software) to see what can fit my cases. I also work with VirtualDub and FFMpeg where after editing I join my videos in a similar fashion as you describe. I'm using a batch file with this content:

ffmpeg -i video1.mp4 -c copy -bsf h264_mp4toannexb temp1.ts
ffmpeg -i video2.mp4 -c copy -bsf h264_mp4toannexb temp2.ts
ffmpeg -i video3.mp4 -c copy -bsf h264_mp4toannexb temp3.ts
ffmpeg -i video4.mp4 -c copy -bsf h264_mp4toannexb temp4.ts
ffmpeg -i video5.mp4 -c copy -bsf h264_mp4toannexb temp5.ts
ffmpeg -i "concat:temp1.ts|temp2.ts|temp3.ts|temp4.ts|temp5.ts" -c copy -bsf aac_adtstoasc output.mp4
del temp1.ts temp2.ts temp3.ts temp4.ts temp5.ts

I understand that my videos must all have the same parameters (codecs, size, bitrate, audio data...) in order to use this batch, otherwise I would have to re-encode these videos in a single one. The big advantage with this batch is: with similar videos you don't have to re-encode and this will save you a lot of system ressources.

BUT:
If I look in the Command Line Window when executing this batch file, I notice a lot of yellow error messages telling that theere 'could be mismatches in the timestamp'. My videos play fine however. What does this mean, can I just ignore these messages?
I'm using the latest ffmpeg: v. N-76137.

Thanks very much if you could clarify!
Greets,
Mike

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Nicola Rainiero

A civil geotechnical engineer with the ambition to facilitate own work with free software for a knowledge and collective sharing. Also, I deal with green energy and in particular shallow geothermal energy. I have always been involved in web design and 3D modelling.