It would be really useful if dB PowerAmp offered the ability to Export tags from one file, and then report them into another, with the option to replace/ignore importing any clashes.
It would be really useful if dB PowerAmp offered the ability to Export tags from one file, and then report them into another, with the option to replace/ignore importing any clashes.
Some of the programs I use while processing music remove all tags. It would speed things up a lot if there was the option to export the tag information into a data file, and be able to import from such a file as well.
I really like the way exporting and importing works for pictures. If there were similar functionality for the tag information, that would be valuable indeed.
You can use the Audio Info utility codec to export tags to a tab separated text file. Then, using MP3Tag, you can import the tags from the text file.
If you are using FLAC files, you can use the MetaFLAC command (part of the FLAC download) to save/restore them. Here is a script I use to copy tags from a stereo rip to a surround rip (since if I rip surround using MakeMKV there is almost no metadata, so starting with the metadata for the stereo tracks gets me about 90% of the way there). The key is that the files in both the Stereo and Surround directories should start with the same track number prefix (like: 01 Track Name.flac).
The script is called MakeSurroundLikeStereo.ps1:
$sourcePath = $(get-location).Path+"\Stereo"
$destPath = $(get-location).Path+"\Surround"
$tempFile = "C:\Temp\MetaData.txt"
$metaFlac = "C:\Work\Audio Tools\FLAC\Latest\metaflac"
$fileEntries = [IO.Directory]::GetFiles($sourcePath,"*.flac");
foreach($sourceFileName in $fileEntries)
{
$bareFileName = [IO.Path]::GetFileName($sourceFileName);
$index = $bareFileName.Substring(0,2).TrimEnd("-");
$destFileName = [IO.Directory]::GetFiles($destPath,$index+"*.flac")[0];
$newFileName = $destPath + "" + $bareFileName
Write-Host "Copy metadata from $sourceFileName to $newFileName (renamed from $destFileName)"
rename-item $destFileName $newFileName
cmd /c "metaFlac --no-utf8-convert --export-tags-to=""$tempFile"" ""$sourceFileName"""
cmd /c "metaflac --remove-all-tags --import-tags-from=""$tempFile"" ""$newFileName"""
}
Hope this helps,
Mike
All of my processing programs require wav format. I am able to get the tags to stay by using the Run external DSP. I suppose I really just need to rewrite my second program to run in the command line, then just add another Run external DSP.
I have wanted the ability to export and import ID tags for a long time now--even before I got into intensive audio processing.
Last edited by ForSerious; 09-29-2017 at 10:20 AM. Reason: Good job escaping scripting characters.
Well that was lots of fun. I went ahead and re-coded my program to work with command line arguments and got it to keep the tags by telling it to run before conversion.
In the process, I learned that the Run External DSP only takes a path to an exe pretty much. It would be nice if there were a way to have it accept java or python runables.
Copyright © illustrate 2024, All rights reserved