To split an audio (.mp3 in my case) into subcomponents (to extract portions of the file), you can do it very easily:
- ensure ffmpeg is installed with appropriate codecs (see convert .flv file into .mp3 file (ie. extract sound from .flv file)
- open a terminal and run :
ffmpeg -f mp3 -i /path/to/file.mp3 -t hh:mm:ss[.xxx] -ss hh:mm:ss[.xxx] -o /path/to/save.mp3
- “-t” option is for the duration of your split
- “-ss” option is where you want your split to start (optional if you want to start at beginning of the file)
- “hh:mm:ss[.xxx]” is a time format where you replace hh, mm, ss, xxx with corresponding hours, minutes, seconds, milliseconds respectively. Milliseconds are in squared brackets to highlight that they are optionals and when specified, must be prepended by a dot.
- man ffmpeg