If you are a music enthusiast, you may often want to edit MP3 files for various reasons. For example, you may want to trim or chop MP3 files to get rid of silence at the beginnings and ends. Or you may want to split a big MP3 file into smaller segments of certain lengths.
In Linux, there are many free MP3 editor software tools at your disposal. In this tutorial, I will explain how to cut, split or edit MP3 files by using a Linux tool called audacity.
audacity is one of the best known open-source software for recording and editing audio data. It is available for Linux, Windows and Mac OS.
Install Audacity on Linux
audacity is included in the base or third-party repositories on major Linux distros. Thus you can easily install it from an appropriate distro-specific repository.
To install audacity on Ubuntu or Debian, simply run:
To install audacity on CentOS/RHEL 5, first enable Repoforge repository, and then run:
To install audacity on CentOS/RHEL 6, first enable EPEL repository, and then run:
To install audacity on Fedora, simply run:
Edit MP3 File with Audacity
audacity allows you to cut, copy, split, or merge audio data. To edit an MP3 file, open it with audacity as follows.
The audacity interface looks like the following.
If you want, zoom in the file view area by pressing Ctrl+1 key.
Then select the region to edit by mouse clicking and dragging left-selection boundary.
Once the region to edit is selected and highlighted as above, you can cut, copy or paste the selected region by using Ctrl+X, Ctrl+C, and Ctrl+V respectively.
After finishing editing, you can export the edited content to a separate MP3 file. During file export, you can edit the metadata of the exported MP3 file by using audacity's built-in MP3 metadata editor, as shown below.
Note that running two instances of audacity simultaneously on your system may cause data loss or cause your system to crash. To work on multiple MP3 files, use "Open" or "New" menu in the current instance of audacity instead.
Subscribe to Xmodulo
Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.