ls2nocddb - produce CDDB::Fake info from a directory
ls2nocddb [ options ] directory ...
Options:
--[no]length [do not] include length information --print write to standard output --verbose more verbose information --help help message
This program can generate CDDB::Fake information data from a directory containing MP3 files.
It requires the directory to be named Artist_Name/Album_Title.
The MP3 files in the directory must be named NN_Track_Title.mp3, where NN is the track number.
When the package MP3::Info or MPEG::Audio::Frame is available, the program can add the lengths of the tracks to the generated information.
For example: Given the directory Jazz/Dick_Onstenk/Dick's_Jazz_Stuff with the following files:
01_Body_And_Soul.mp3 02_Fly_Me_To_The_Moon.mp3 03_Lover_Man.mp3 04_Freddie_Freeloader.mp3 05_Billie's_Bounce.mp3 06_Softly_As_In_A_Morning_Sunrise.mp3
Then running ls2nocddb with option --length and argument Jazz/Dick_Onstenk/Dick's_Jazz_Stuff, will create a file named .nocddb in that directory, with the following contents:
--length
Jazz/Dick_Onstenk/Dick's_Jazz_Stuff
.nocddb
Dick Onstenk / Dick's Jazz Stuff 1. Body And Soul 3:17 2. Fly Me To The Moon 4:20 3. Lover Man 6:16 4. Freddie Freeloader 5:32 5. Billie's Bounce 4:22 6. Softly As In A Morning Sunrise 3:55 Generated by ls2nocddb 1.4 on Fri Jul 25 14:31:41 2003
Note that calculating the length using MPEG::Audio::Frame make tay some time but it is accurate. Using MP3::Info is fast but depends on the accuracy of the MP3 header info. For this reason, MP3::Info is preferred and MPEG::Audio::Frame is only used as a fall back. Specifying --length forces length calculation with MPEG::Audio::Frame. --nolength suppresses length calculation.
CDDB::File.
MP3::Info or MP3::Audio::Frame (both optional). If installed, the program can add the lengths of the tracks to the generated information.
MP3::Info
MP3::Audio::Frame
Johan Vromans <jvromans@squirrel.nl>
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.
To install CDDB::Fake, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CDDB::Fake
CPAN shell
perl -MCPAN -e shell install CDDB::Fake
For more information on module installation, please visit the detailed CPAN module installation guide.