How to Cut MP3 files under Ubuntu

If you want to cut MP3 files under Ubuntu,follow this instructions first you need to install poc-streamer package.poc is a suite of MP3 tools and MP3 streaming programs. It can stream MP3s over HTTP, RTP multicast (RFC 2250 and RFC 3119) and a special multicast protocol to enable the use of Forward Error Correction to protect the MP3 stream against packet loss. It can also stream OGGs over HTTP. In addition to the streaming programs, poc contains two MP3 tools: mp3cue and mp3cut. mp3cue can cut a big MP3 file according to a tracklisting contained in a .cue file. mp3cut can split and concatenate MP3 files according to time slices given on the command line. mp3cut cuts MP3 files on ADU (autonomous data units) frames to ensure best quality.


Install poc streamer package using the following command

         sudo apt-get install poc-streamer

This will complete the installation.


Using mp3cut

It contains a utility mp3cut

mp3cut Syntax

mp3cut [ -o outputfile ] [ -T title ] [ -A artist ] [ -N album-name ] [ -t [hh:]mm:ss[+ms]-[hh:]mm:ss[+ms] ] mp3file [[ -t … ] mp3file1 …]


mp3cut examples

The following examples cuts a 120 minute MP3 in 2 parts where the first file will be 70 min long

               $ mp3cut -o output1.mp3 -t 00:00+000-01:10:00+000 input.mp3
Writing to output1.mp3
Extracting 00:00:00+000-01:10:00+000 from input.mp3
output1.mp3 written
.
$ mp3cut -o output2.mp3 -t 01:10:00+000 input.mp3
Writing to output2.mp3
Extracting 01:10:00+000-00:00:00+000 from input.mp3
output2.mp3 written

Related Posts:

0 comments: