How do I split a large mp4 file using
ffmpeg, into smaller clips, which are 15 seconds each?
Use the segment muxer:
ffmpeg -i ~/Desktop/in.mp4 -c copy -map 0 -f segment -segment_time 15 -reset_timestamps 1 -segment_format_options movflags=+faststart out%03d.mp4
This example will use stream copy mode, so re-encoding will be avoided. However, it has to cut on the nearest keyframes so accuracy is not guaranteed. Remove
-c copyif you need more accuracy, but note that re-encoding will occur.
Output files in this example will be named