title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 15 of 17

Thread: Need Suggestions on Music Data Tag Reader

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    dBpoweramp Enthusiast
    Join Date
    Jun 2020
    Posts
    55

    Need Suggestions on Music Data Tag Reader

    I completed ripping my music CD collection to FLAC with dBpoweramp and creating converted m4a versions of those FLAC files roughly six months ago. I have created two primary and two backup music collection folders on both of my computer's internal and external hard drives. I intend to make it a habit to check those music folders over time such as once every 6 months or year to make sure my song files are good and not somehow damaged, corrupted, or screwed up. I did my initial checks using Mp3Tag to make sure some general song properties such as format and frequency were correct. I also used Ultrasearch app to check to make sure my song files in my assigned folders were not somehow accidentally modified or changed after a certain date. Ultrasearch lets me check files from multiple folders at once but it is not a music app. MP3Tag only lets me load and check one folder at a time. I was wondering if anyone here knows of a music file tag program that lets me check multiple folders at once and can tell me if any of my music files from my ripped CDs have lost or are missing data tag information such as album, artist, genre, etc., so that I can identify and fix those tags if they are missing. I would like to keep my music collection, both source and backup, properly checked and maintained to minimize the likelihood of problems arising due to missing music data and information in cases such as moving my music collection and playlists to a new computer, reloading my music on an existing computer after a factory reset, or transferring the songs to my MP3 player. Does anyone know of a reliable and trustworthy music or music-related program capable of doing the tasks that I just mentioned?

    Thanks.

  2. #2
    dBpoweramp Guru
    Join Date
    Apr 2021
    Posts
    398

    Re: Need Suggestions on Music Data Tag Reader

    Firstly, I use foobar for my tagging QA and WSL for any filesystem checks I make (because I'm more comfortable scripting in Linux than I am Windows).
    Once foobar is setup it's as "easy" as any other tagger, and the fact that it internally stores your tags in a database makes it very quick and powerful to use - and it enables you to run sql against your files to check and update your tags!
    I use foobar for tagging, and have a very functional layout for it making it great for tagging and verification. If you'd like a hand to set it up as I have, let me know as it's pretty straight-forward (I can probably even send you the layout definition for you to load).

    In this image you can see some of the tagging QA checks I have, and my foobar layout. foobar.jpg

    The FLAC format stores the MD5 hash of the decoded audio internally for integrity checking, so the easiest way to check that is:
    Code:
    flac -wt 01.01.flac

    If an error is encountered you'll see output like:
    Code:
    01.01.flac: *** Got error code 2:FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH
    
    
    01.01.flac: ERROR while decoding data
                state = FLAC__STREAM_DECODER_ABORTED
    To modify your file so that the check should fail you can run something like this against one of your files (that you have copied somewhere)
    Code:
    printf "x01" | dd of="01.01.flac" bs=1 seek=2408448 count=1 conv=notrunc
    If you're using foobar there's a component called foo_verifier that can perform this type of checking for you.


    If your lossless files are CD rips you can go one step further and check against AccurateRip or CTDB with PerfectTunes or CUETools.

    With regard the lossy files I think the only thing you can do (from an integrity point of view) is hash them once you've created them (and after every modification), store it in a file and compare the hashes every 6 months or so. I wrote something to do that for my library, but I'm sure there are other tools out there that do a similar job.


    This is the basic tagging QA check I use in foobar, but I have others including those that check for missing replaygain and that the files are stored in the correct location.

    Code:
    ALBUMTYPE MISSING OR ALBUM MISSING OR ALBUM ARTIST MISSING OR (ALBUMARTISTSORT MISSING AND ALBUMARTISTSORTORDER MISSING) OR ARTIST MISSING OR (ARTISTSORT MISSING AND ARTISTSORTORDER MISSING) OR DISCNUMBER MISSING OR TOTALDISCS MISSING OR GENRE MISSING OR DATE MISSING OR ORIGINALDATE MISSING OR TRACKNUMBER MISSING OR TITLE MISSING OR ALBUMUNIQID MISSING OR DATEADDED MISSING OR "$strcmp($meta_num(artist),$max($meta_num(artistsort),$meta_num(artistsortorder)))" MISSING
    It checks for missing tags and that the number of Artist tags matches the number of Artist Sort tags.

    I also run QA checks on the filesystem for things like:
    Each Disc folder has folder.jpg
    Each Album folder has albumartist.jpg and back.jpg
    CUE sheets only contain lines for FILE|TRACK|INDEX|PREGAP|REM DISCID

    And it goes on :-)

  3. #3
    dBpoweramp Guru
    Join Date
    Nov 2007
    Location
    Florida, USA
    Posts
    5,700

    Re: Need Suggestions on Music Data Tag Reader

    mp3tag will let you load up your entire library at once. I can load my entire library of about 9,000 albums (all in separate Artist/Album folders) at one time in mp3tag. For checking my files to make sure nothing has become corrupted, I occasionally use dbpoweramp to run a BATCH CONVERSION job, "converting" to [TEST CONVERSION]. For my FLAC files, this decodes each file, compares the MD5 hash to the one embedded in the file when it was created, and reports any errors, if they exist. For lossy files, the conversion to TEST CONVERSION will also tell me if the file is corrupted, but there is no checking against an embedded MD5 hash (as this doesn't exist normally within the lossy files).

    edit: I also sometimes use foobar2000 > utilities > verify integrity (as noted, this can also do a batch job to make sure files are not corrupted)
    Last edited by garym; 07-01-2022 at 09:37 AM.

  4. #4
    dBpoweramp Enthusiast
    Join Date
    Jun 2020
    Posts
    55

    Re: Need Suggestions on Music Data Tag Reader

    Thanks to both of you for responding. I am no expert on data tags except understanding the general purpose of them being to identify a song file's properties such as album, artist, and track number. I am also not an expert on all of the audio analysis and verification methods and techniques.

    Garym, with regard to mp3tag, it is a good system, but I would like to check my all four of my source and backup FLAC_Music folders in their assigned locations at once instead of having to do each folder individually. My questions on the Batch Conversion's Test conversion program are does it just analyze the audio properties such as sound quality and proper playback or does it also check tag information like album name, artist, genre, year, track number, etc. and report any missing tag information? Are you saying it can check both audio properties and tag information for lossless files such as FLAC but can only check audio properties for lossy files such as mp3, m4a, and aac? I looked up MD5 hash when reading your response, but I am still not certain that I fully understand its purpose. Also, when doing the test conversion, do I need to setup and assign a destination folder for the test process such as a test folder if Batch Converter has to send the test conversions somewhere?

    Simbun, I appreciate your offer to help. I am considering getting the foobar2000 program. I am not an expert on all audio properties and data tags. I did add ReplayGain detection coding on mp3tag once, but I am still not very familiar with adding new detection codes to a music analyzer or read program. My overall music collection formats are in FLAC, m4a, and mp3 with most of the songs containing ReplayGain. I would appreciate it if you could provide the coding for FLAC, m4a, mp3, aac, and ReplayGain (if applicable, Track ReplayGain and Album ReplayGain properties as well). I would also appreciate it, if it is applicable, that you provide the coding for the data tags that dBpoweramp uses for audio file information such as those from ripped CDs (artist, album, genre, track number, year, etc.) as well as any other data tags you feel are necessary or appropriate. If possible, I would like to be able to put all of the codes in one file or other appropriate single location that foobar2000 would be able to use to perform the check functions as well as be able to create a backup copy of those codes. I would also appreciate it if you can tell me how and where I apply those codes to foobar2000 and then how to use the application to perform the check functions on both single and multiple folders so that I am able to detect whether or not my song files are missing any important album information or other appropriate data.

    Thanks again for your responses.

  5. #5
    dBpoweramp Guru
    Join Date
    Nov 2007
    Location
    Florida, USA
    Posts
    5,700

    Re: Need Suggestions on Music Data Tag Reader

    Quote Originally Posted by Bespin1138 View Post
    Thanks to both of you for responding. I am no expert on data tags except understanding the general purpose of them being to identify a song file's properties such as album, artist, and track number. I am also not an expert on all of the audio analysis and verification methods and techniques.

    Garym, with regard to mp3tag, it is a good system, but I would like to check my all four of my source and backup FLAC_Music folders in their assigned locations at once instead of having to do each folder individually. My questions on the Batch Conversion's Test conversion program are does it just analyze the audio properties such as sound quality and proper playback or does it also check tag information like album name, artist, genre, year, track number, etc. and report any missing tag information? Are you saying it can check both audio properties and tag information for lossless files such as FLAC but can only check audio properties for lossy files such as mp3, m4a, and aac? I looked up MD5 hash when reading your response, but I am still not certain that I fully understand its purpose. Also, when doing the test conversion, do I need to setup and assign a destination folder for the test process such as a test folder if Batch Converter has to send the test conversions somewhere?

    No, the TEST CONVERSION or VERIFY INTEGRITY has nothing to do with confirming "sound quality" or whether any tags are missing. These functions simply determine that the digital file is not corrupt (that is, it can be opened, decoded, and played). In the case of FLAC files, the test conversion is even better as it is reading the "bits" of the current file, calculating an MD5 hash for such audio data and then comparing this to the MD5 hash that was calculated at the time the file was originally created to insure that the audio portion of your files is exactly bit perfect as compared to that audio data when the file was created. None of this has to do with tags such as artist, album, etc.

    edit: and, no, you don't have to create a destination folder for "test conversion". This is all done in memory. No files are written anywhere.

  6. #6
    dBpoweramp Guru
    Join Date
    Apr 2021
    Posts
    398

    Re: Need Suggestions on Music Data Tag Reader

    Quote Originally Posted by Bespin1138 View Post
    My overall music collection formats are in FLAC, m4a, and mp3 with most of the songs containing ReplayGain. I would appreciate it if you could provide the coding for FLAC, m4a, mp3, aac, and ReplayGain (if applicable, Track ReplayGain and Album ReplayGain properties as well).
    When you add (rather than apply which alters the actual audio of a file) replaygain to a file, all you're doing is adding tags that tells the player how much to increase/decrease the files volume to meet an agreed upon loudness standard.
    Even though the different audio formats (such as FLAC, mp3, aac) have different tagging standards (FLAC uses Vorbis and MP3 uses ID3), tagging programs such as foobar hide this complexity by unifying them and thus presenting a consolidated list of tags such as Artist, Album e.t.c.
    So, in foobar if you want to view the replaygain tags you'd use:
    %REPLAYGAIN_TRACK_GAIN%
    %REPLAYGAIN_TRACK_PEAK%
    %REPLAYGAIN_ALBUM_GAIN%
    %REPLAYGAIN_ALBUM_PEAK%


    Quote Originally Posted by Bespin1138 View Post
    I would also appreciate it, if it is applicable, that you provide the coding for the data tags that dBpoweramp uses for audio file information such as those from ripped CDs (artist, album, genre, track number, year, etc.) as well as any other data tags you feel are necessary or appropriate.
    I'm not really sure what you're after here. If you select all your files in foobar, right click and select Properties it will list all the tags for you.

    Quote Originally Posted by Bespin1138 View Post
    If possible, I would like to be able to put all of the codes in one file or other appropriate single location that foobar2000 would be able to use to perform the check functions as well as be able to create a backup copy of those codes.
    Are you talking about the tagging checks e.g. ALBUM MISSING OR ALBUM ARTIST MISSING OR ARTIST MISSING OR DISCNUMBER MISSING OR TOTALDISCS MISSING OR GENRE MISSING OR DATE MISSING OR TRACKNUMBER MISSING OR TITLE MISSING
    Where you put them depends on how you configure foobar (see link at the end of the next answer for where I'd put them as I use the component called facets).

    Quote Originally Posted by Bespin1138 View Post
    I would also appreciate it if you can tell me how and where I apply those codes to foobar2000 and then how to use the application to perform the check functions on both single and multiple folders so that I am able to detect whether or not my song files are missing any important album information or other appropriate data.
    In foobar you can add multiple locations to the "media library" and so by default any checks will be made across the entire library, but it's trivial to filter to individual folders as you can see from the third reply here.

  7. #7
    dBpoweramp Guru
    Join Date
    Nov 2007
    Location
    Florida, USA
    Posts
    5,700

    Re: Need Suggestions on Music Data Tag Reader

    Maybe too simple for what you want to do, but if I was trying to find tracks in my library that were missing metadata (tag fields), I'd simply open my 120,000 tracks into mp3tag. Then, I'd click on the column subheadings (which exist for all my tag fields, like artist, genre, replay gain, etc.), then that will sort that column from highest to lowest) for the contents. If any are missing they will show up all together at either the beginning or end, depending on which direction you are sorting. Then you can fix those. There are fancier ways to do this with filters, etc., but sometimes the simple way is all one needs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •