I read the following thread, and the solution works if I want to split a video into pieces every two minutes: Split video file into pieces with ffmpeg
The problem is that I want to split a video into pieces every 15 seconds.
When I use the following command:
for i in {00..49}
do ffmpeg -i fff.avi -sameq -ss 00:$[ i*2 ]:00 -t 00:00:15 output_$i.avi
done
it will output 15-second video sequences, but not in order. It will skip parts of the video, so I end up with a few 15 second clips, but not all the clips. I want to be able to use ffmpeg to split any video I throw at it into many pieces based on the time I give it.