HydrogenAudio

Lossy Audio Compression => Other Lossy Codecs => Topic started by: Moonbase on 2019-09-01 12:27:11

Title: ASF/WMA: "Correct" ReplayGain 2 tags?
Post by: Moonbase on 2019-09-01 12:27:11
I plan to add support for ASF/WMA to my loudgain (https://github.com/Moonbase59/loudgain) tagger.

There seems not to be too much info on how to do this "correctly". I see that foobar2000 simply adds WMA tags like these:
Code: [Select]
replaygain_track_peak: 1.108371
replaygain_album_gain: -9.67 dB
replaygain_album_peak: 1.175801
replaygain_track_gain: -9.49 dB

Is this the way to go, or are there other methods that are more "official"?
Which players out there already respect these? [fb2k, WinAmp]
Also, why lowercase, not uppercase as the RG2 spec proposes?

Thanks for your insights!
Title: Re: ASF/WMA: "Correct" ReplayGain 2 tags?
Post by: Moonbase on 2019-09-02 11:30:46
Well, I made loudgain v0.6.3 which has experimental support for ASF/WMA. Here’s how I do it. (https://github.com/Moonbase59/loudgain#how-i-handle-asfwma-asf-wma-audio-files)
Title: Re: ASF/WMA: "Correct" ReplayGain 2 tags?
Post by: lithopsian on 2019-09-03 17:49:25
Does foobar really write lowercase tags, or just report them that way?  Is there some ASF standard against uppercase tags?
Title: Re: ASF/WMA: "Correct" ReplayGain 2 tags?
Post by: Moonbase on 2019-09-03 20:01:22
I found that foobar actually writes mostly lowercase tags, to most file formats. For whatever reason, maybe because most players have adopted this over the years … except VLC, which insists in uppercase for most formats.

Upper- vs. lowercase ReplayGain tags has really become an issue. I wish that players would at least read the tags case-insensitively.
Can’t be that KODI insists in lowercase, VLC insists in uppercase, and foobar does it right … ;-)

Uppercase or lowercase 'REPLAYGAIN_*' tags? (https://github.com/Moonbase59/loudgain#uppercase-or-lowercase-replaygain_-tags)
Title: Re: ASF/WMA: "Correct" ReplayGain 2 tags?
Post by: Case on 2019-09-03 20:29:02
Where does the idea that ReplayGain tags must be in upper case come from? Assumption from the fact that their names are written in all caps in wiki? They are just the field names and all tagging obviously must follow the specs of the tagging format - I believe they all should be treated as case-insensitive.
Title: Re: ASF/WMA: "Correct" ReplayGain 2 tags?
Post by: Moonbase on 2019-09-03 20:40:46
[…]I believe they all should be treated as case-insensitive.
That’s what I’ve been hoping for ever and a day … at least players should! It’s really not complicated but (almost) nobody does :-(