I'm trying to split an audio file as follows:
ffmpeg -i file.mp3 -vn -acodec copy -ss 00:00:00 -t 00:03:21 01-track1.mp3
ffmpeg -i file.mp3 -vn -acodec copy -ss 00:03:21 -t 00:08:26 02-track2.mp3
ffmpeg -i file.mp3 -vn -acodec copy -ss 00:08:26 -t 00:10:45 03-track3.mp3
That seems to work but I noticed that the starttime is not correct. So now I have files like this:
track1.mp3: 00:03:21
track2.mp3: 00:08:25
track3.mp3: 00:10:44
The endtime is correct but it always start from the beginning of the audio file instead of the place it should start
-ss
is the start point inhh:mm:ss
from the beginning of the video file. 2:-t
is the length of time inhh:mm:ss
of the segment. In other words, a thirty second segment is being processed.-t
is not needed if the segment extends to the end of the video.