Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 was looking for software which is able to cut audio files into smaller pieces, for example I set seconds and miliseconds for beginning and end of cutting, and then I can save cut content as new file.

share|improve this question
up vote 18 down vote accepted

Audacity Install Audacity is capable of doing this.

About Audacity

Audacity is a free, easy-to-use and multilingual audio editor and recorder for Windows, Mac OS X, GNU/Linux and other operating systems. You can use Audacity to:

  • Record live audio.
  • Convert tapes and records into digital recordings or CDs.
  • Edit Ogg Vorbis, MP3, WAV or AIFF sound files.
  • Cut, copy, splice or mix sounds together.
  • Change the speed or pitch of a recording.
  • And more! See the complete list of features.

enter image description here

share|improve this answer

avconv can do this.


avconv -i infile.m4a  -ss *pos* -t *duration* outfile.mp3

pos is start time in seconds

duration is play time in seconds

Install libav-tools to make it happen.

If you are not sure about the start and end times and want to listen to the segment before making it a new file, you should know that avplay takes many of the same arguments as avconv does.


avplay -ss 5030 -t 970 infile.m4a

If you don't want to do math in your head and also would not like to pull up a calculator, you can use the Hour:Minute:Second format instead. The example given above would then be:

avplay -ss 1:23:50 -t 00:16:10 infile.m4a

Also, keep in mind that if the pieces are not the final output (e.g. you are going to combine them), you might want to keep using the same format as that of the input file.

share|improve this answer

Another method using mplayer

mplayer -quiet \
sourcefile.mp4 -ao pcm:fast:file=output.wav \
-vc dummy -vo null -channels 2 \
-ss 1:00 -endpos 0:30

note that output file will start from 1:00 for a duration of 30 seconds.

-endpos here means duration.

share|improve this answer

Somehow for me, the following worked extremely well

sudo apt-get install mpgtx

Once this is done, change the current directory to the directory where input.mp3 is located and then run the following:

mpgsplit input.mp3 [hh:mm:ss-hh:mm:ss] -o output.mp3
share|improve this answer

i've never use this, but it looks great Lmms & manual wiki

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.