Enter your email address:

Delivered by FeedBurner

Cut or trim mp3 files with Linux, mpgsplit and mp3cut


StumbleUpon Toolbar

Some months ago I have posted an article showing how to use audacity to edit mp3 files with Linux, this time it is almost the same but we will use our Linux Operating system command line to do that.

We are going to see two different options:

1. mpgtx

To install this program under Debian

sudo aptitude install mpgtx

Now if you want to trim a mp3 file into 10 pieces just enter this command

mpgtx -10 input.mp3 -o output

You will get output01.mp3, output02.mp3 .... output10.mp3 files, and now you can easily transport them, use them as ringtones, or anything you need.

Now if you want to cut an specific part of the mp3 file you may use ranges:

mptsplit input.mp3 [00:00:20-00:00:58] -o output.mp3

Now you will have from the 20th second to the 58th second of the song, in output.mp3 file, which is great for creating ringtones for your cellular.

Read the man page for more options, as you can also join files and some other useful things.

2. mp3cut

First install the program, mp3cut is one tool, of the mp3 suite tools called poc-streamer, so lets install the suite of tools.

sudo aptitude install poc-streamer

Now to cut or trim the mp3 files, it works a lot like the first option in this article, lets try the same example.

mp3cut -o output.mp3 -t 00:00:20+000-00:00:58+000 input.mp3

This will have the same effect and you will get a resulting file containing the song from the 20th second to the 58th second.

Do not forget to check the man page, and also to hear to your resulting files also from the command line check out: mpg123

Trackback URL for this post:

http://www.go2linux.org/trackback/482
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

mp3splt is preparing a new

mp3splt is preparing a new release in a few days.

It is by far the most advanced software to split mp3 and ogg files and the next release will be rock stable, the GUI and the command line....

http://mp3splt.sourceforge.net/

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting