Extract list of all used tags + info fields to a CSV file.
This thread is very similar to the Export or backup all tag fields (dano).
First, Dano's export is very clever and has some nice additional features (e.g. adapt tag panel from the export generated). My goal was NOT to re-invent the wheel (or to prove certain things can be done better).
Personally, I wanted to extract all tags (already solved by dano) but had few needs more:
- Needed as less as possible conversions (ideally zero)
- Distinguish/group standard from user tags,
- Extract additional info fields (not limited to path)
- Let user decide which info fields he wants to be extracted
- Have a better layout:
- List path first (like dano's extract), then
- Standard fields (alphabetically), then
- User fields, then
- Info fields
- Have one dedicated row for the category (standard, user, info)
- Have one dedicated row for the tag name.
- Multiline fields are displayed correctly.
Step1. Execute (Generate script.mte) List of Tags-REGEX-Generate-script.mte (14.1 KB)
It will generate/update a script (defaulted to --List of tagsUsed+Informations)
Step2. Execute Generated script.mte . Select destination (Defaulted to the folder holding the audio files).
Step3. File opens directly in Enjoy
Row 1 & 2 Hold column category (Standard, User, Info) and tagname respectively
Data is extracted in Row 3..N
Row 1. One of below categories is populated on each column:
- Standard. All fields available in [Tag Field Mappings – Mp3tag Documentation]
- User. Fields created from user (non-Standard)
- Info. Placeholders available in [Exporting Tag and File Information – Mp3tag Documentation]
Placeholders are listed under SectionPlaceholders for export configurations.
Only Placeholders underTechnical info,File name / path infoandFile propertiesare included.
SystemandGlobal placeholdersare excluded.
FollowingFile propertiesare excluded as well, due to very poor performance:
%_crc%CRC32 value of file content
%_md5%MD5-Hash of the file (slow!)
%_md5audio%MD5-Hash of the audio part of the file (slow and only supported for ID3- and/or APE-only tagged files)
Row 2. The name of Standard/User tag or Info placeholder.
E.g. ALBUM, ARTIST, %_path%,
Row 3 .. N. The value extracted from each audio file.
User fields are NOT extracted alphabetically. This is only in theory possible. All this work is done purely with REGEXP commands so someone must spend a lot of effort to achieve this goal (if ever possible).
Additionally, to get the list of tags (standard/user) used in the selected files you can use following script (It could be covered already in Dano's exports, not sure). List of Tags-REGEX.mte (2.2 KB)