chreo.net

Audio Tag Extractor

[ Audio Tag Extractor ] (zip) [version 1.06 released 2005-08-21]
[ Sourcecode ] (zip) [version 1.06 released 2005-08-21]
Release History

Description
Audio Tag Extractor is a small command-line utility used for extracting audio tags from MP3 and Monkey's Audio compressed files and output the data to a textfile and/or the console.

Audio Tag Extractor is implemented in C# and has been tested to run under .NET Framework. There should not be anything in the implementation that prevents it from running on Mono as it only uses the System and System.IO namespaces.

Audio Tag Extractor is completely free to use. You can use the sourcecode as long as you give credit. See License.txt included with the sourcecode archive for details.

Operation
Nota Bene: Audio Tag Extractor requires an installation of .NET Framework or Mono!

Audio Tag Extractor automatically detects the format of the input file (*.ape or *.mp3). Depending on the arguments it will output the tag data to a file or to the console.

Audio Tag Extractor is very useful if you want to automate the extraction of tag data for example when transcoding to a different format. I've used it to extract tag data from my APE-backups of my CD-library (167 CD:s) to Ogg Vorbis for my Neuros player. The following Windows command-script was executed in each folder (each folder contains one CD-backup in Monkey's Audio format).

FOR %%f in (*.ape) DO (If Not Exist Transcode MD Transcode
MAC "%%f" Temp.wav -d
OggEnc -q3 -o Transcode\Temp.ogg Temp.wav
AudioTagExtractor "%%f" Transcode\Temp.txt

CD Transcode
VorbisComment -w -c Temp.txt Temp.ogg
Ren Temp.ogg "%%f".ogg
CD ..

Del Temp.wav Transcode\Temp.txt Transcode\Temp.ogg
)

With some additional script-commands I was able to loop through, transcode and move all of my CD-backups with very little effort (Contact me if you want my batch files). It turns out Windows XP is not completely useless for scripting (although it is quite far behind the shells of the Unices).

Command Format
Program usage: AudioTagExtractor [infile] [outfile] (options)

Options:

-?, -h (--help)
Display this help information.

-1 (--1only)
Extract only ID3v1-tags even if ID3v2-tags are present. Valid for MP3-files only.

-12 (--prefer1over2)
Prefer data present in ID3v1-tags when both ID3-tags are present. Valid for MP3-files only.

-2 (--2only)
Extract only ID3v2-tags even if ID3v1-tags are present. Valid for MP3-files only.

-21 (--prefer2over1)
(Default) Prefer data present in ID3v2-tags when both ID3-tags are present. Valid for MP3-files only.

-a (--append)
Append output to the existing file [outfile]

-e (--echo)
(Default) Output information to console during run.

-eo (--echoonly)
Only write information to console during run. Does not write output to file.

-i (--Info)
Show audio data such as format, length etc.

-o (--outputemptytags)
Include tags that are not defined in the audio-file in the output.

-q (--quiet)
Do not write information to console.

-r (--replace)
Replace the existing outfile.

Comments and Feature Requests - chreo@chreo.net
Comments (feedback, bugs etc) and feature requests for future versions are most welcome. I will answer all e-mail (unless it is flame and spam or becomes to overwhelming).


Last changed 2005-08-21
chreo.net
all content copyright © 2002-2005 Christian Elmerot unless explicitly stated otherwise
reproduction and redistibution is strictly forbidden without permission
chreo@chreo.net