ReplayGain: How to find which gain VLC applies

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
hendriks73
New Cone
New Cone
Posts: 6
Joined: 07 Apr 2017 11:13

ReplayGain: How to find which gain VLC applies

Postby hendriks73 » 07 Apr 2017 11:22

Hey there,

I'm a software dev and am having a little trouble figuring out what ReplayGain tags are read by VLC.

Where in the VLC UI can I confirm that the tag is read correctly? I.e. where does it show me something like e.g. -8dB for a specific file. (I have turned track replay gain on in the audio preferences and playing files.)

Is the tag format for AAC documented somewhere?
I'm guessing it REPLAYGAIN_TRACK_GAIN and REPLAYGAIN_TRACK_PEAK in the com.apple.iTunes atom, but cannot find any valid docs.
Also, do the tag names have to be uppercase or is lowercase tolerated as well?

Thanks so much!

-hendrik

Lotesdelere
Cone Master
Cone Master
Posts: 10085
Joined: 08 Sep 2006 04:39
Location: Europe

Re: ReplayGain: How to find which gain VLC applies

Postby Lotesdelere » 07 Apr 2017 12:41


hendriks73
New Cone
New Cone
Posts: 6
Joined: 07 Apr 2017 11:13

Re: ReplayGain: How to find which gain VLC applies

Postby hendriks73 » 07 Apr 2017 12:47

Unfortunately, the specification does not define the exact tag format for AAC.

Or does it and I'm just missing it?

hendriks73
New Cone
New Cone
Posts: 6
Joined: 07 Apr 2017 11:13

Re: ReplayGain: How to find which gain VLC applies

Postby hendriks73 » 07 Apr 2017 12:54

That aside: Does VLC show anywhere in its UI, what ReplayGain has been applied to the currently playing song?

Lotesdelere
Cone Master
Cone Master
Posts: 10085
Joined: 08 Sep 2006 04:39
Location: Europe

Re: ReplayGain: How to find which gain VLC applies

Postby Lotesdelere » 07 Apr 2017 13:04

More to read:
http://wiki.hydrogenaud.io/index.php?ti ... cification
http://wiki.hydrogenaud.io/index.php?ti ... cification

Long story short:
Raw AAC can not be tagged so the AAC stream must be embedded into an MP4 container.
Then the tags standard format being used is ID3v2 in ID32 box. VLC can read and apply those ReplayGain tags.

That aside: Does VLC show anywhere in its UI, what ReplayGain has been applied to the currently playing song?
Not that I know, maybe in the messages (Ctrl+M or Tools -> Messages).

hendriks73
New Cone
New Cone
Posts: 6
Joined: 07 Apr 2017 11:13

Re: ReplayGain: How to find which gain VLC applies

Postby hendriks73 » 07 Apr 2017 13:13

Thank you—that definitely answers the second part of my question!

hendriks73
New Cone
New Cone
Posts: 6
Joined: 07 Apr 2017 11:13

Re: ReplayGain: How to find which gain VLC applies

Postby hendriks73 » 07 Apr 2017 13:15

Not that I know, maybe in the messages (Ctrl+M or Tools -> Messages).
Couldn't find it there. :(

hendriks73
New Cone
New Cone
Posts: 6
Joined: 07 Apr 2017 11:13

Re: ReplayGain: How to find which gain VLC applies

Postby hendriks73 » 10 Apr 2017 09:24

This http://wiki.hydrogenaud.io/index.php?title=ReplayGain may be out of date, but it looks to me like no scanner actually uses the ID32 atom to write ReplayGain info. Probably because the non-standard ID32 atom is not widely used to begin with. I'd love to get my hands on a ReplayGain scanner that uses it.

Are you aware of any (I'm not)?

I played around with FooBar2000. Its seems to write the ReplayGain tags into the iTunes metadata tag under "----":"replaygain_track_gain". This makes sense, as it is super-easy to do, especially, if you already have a parser for those iTunes tags. beaTunes does the same thing.

Perhaps this would be a nice feature for VLC: Look for ReplayGain in several places that seem to be used in the wild. Especially, if there is no scanner that adheres to the spec and writes to ID32 (i.e., if there is no ReplayGain scanner that writes to the ID32 atom, it makes no sense for VLC to *only* look there).

This order would make sense to me:

- ID32 Atom (because it's in the spec)
- APEv2 tags, as that's what many scanners seem to write to according to http://wiki.hydrogenaud.io/index.php?title=ReplayGain
- iTunes MP4 tags, as at least FooBar2000 and beaTunes read/write there

Also: It would be nice, if VLC displayed the currently used gain somewhere. I did some more digging, but couldn't find it anywhere. Transparency, i.e. the possibility for the user to understand what's going on, is typically a nice to have.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: ReplayGain: How to find which gain VLC applies

Postby Jean-Baptiste Kempf » 22 May 2017 13:43

Samples needed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 44 guests