[FFmpeg-user] How to split and then concatenate a video file?

Stefano Sabatini stefasab at gmail.com
Wed Feb 20 14:16:06 CET 2013


On date Tuesday 2013-02-19 16:49:16 +0100, Žygimantas Bruzgys wrote:
> On Tue, Feb 19, 2013 at 2:28 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> > Does it work if you reencode (instead of -c copy)?
> 
> With reencoding, segment produced less files (14, instead of 30). And
> still contained glitches between split points. Output:
> 

> zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec
> h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4

Did you try with -reset_timestamps 1?


More information about the ffmpeg-user mailing list