Thursday, January 3, 2013

Split/cut mp3 files using ffmpeg

FFmpeg is a very handy tool. It's hard to find a video/audio encoding/decoding task which it cannot do.  But, with the command-line version one would have to go through the manual page to know about it much better.

Splitting mp3 files is fairly straight forward process.

ffmpeg -i input-file.mp3 -acodec copy -t 00:00:30 -ss 00:02:20 output-file.mp3

This is what I do to extract a 30-second portion (2.20 secs to 2.50 secs) from an mp3 file. Simple!

1 comment:

keithservick said...

You may also follow this simple method to split MP3 into seveval tracks AT

It also can split AIFF, Apple Lossless ALAC, FLAC, APE, M4A, WAV, AAC, WMA, M4B etc.

It even can merge audio files into one, increase audio volume, change audio channel etc