The first apeinfo, which is a C++ program that returns a detailed list of information about a given APE file. It's largely based on a sample program included with the Linux MAC port, and relies on MACLib provided by the same package (Monkey's Audio Codec non-win32 ports, by Matthew T. Ashland). Running it on an APE file in its default mode will yield output like the following:
CODE
$ apeinfo ~/ape/bitch.ape
File Information
File Name: bitch.ape
File Size: 30232 kb
APE Version: 3.99
Compression: Normal
Tag Format: APEv2
Audio Information
Track Length: 4:12.760 (252 s)
Samples/sec: 44100 Hz
Bits/sample: 16
Channels: 2
Peak level: -1
Tag Information
Album: Blurring The Edges
Artist: Meredith Brooks
Comment: Exact Audio Copy
Genre: Rock
Title: Bitch
Track: 2
Year: 1997
File Information
File Name: bitch.ape
File Size: 30232 kb
APE Version: 3.99
Compression: Normal
Tag Format: APEv2
Audio Information
Track Length: 4:12.760 (252 s)
Samples/sec: 44100 Hz
Bits/sample: 16
Channels: 2
Peak level: -1
Tag Information
Album: Blurring The Edges
Artist: Meredith Brooks
Comment: Exact Audio Copy
Genre: Rock
Title: Bitch
Track: 2
Year: 1997
It can also be run with the -t option, which outputs the tags in VORBISCOMMENT format:
CODE
$ apeinfo -t ~/ape/bitch.ape
ALBUM=Blurring The Edges
ARTIST=Meredith Brooks
DESCRIPTION=Exact Audio Copy
GENRE=Rock
TITLE=Bitch
TRACKNUMBER=02
DATE=1997
ALBUM=Blurring The Edges
ARTIST=Meredith Brooks
DESCRIPTION=Exact Audio Copy
GENRE=Rock
TITLE=Bitch
TRACKNUMBER=02
DATE=1997
The second program is shell script that transcodes an APE file to a FLAC file. It uses the VORBISCOMMENT output from apeinfo to migrate tag information as well.
The reason I wrote these programs is because prefer the FLAC format, but occasionally have to work with APE files instead. So, I wanted an easy way to transcode the APE files FLAC files. Decoding with mac and then reencoding with flac is easy enough to do, but as far as I can tell there is no readily available program that can read APE tag information from the Linux command line. So, I fixed that problem.
For anyone interested in trying it out, full details and download links can be found on the application website at http://www.legroom.net/mysoft. Any and all feedback is welcome. Hope you find it useful.
