Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

4 Answers 4

up vote 14 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

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.