The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

package CueFile::Test;

if ( !caller ) { my $c = new CueFile(\*DATA); use Data::Dumper; print Dumper($c); print $c->tracks, " tracks\n"; }

__DATA__ PERFORMER "Pink Floyd" TITLE "Wish You Were Here" FILE "Wish_You_Were_Here.mp3" WAVE TRACK 01 AUDIO TITLE "Shine on You Crazy Diamond (Part I-V)" PERFORMER "Pink Floyd" INDEX 01 00:00:00 TRACK 02 AUDIO TITLE "Welcome to The Machine" PERFORMER "Pink Floyd" INDEX 01 13:32:67 TRACK 03 AUDIO TITLE "Have a Cigar" PERFORMER "Pink Floyd" INDEX 00 21:03:25 INDEX 01 21:06:17 TRACK 04 AUDIO TITLE "Wish You Were Here" PERFORMER "Pink Floyd" INDEX 01 26:30:47 TRACK 05 AUDIO TITLE "Shine on You Crazy Diamond (Part VI-IX)" PERFORMER "Pink Floyd" INDEX 01 31:46:57


mp3cut - split MP3 files according to cue sheets


sample [options] [file ...]


   --silent             don't produce verbose messages
   --id3tags            provide ID3 tags on the files
   --ident              show identification
   --help               brief help message
   --verbose            verbose information



Provide ID3 tag information to the written MP3 files.

This requires a yet unreleased additional package. Stay tuned.


More verbose information (default).


Less verbose information.


Print a version identification to standard output and exits.


Print a brief help message to standard output and exits.


Prints a program identification.


Input file(s), which must be valid cue sheets.


This program will read the given cue sheets and spits the associated mp3 files according to the information in the cue sheet.

The name of the MP3 file will be taken from the cue sheet. All tracks will be written with names derived from the track title, with spaces changed to underscores, the track number prefixed, and ".mp3" added.

Some iterations may be necessary to find satisfying cut points, but it is easy to adjust the cue file data manually.


mp3cut does not understand CDDB entry data. A helper program, cddb2cue can be used to generate a cue sheet from the CDDB info.

Some iterations may be necessary to find satisfying cut points, and it is easier to correct a cue file than the CDDB info.


MPEG::Audio::Frame 0.04 or later, except 0.07.


Audio data can be copied incorrectly. Always check your resultant files. Never throw away the original data. USE AT YOUR OWN RISK.


Johan Vromans <>


This programs is Copyright 2003, 2004, Squirrel Consultancy.

This program is free software; you can redistribute it and/or modify it under the terms of the Perl Artistic License or the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.