GENERAL INFO
mp3ai is a small C program I use to burn audio CDs starting from MP3 files. The main goal is to show the total playtime of the target files but it also displays general information about mp3 files.
mp3ai try to be broken-mp3-resistant, so it should hopefully be able to display the right informations if the file have a RIFF header, IDv2 tag or other proprietary headers/garbage prepended.
Note that both the mpeg syncronization header and ID3 tag are unsane, and there is no way to detect they without ambiguity, so mp3ai may fail with some file.
mp3ai does not support VBR files so you may get an incorrect song playtime against this kind of files. It can't show ID3v2 tags.
USAGE
Usage: mp3ai [OPTIONS] [FILES]
Show information about MP3 files, ID3v1[.1] tags, total playtime
-q quiet mode, only show the total playtime
-v verbose mode
-t don't show ID3 tags information
-h show this help
EXAMPLE
$ mp3ai /home/antirez/mp3/foetus/*.mp3
Foetus_Hammer_Falls.mp3 : MPEG 1/III 128 kbit/s 44100 Hz (00:05:32) ---P-|S Foetus_Inc_Your_Salvation.m: MPEG 1/III 128 kbit/s 44100 Hz (00:02:36) ---P-|S Foetus_Interruptus_A_Prayer: MPEG 1/III 128 kbit/s 44100 Hz (00:07:00) ---P-|S Extimated total playtime: (00:15:08)
FLAGS MEANING
In the above example you can see that every entry ends with a set of flags:
RCTPp|?
||||| |
||||| +-----> (S = stereo, J = joint-stereo, D = dual-stereo, M = mono)
||||+-------> (private flag set)
|||+--------> (frame padding set)
||+---------> (ID3v1[.1] tag present)
|+----------> (CRC present)
+-----------> (RIFF header present)
ID3v1[.1] EXAMPLE
$ mp3ai /home/antirez/mp3/Goran\ Bregovic\ -\ Mesecina.mp3
Goran Bregovic - Mesecina.m: MPEG 1/III 128 kbit/s 44100 Hz (00:03:58) --T--|J Title [Mesecina ] Artist [Goran Bregovic ] Album [ ] Year [ ] Comment [ ] Genre [Folk ] (080)
Extimated total playtime: (00:03:58)
When an ID3v1.1 tag is present, mp3ai shows an additional 'track' field with the track number of the song in the original media.
VERBOSE OUTPUT EXAMPLE
$ mp3ai /home/antirez/mp3/Goran\ Bregovic\ -\ Mesecina.mp3
[/home/antirez/mp3/Goran Bregovic - Mesecina.mp3]
MPEG 1 (ISO/IEC 11172-3) Layer III, 128 kbit/s, 44100 Hz, Joint stereo
file size : 3820970
have RIFF header : 0
have crc : 0 have tag : 1
frame padding : 0
bytes per frame : 417
extimated frames#: 9162
header offset : 0
playtime : (00:03:58) Title [Mesecina ] Artist [Goran Bregovic ] Album [ ] Year [ ] Comment [ ] Genre [Folk ] (080)
Extimated total playtime: (00:03:58)
HOW TO COMPILE/INSTALL
To compile just type 'make'
to install copy the executable 'mp3ai' where you like, or
type 'make install'.
The source code is ANSI-C/POSIX, you should be able to compile it in many systems, but it was only tested under linux/x86.
AVAILABILITY
Get mp3ai from http://www.hping.org/mp3ai
RELEASE HISTORY
14 Jan 2001 mp3ai-0 first release
AUTHOR AND BUGS
the author of mp3ai is Salvatore Sanfilippo <antirez@invece.org> please report bugs to <bugs@invece.org>
mp3ai is free software, under the terms of the GPL license version 2 only. A copy of the license is included in this distribution.
