-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WAV file problem combining non-latin RIFF and ID3v2 tags #338
Comments
Should be fixed in 5f6d2ac |
Thanks for the quick response and action. However, I can still find some residual cases. One of them is the real-life music file from one of my users which has title I have uploaded new files |
Good idea. ID3v1 and RIFF tags are now both processed after any other tag types (if present) so the first entry in comments is more likely to be accurate. |
Thanks, works fine for my use cases now. |
I ran in to the following problem when testing WAV files tagged with the Mp3tag application. It seemed to happen only when the tags contained mixed Latin and non-Latin scripts, although I didn't test this quite extensively.
When tagging with non-Latin characters, Mp3tag writes the UTF-8-encoded data to ID3v2.3 tags, and a "substitute strings" to the RIFF header. In the substitute string, all non-Latin characters are replaced with
?
characters. Now, when getID3 combines the different kinds of tags withCopyTagsToComments
, it cannot merge these RIFF tags and ID3v2.3 tags properly. Instead, the [comments] section of the result contains both versions of the tags, and what's worse, the RIFF tag with all those?
characters comes first.Meanwhile, if the same tag contents are saved to a mp3 file, the strategy used by Mp3tag app is pretty much the same: The UTF-8 data goes to ID3v2.3 and corresponding substitute string goes to ID3v1. But in this case, getID3 is smart enough to merge the tags so that the [comments] field contains only the UTF-8-encoded data.
I have uploaded a pair of sample files here, one wav and one mp3, both defining the same title/album/artis tags:
https://drive.google.com/drive/folders/1qevkYHRrmPvN5lFYaaxgJVOfF9WK4e5h?usp=sharing
Here are the corresponding analyze results after
CopyTagsToComments
:analyze_results_mp3.txt
analyze_results_wav.txt
This was detected on the getID3 version 1.9.20-202107131440.
The text was updated successfully, but these errors were encountered: