Linux: APE tag reader and FLAC conversion script
2006-08-13 22:43:53
This post will likely only be of interest to Linux users, but it should be a big help to those who use Linux and have to work with APE files. I've written a couple programs to help manage APE files under Linux. 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:$ 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 It can also be run with the -t option, which outputs the tags in VORBISCOMMENT format:$ apeinfo -t ~/ape/bitch.ape 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.