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.
-an
flag at last. – Pehat Aug 09 '16 at 21:31-an
from the code. You might be able to retrieve your source video with Photorec: http://www.linux-magazine.com/Online/Features/Rescuing-Lost-Files-with-TestDisk-and-PhotoRec – whitewings Aug 09 '16 at 22:59