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:Code: [Select]$ apeinfo ~/ape/bitch.apeFile Information File Name: bitch.ape File Size: 30232 kb APE Version: 3.99 Compression: Normal Tag Format: APEv2Audio Information Track Length: 4:12.760 (252 s) Samples/sec: 44100 Hz Bits/sample: 16 Channels: 2 Peak level: -1Tag Information Album: Blurring The Edges Artist: Meredith Brooks Comment: Exact Audio Copy Genre: Rock Title: Bitch Track: 2 Year: 1997It can also be run with the -t option, which outputs the tags in VORBISCOMMENT format:Code: [Select]$ apeinfo -t ~/ape/bitch.apeALBUM=Blurring The EdgesARTIST=Meredith BrooksDESCRIPTION=Exact Audio CopyGENRE=RockTITLE=BitchTRACKNUMBER=02DATE=1997The 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.