I've got a folder full of FFMPEG batch files that I've written to do various conversion tasks. These allow me to drag and drop a bunch of files and do a conversion - for example, decompressing MP3 to WAV files, cropping XVID files etc.
Now I want to write one that splits an MP3 into smaller chunks. There's a neat FFMPEG command for this
ffmpeg -f mp3 -i /path/to/file.mp3 -t 00:00:00 -ss 00:10:00 -y /path/to/save.mp3
However, this only extracts the first 10 minutes. To go through the whole MP3 I'd have to write similar statements for every 10 minutes of the MP3's length. Is there a way to tokenise this in batch files?