[FFmpeg-user] How to concatenate with start timecode bigger than 0

Eric Trezza (b-swiss) erictrezza at b-swiss.com
Sun Sep 22 17:40:29 CEST 2013


I am trying to split a movie and concatenate it. It works fine except that
the concatenate isn't perfect because of the start timecode and I don't
know if my mistake is in the splitting process or in the concatenation

Here is my simple code:

The splitting: 
ffmpeg -ss 00:00:00.000 -t 00:00:04.234 -i sample.mov -acodec copy -vcodec
copy -async 1 temp1.mov
ffmpeg -ss 00:00:05.329 -t 00:00:07.361 -i sample.mov -acodec copy -vcodec
copy -async 1 temp2.mov

Then the concatenation:

ffmpeg -f concat -i files.txt -c copy final.mov

The result is temp1.mov from 00:00:00 to 00:00:04:234 then temp2.mov from
00:00:05:000 to 00:00:12:690

So the temp2.mov starts too early in the concatenation. I noticed that for
temp2.mov infos are:
Duration: 00:00:07.71, start: 0.336712 so I suspect that my problem comes
from the fact that start timecode is not managed by the concat.

I would appreciate your help on this.

Thanks ! 


More information about the ffmpeg-user mailing list