Skip to main content

Topic: FLACs w/no tags, only XML files—how to get info and change file names? (Read 4386 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
FLACs w/no tags, only XML files—how to get info and change file names?
Hi,
I am new to this and new to flac in particular, so I apologize if this question has been answered before.

My problem is flac files with no metadata. My goal is to insert the correct metadata and change the file names to something more informative.

I have several directories of flac files. I don't know what program was used to rip them. It may have been on a PC or a Mac. It looks like they were ripped in 2006.

Can anyone tell me if any currently available software can make sense of the files listed below?

Thanks.

--------------

Each directory has the same files:

01.flac
02.flac
....
cover.bak
cover.jpg
info.xml
info.xml.backup
info.xml.bak
infonew.xml
infonew.xml.new
prescrub2.xml
rescrub3.xml
titles.tmp


  • db1989
  • [*][*][*][*][*]
  • Global Moderator
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #1
Please note the amended title of this thread. The previous one provided barely any description.

The suggestions in the recent topic on recommended programs for FLAC tagging may or may not have this capability. Perhaps you could try something like this or something else.

In any case, this demonstrates yet again just one of the reasons not to obtain files from questionable sources—something that, by mentioning, you may have reduced your chances of anyone taking time to help you.

  • mjb2006
  • [*][*][*][*][*]
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #2
If it was ripped from CD, and each file is a complete track, IDs can be calculated from the track durations, and those IDs can be used to look up metadata info in various databases like freedb and MusicBrainz.

I suggest using Mp3tag. Drag the files into the main window, make sure they're all selected, go to Tag Sources > freedb, and choose to do the lookup based on the selected files. In the forums there are more Tag Sources add-ons if freedb isn't meeting your needs. Another option would be to use CUETools with its 'Encode' action, and the freedb and MusicBrainz options checked.

The downside of this process is that there's a risk that you'll misidentify the disc. The basic artist/title metadata might be OK, but other details about the pressing could be wrong.

  • skamp
  • [*][*][*][*][*]
  • Developer
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #3
Picard would help.
See my profile for measurements, tools and recommendations.

FLACs w/no tags, only XML files—how to get info and change file names?
Reply #4
Thank you for your reply and for correcting the title.

I understand the concern about pirating. In this case it couldn't be further from the truth. I'm a computer consultant. I spend my days customizing corporate equipment. In this case, as a courtesy, I'm helping a client with a personal matter. In this case the music was ripped by the ex-husband prior to divorce, so I can't go back to him for answers. Also, the client is French and in her mid-fifties. Listening to her music brings tears to my eyes -- and not tears of joy.

Back to business. I tried mp3BookHelper. I got a parser error when I tried to import the xml files.
I tried mp3tag. Good program, but it doen't import xml files. The database lookups don't work well because of the odd music. (It will be a good backup if I can't find better.)

I am hoping to find the program that created all of those extra data files, since it would most likely be able to read them and use them.

-- Overworked

  • Porcus
  • [*][*][*][*][*]
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #5
mp3tag imports text files. What about exporting?

  • db1989
  • [*][*][*][*][*]
  • Global Moderator
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #6
Thank you for your reply and for correcting the title.
You’re welcome!

Quote
I understand the concern about pirating. In this case it couldn't be further from the truth. […]
Then I apologise for being presumptuous. That sounds like a tricky job! Logistically and artistically.

Quote
I am hoping to find the program that created all of those extra data files, since it would most likely be able to read them and use them.
Yeah, hopefully you can find it; perhaps other members have better suggestions programs than mine, which make it obvious that I have no experience in this area.

  • mjb2006
  • [*][*][*][*][*]
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #7
XML files are also text files. Did you try opening them in Notepad to see what they contain?
  • Last Edit: 23 February, 2012, 08:48:15 PM by mjb2006

FLACs w/no tags, only XML files—how to get info and change file names?
Reply #8
I opened the info.xml file.
Everything you could possibly ask for is in the file:
<artist>, <name>, <rating>, <review>, <import_date>, <release_date>, <release_label>, <gain>,
Tags for genres, moods, performers, plus the usual track information.

  • mixminus1
  • [*][*][*][*][*]
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #9
Information about the program that created the .xml file is often contained in the first several lines - for instance, here's a few lines from the beginning of an iTunes playlist exported as .xml:

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
...
<key>Application Version</key><string>10.5.3</string>

Is there anything like that in any of your .xml files?
"Not sure what the question is, but the answer is probably no."

FLACs w/no tags, only XML files—how to get info and change file names?
Reply #10
I checked several directories. None of the .xml files have the typical file header!

All of the .xml files start as follows:

<album>
  <artist>Yves Montand</artist>
  <name>Face a Face</name>
  <rating>3</rating>
  <review>...

  • Ouroboros
  • [*][*][*][*]
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #11
I'm sure you can write an import filter for MP3Tag to extract the metadata from those files. It definitely exports in html/xml, and you can define import formats. Have a look at the MP3Tag website forum.
  • Last Edit: 24 February, 2012, 06:10:34 PM by Ouroboros

  • db1989
  • [*][*][*][*][*]
  • Global Moderator
FLACs w/no tags, only XML files—how to get info and change file names?
Reply #12
Or, if that doesn’t work for whatever reason, and/or you like this kind of thing, you could (perhaps with the help of someone code-savvy) put together a script that would read the values from the XML file and add them to the corresponding FLAC file via metaflac.
  • Last Edit: 24 February, 2012, 05:53:39 PM by db1989