Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've found quite a few programs to divide audio files, but none allow for batch splitting an audio file using arguments. I have several 5 hour and longer audio files (mostly MP3, but I could just as easily convert them) that are accompanied by track listings (time and title). Are there any programs or methods that could allow for splitting audio files based on a list of times, with an accompanying file name (e.g. "00:00 name" then "05:35 name")? Even something like a command line utility that could allow for arguments for the output file name and time would work, in my case.

share|improve this question
up vote 2 down vote accepted

FFmpeg does this.

ffmpeg -ss <start time secs> -t <duration secs> -i <input file> <output file>

That will take the slice of the input file starting at the start time, go for the duration specified, and put that into the output file.

share|improve this answer

You could try AviSynth but just audio.

From it seems you can either:

  1. Use Blankclip() to make a clip the same length as the sound
  2. Use AudioDub() to dub your sound onto the blank clip.
  3. Use trim() to cut of 30s worth of frames.


Directshowsource("clip.avi", video=false, audio=true)


As you can create user defined functions you could perhaps write a function that takes your arguments, trims the file to that size and outputs it. Then call this function for as many times as required. Or write an AviSynth to output one file, and call it multiple times from a bash script.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.