CUESHEET blocks in FLAC files. Maybe something for future MP3Tag
When checking the scanner logfile for my Lyrion Music Server (formerly Logitech Media Server) I found a large number of error messages associated with corrupt CUESHEET blocks on encoded FLAC files.
Not entirely sure where they came from - possibly I used another CD ripper software at some point.
The CUESHEET tags were not in use - all the necessary tags were provided for via regular FLAC tags. However there were not helping the progress of the library scan - in many cases there were multiple error log lines for each file with a CUESHEET block.
It turns out CUESHEET tags are not easy to work with.
MP3Tag does not seem to recognise them via the "Extended Tags" option - possibly another option I missed.
Best GUI to work with CUESHEET tags turned out to be foobar2000, nominally a music player, but you can view and remove CUESHEET tags. But not good for bulk, best you can do is one directory at a time.
Then I found metaflac command line utility which does allow you to both see (LIST) and delete (REMOVE) CUESHEET blocks.
see the CUESHEET block in a file - no output if file has no such block
metaflac --list --block-type="CUESHEET"
and also to remove the CUESHEET blocks
metaflac --remove --block-type="CUESHEET"
So I assembled a file of URLs to the affected files, and from that created a series of metaflac command lines to run as a Script to remove the CUESHEET tags.
It would be useful to be able to work with these in MP3Tag.
Yes — metaflac or foobar2000 is the way to go here. The cuesheet is not part of the actual FLAC tag (which is Vorbis Comments or METADATA_BLOCK_VORBIS_COMMENT), but resides in a different block type called METADATA_BLOCK_CUESHEET. That's also the reason why it's not visible in extended tags.
I've added it to my list of future ideas for improvement.
Until such a possibility will be implemented, you can create a so called "Tool".
You can use nearly the same command metaflac --remove --block-type="CUESHEET"
but you need to call it for the selected FLAC files with a parameter like %_path%
For detailed instructions, you could have a look here:
This are the necessary steps to create a new Tool:
Open Mp3tag and go to File -> Options -> "Tools"
Click on the "New" button to create a new tool.
In the "Name" field, enter a name for the tool (e.g., "Remove CUESHEET in FLAC").
In the "Path" field, enter the full path to the metaflac executable file on your computer.
In the "Parameter" field, enter the command line parameters for metaflac that you want to use, like --remove --block-type="CUESHEET" "%_path%"
Activate the "for all selected files" checkbox.
Click "OK" to save the new tool.
Close the Options dialog and go back to the main Mp3tag window.
Right-click on a FLAC file and go to "Tools" > "Remove CUESHEET in FLAC" (or whatever name you entered for the new tool) to use the tool on the selected file(s).