Here's a trick that may be helpful to someone else.  In the newest
version of Mp3tag you can map field names to others.  I'd always found
Mp3tag to be awkward to use when trying to tag both FLAC and MP3 files. 
This is due to its use of internal field names that it maps to the
actual names for different types of tags.  I create a lot of Actions
(actually 'Action Groups') to automate the tagging of files.  The
problem is that for FLAC files the field names are (almost) all used
literally, while with MP3/ID3v2 they're mapped to something else.  If
you wanted to use the same Action Groups on both types of files you had
to come up with some very long if..then..else constructs, keying off of
the file type.  Not any more.

A good example is the COMPILATION tag.  In MP3 files you generally want
to use the TCMP frame, which requires you to use the Mp3tag internal
name ITUNESCOMPILATON.  In FLAC files you want the field name
COMPILATION.  If you use COMPILATION in an action on an MP3 file you get
a user defined TXXX frame with description COMPILATION instead of a TCMP
frame.  Conversely, using ITUNESCOMPILATION on a FLAC file gives you a
literal field named ITUNESCOMPILATION.

So what you can do is create your own tag mappings so that you can use
the same field name for tagging both FLAC and MP3 files.  In the screen
shot below I couldn't quite capture the tag column.  The first three map
Vorbis Comments (in FLAC and Ogg Vorbis files) and are built-in to
Mp3tag.  The remainder are for ID3v2 tags and are the mappings that I've
defined.  What this does is it allows you to use COMPILATION and most
other tags normally used with FLAC files on MP3 files.  What it's doing
for the ID3v2 tags, essentially, is putting the name through two levels
of mapping - first the user-defined mapping, then Mp3tag's internal
mapping.  So you have:

COMPILATION -> ITUNESCOMPILATION -> TCMP

In practice I've found that it works extremely well.  Any place you use
COMPILATION, including the variable %compilation% in your Action Groups,
it will work with both FLAC and MP3 files.  You never have to use (or
even see) the strangely named ITUNESCOMPILATION field again and never
have to worry about which type of file you're working with.


+-------------------------------------------------------------------+
|Filename: 2009-12-10_154848.jpg                                    |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=8847|
+-------------------------------------------------------------------+

-- 
JJZolx

Jim
------------------------------------------------------------------------
JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10
View this thread: http://forums.slimdevices.com/showthread.php?t=51816

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping

Reply via email to