home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 49
/
Amiga_Dream_49.iso
/
amiga
/
applications
/
musique
/
mp3info.lha
/
mp3info.old
/
mp3info.readme
< prev
Wrap
Text File
|
1997-05-28
|
4KB
|
148 lines
Short: Read/Write MP3 TAG info. v0.25
Author: mikecheng@cryogen.com (amiga compile), xeno@mix.hive.no (author)
Uploader: mikecheng@cryogen.com
Version: v0.25
Type:mus/misc
**********************
mp3Info
**********************
A small utility to read and write TAG info, as well as retrieve the MP3
Header info and print it all out in a nice format.
Features:
- Get, Set and Wipe MP3 TAG Info.
- Get MPEG Audio Version 1, 2 and 2.5 (All Layers) Header info.
- Userdefinable output formatting (rather advanced).
- Can rename files according to userdefined scheme.
- Can now also PLAY MP3s in a correct manner (Linux only).
Author is Thorvald Natvig <xeno@mix.hive.no>, if you in any way think this
is a nice program, send me an email saying "Hi". Feedback is nice.
Only tested on Linux/x86, but should theoretically work on anything. I'm
interrested in having it compilable on other machines, so mail me any
problems you may have.
INSTALLATION INSTRUCTIONS:
Just run the file 'INSTALL' to install it, should theoretically work just
fine.
Someday I'll learn how to do autoconfig and then it will be even finer.
If you change any of the source, please, Please send me a patch or the new
source so I can include it. Also send me a email if you use this utility :)
genre.h is autogenerated from list.txt, whcih can be found on the homepage
of Studio3 by NamkraD/DC.
If mkgenre doesn't work, copy genre.h.dist to genre.h and it should work.
NEW VERSIONS:
New versions will be available on ftp://bimbo.hive.no/pub/mp3info/
and if that should fail on my webpage, http://mix.hive.no/~xeno/
MP3 PLAYING:
There are two methods of playing:
One is to use l3dec
(From Fraunhofer (http://www.iis.fhg.de/departs/amm/layer3/))
Just put it anywhere in your path.
The piper and audioplaying is done by the program
itself, at optimium speed :)
The other is to use splay(preferred, but much larger executable)
Get it from ftp://sunsite.unc.edu/pub/Linux/apps/sound/splay-0.1.tar.gz
This is the default method, as indicated in the Makefile.
*****************************
Output formatting magic
The output from the program can be 100% userdefines. There are two uses, one
is -f <format> to set the output format, and the other is -N <format> to set
a naming scheme. -N will RENAME the files specified according to the format.
The format is built up as a string, with the following special characters:
%% = %
%I = IF (explained below)
%! = Not-IF (also explained below)
%t = title of song
%a = Artist
%l = album
%y = year
%c = comment
%g = genre (text)
%# = genre (number)
%v = MPEG Version (1/2)
%L = Layer version (I, II, III)
%C = Error_Protection (0/1)
%b = Bitrate (in kbit/s)
%F = Sampling frequency
%M = mode
%O = Copyright (0/1)
%o = Original (0/1)
%m = length (minutes)
%s = length (remainding seconds.. Ie 3m 2s is "%mm %ss")
%S = length (ALL in seconds).
%N = Newline
%f = Filename (as specified on command line)
%i = Size of file (in bytes)
If cases:
If-cases are %I<WHAT>..
%IT If TAG info present
%IH If HEADER info present
%Ia If Artist info present
%It If Title of song present
%Il If album name present
%Iy If year present
%Ic If comment present
%IC If CRC.
%IO If Copyrighted.
%Io If Original
%IS If Stereo
%IE End-IF.
%! and the same characters means If NOT. So %!T means IF NOT TAG.
%!E is ELSE.
Example..
%IT Tag info present%IE %IHHeader info present %ICwith CRC%IE%IE
should explain it.
As seen, if's can be nested.
There is a length limit on the formatting string and the output which can be
set in mp3tools.h
Hint:
Bash etc often has ! as a special char, meaning you can't use it on the
command line, you have to have it in a bash-script of sorts.
Naming: I use the following naming scheme :
mp3info -N "%IH%It%t.mp3%IE%IE"
Which calls the tune
Rhythm is a dancer.mp3
Which names the files as <song name>.mp3, which is how I like it.
As an alternative, you can use:
mp3info -N "%IH%It%Ia(%a)-%IE%t.mp3%IE%IE"
Which would produce
(Snap)-Rhythm is a dancer.mp3
as a name.
-------
CREDITS
-------
I got the info about the MPEG Headers from free software available to decode
MPEG2 streams.
ID3 format by NamkraD/DC (erick@marble.net)
http://www.marble.net/~erick/mpeg3.htm