[FFmpeg-user] Split video with ffmpeg

Mikhail Pavlov pavlov.ms.81 at gmail.com
Fri Apr 27 17:29:15 EEST 2018


I'm trying to split MP4-file into several equal-parts files.
This is an example of the command I'm using:

ffmpeg -i inputFile.mp4 -c copy -map 0 -f segment -segment_time 100 

It produces several small MP4-files with duration of 100 seconds.

However, at the start of each small file (except first) there's a couple 
of seconds with black frames.

I tried adding options:

-reset_timestamps 1
-break_non_keyframes 1

but it didn't help.

How can I bypass this behavior ?

Thanks in advance,
Mikhail Pavlov

More information about the ffmpeg-user mailing list