PDA

View Full Version : FLAC metadata problem



John Hernandez
2004-12-01, 09:09
I have tagged many FLAC files in my collection using the Java program
Entagged. Instead of using TRACKNUMBER=xx in the header, Entagged has
written TRACK=xx. I've submitted a bug report. It appears that
Slimserver does not recognize this tag. Is there an easy way to modify
the FLAC.pm code such that this tag will be recognized _in addition to
the standard tag_?

Alternatively, can anyone suggest a way to correct this tag in a bulk,
automated fashion?

e.g.:
METADATA block #2
type: 4 (VORBIS_COMMENT)
is last: false
length: 160
vendor string: reference libFLAC 1.1.0 20030126
comments: 6
comment[0]: GENRE=Jazz
comment[1]: TRACK=01
comment[2]: ALBUM=Willow Weep For Me
comment[3]: DATE=1965
comment[4]: ARTIST=Wes Montgomery
comment[5]: TITLE=Willow Weep For Me

Jason Holtzapple
2004-12-01, 10:51
John Hernandez wrote:
>
> I have tagged many FLAC files in my collection using the Java program
> Entagged. Instead of using TRACKNUMBER=xx in the header, Entagged has
> written TRACK=xx. I've submitted a bug report. It appears that
> Slimserver does not recognize this tag. Is there an easy way to modify
> the FLAC.pm code such that this tag will be recognized _in addition to
> the standard tag_?
>
> Alternatively, can anyone suggest a way to correct this tag in a bulk,
> automated fashion?

TRACKNUMBER is the de facto standard for vorbis tags. I'd update your
tags or other programs would be confused as well. There's a few ways
to update your tags pretty easily ... tell us what OS you are using and
someone should be able to help.

John L Fjellstad
2004-12-01, 22:03
On Wed, Dec 01, 2004 at 09:09:57AM -0700, John Hernandez wrote:

> Alternatively, can anyone suggest a way to correct this tag in a bulk,
> automated fashion?
>
> e.g.:
> METADATA block #2
> type: 4 (VORBIS_COMMENT)
> is last: false
> length: 160
> vendor string: reference libFLAC 1.1.0 20030126
> comments: 6
> comment[0]: GENRE=Jazz
> comment[1]: TRACK=01
> comment[2]: ALBUM=Willow Weep For Me
> comment[3]: DATE=1965
> comment[4]: ARTIST=Wes Montgomery
> comment[5]: TITLE=Willow Weep For Me

Looks like you're running Linux, so something like this should work

for file in *; do
TRACK=`metaflac --show-vc-field=TRACK $file| cut -d'=' -f2`
metaflac --remove-vc-field=TRACK $file
metaflac --add-vc-field="TRACKNUMBER=${TRACK}" $file
done

--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes