MP3 and MBIDs
#1
Today I was investigating an issue in connection with the new boxset feature (I'll post about that seperately) and for that I had a look in the MySQL database, specifically in the "albums" table. Many albums of which I am sure I had tagged (in foobar2000) did have empty fields in the columns strMusicBrainzAlbumID and strReleaseGroupMBID. I've checked the files and sure enough they were tagged correctly.

Next, I had a look at the quirks of id3v2.4 (which is what I use) that can be toggled in foobar, like padding for faster writing or some uses of TPE2 and TXXX. After each change, I scanned one album I had selected into the library again. The MBIDs still wouldn't be picked up.

Next, I decided to use a different tagging scheme. I tagged with both id3v2.4 and APEv2. To cut a long story short, my MBIDs are ONLY scanned into Kodi when APEv2 tags are present AND in advancedsettings the instruction <prioritiseapetags>true</prioritiseapetags> is present. id3 tags seem to be ignored, at least where MBIDs are concerned.

Can anybody confirm this behaviour? It's the same in Leia and Matrix.
Reply
#2
I suspect that there is a problem with your tagging especially since you are using Foobar2000 to do your tagging not Picard. Muiscbrainz id tags are custom tag values additional to the ID3 v2.4 standard, the tag values have to be correctly named in the metadata as follows:

TXXX:MUSICBRAINZ ARTIST ID
TXXX:MUSICBRAINZ ALBUM ARTIST ID
TXXX:MUSICBRAINZ ALBUM ID
TXXX:MUSICBRAINZ RELEASE GROUP ID

The names for these tags were originally set by Muiscbrainz, and confusingly there are variations in the names for different tag formats. For example in APE the tag names are MUSICBRAINZ_ALBUMID, MUSICBRAINZ_RELEASEGROUPID etc. subtly different from ID3 v2.4 or Vorbis. In the past I know there was a script for Mp3tag that added tags mbid and did not use the expected names, I don't know what tools you use in Foobar2000 but suspect that a similar thing has happened.
Reply
#3
@DaveBlake Thanks for your insights!

I will investigate further and if there is an issue with foobar2000 I will raise it there. For fb2k there is a plugin which writes MB tags. They can be freely named and I see that the default values correspond to what you cite is correct for APE tags. I don't know how to check if values for MP3 are correct since fb2k masks fields for user convenience and simpler input. Would you mind if I sent you one of those files for you to look at?
Reply
#4
If you scan a file with ID3 v2.4 tags with debug turned on, if the TXXX field is not recognized by Kodi, it will log that, along with the description of the field.  In other words, if the TXXX tag is MUSICBRAINZ_ALBUMID it should be logged as unrecognized user text tag detected: TXXX:MUSICBRAINZ_ALBUMID as the ID3 v2.4 tags have spaces in them, not underscores.

That way, you can immediately tell if foobar2000 is writing them correctly or not.
Learning Linux the hard way !!
Reply
#5
Thanks, it was as you suspected, the tags id3 tags are wrong. I'll point the programmer of the foobar2000 plugin here.

What I don't understand is why the tags seems to read multiple times on error:

xml:
2020-01-03 23:57:14.679 T:11708 DEBUG: MUSIC_INFO::CMusicInfoScanner::DoScan Scanning dir 'smb://192.168.1.185/Q/Music/_File/#Modern#/#Lossy/A Perfect Circle/(2004) eMOTIVe/' as not in the database
2020-01-03 23:57:14.679 T:11708 DEBUG: Mysql execute: UPDATE versiontagscan SET lastscanned = '2020-01-03 23:57:14'
2020-01-03 23:57:14.745 T:11708 DEBUG: Mysql execute: delete from song where idSong in (667103,667104,667105,667106,667107,667108,667109,667110,667111,667112,667113,667114)
2020-01-03 23:57:14.771 T:11708 DEBUG: Mysql execute: delete from path where strPath='smb://192.168.1.185/Q/Music/_File/#Modern#/#Lossy/A Perfect Circle/(2004) eMOTIVe/'
2020-01-03 23:57:14.824 T:11708 DEBUG: unrecognized ID3 frame detected: TDOR
2020-01-03 23:57:14.824 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_RELEASETRACKID
2020-01-03 23:57:14.824 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_ALBUMARTISTID
2020-01-03 23:57:14.824 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_FORMAT
2020-01-03 23:57:14.824 T:11708 DEBUG: unrecognized user text tag detected: TXXX:BARCODE
2020-01-03 23:57:14.825 T:11708 DEBUG: unrecognized user text tag detected: TXXX:CATALOGNUMBER
2020-01-03 23:57:14.825 T:11708 DEBUG: unrecognized user text tag detected: TXXX:LABEL
2020-01-03 23:57:14.825 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MEDIA
2020-01-03 23:57:14.825 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_ALBUMID
2020-01-03 23:57:14.825 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_ALBUMSTATUS
2020-01-03 23:57:14.825 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_ALBUMTYPE
2020-01-03 23:57:14.825 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_ARTISTID
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_RELEASEGROUPID
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:MUSICBRAINZ_TRACKID
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:RELEASECOUNTRY
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:ALBUM DYNAMIC RANGE
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_ARTIST_ID
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_ARTIST_LINK
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_CATALOG
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_COUNTRY
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_LABEL
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_LABEL_LINK
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_ORIGINAL_TRACK_NUMBER
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_RELEASE_ID
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_RELEASE_MONTH
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DISCOGS_RELEASED
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:DYNAMIC RANGE
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:FIRST_PLAYED
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:LAST_PLAYED
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:LYRICS
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:PLAY_COUNT
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:PLAY_STAMP
2020-01-03 23:57:14.826 T:11708 DEBUG: unrecognized user text tag detected: TXXX:STYLE
etc.
Reply
#6
(2020-01-04, 01:08)HeresJohnny Wrote: Thanks, it was as you suspected, the tags id3 tags are wrong. I'll point the programmer of the foobar2000 plugin here.

What I don't understand is why the tags seems to read multiple times on error:

12 tracks on the album + in the folder

I was caught out by that when MBIDs were first introduced. I also use APE2 tags as I had too many problems with v2.3 tags at the time and just keep that workflow.

scott s.
.
Reply
#7
(2020-01-04, 03:54)scott967 Wrote: 12 tracks on the album + in the folder

Sure, but it's 12 times 12 errors... anyway, the riddle is solved and the problem needs to be solved somewhere else.
Reply
#8
(2020-01-04, 01:08)HeresJohnny Wrote: Thanks, it was as you suspected, the tags id3 tags are wrong. I'll point the programmer of the foobar2000 plugin here.
If a plugin is attempting to mimic the custom tags added by Picard then the author will find this tag mapping documentation useful https://picard.musicbrainz.org/docs/mappings/ . The tag names are inconsistent across file/tag formats.
Reply

Logout Mark Read Team Forum Stats Members Help
MP3 and MBIDs0