Page 1 of 1

ReplayGain in videos

Posted: 22 Apr 2012 18:24
by CyberTootie
Hello.

I'm trying to get ReplayGain to work with videos in VLC. What do I need to do in order to trigger ReplayGain processing of videos or is this behavior not intended?

ReplayGain is enabled to track gain and I've tried direct RG tagging of MKV and MP4 containers to no avail as well as the tagging of a FLAC stream within the MKV container.

Re: ReplayGain in videos

Posted: 23 Apr 2012 11:55
by RĂ©mi Denis-Courmont
VLC could not care less if there is a video track. Replay gain applies anyway. Either there is a bug or the tagging mechanism is not supported. Patch welcome.

Re: ReplayGain in videos

Posted: 23 Apr 2012 14:14
by CyberTootie
Well here are the ReplayGain tagging standards:
http://wiki.hydrogenaudio.org/index.php ... n#Metadata

AFAIK, foobar2000 strictly heeds these standards and this is what I use to embed the ReplayGain tagging. Here are a few example files for testing purposes. foobar2000 recognizes the ReplayGain values and utilizes them accordingly. (Well, it should, it wrote the data!)

These have a tag attached to the MKV container with ReplayGain values:
http://cybertootie.net/downloads/RainDirectTagRG.mkv
http://cybertootie.net/downloads/GroundDirectTagRG.mkv

These have ReplayGain data embedded into their respective FLAC audio streams:
http://cybertootie.net/downloads/RainAudioTagRG.mkv
http://cybertootie.net/downloads/GroundAudioTagRG.mkv

It is important to note though that it doesn't appear that there is a standard for tagging Matroska (MKA, MKV) files. But like I said in the OP, I have tried with an MP4 video and that did not work.

Re: ReplayGain in videos

Posted: 23 Apr 2012 19:11
by Jean-Baptiste Kempf
According to the VLC source code, we support ReplayGain in Vorbis comments, but not in ape, nor in id3v2.
Samples are welcome to improve this.

However, I do not see how you can put RG in MKV if there is no spec.

Re: ReplayGain in videos

Posted: 23 Apr 2012 23:18
by CyberTootie
I'm mistaken, Matroska does have a specification for ReplayGain, it's just not listed on the article I previously linked to.
http://matroska.org/technical/specs/tagging/index.html

I whipped up some samples of ReplayGained MP4 videos:
http://cybertootie.net/downloads/SweetshopRG.mp4 (-9.5 dB)
http://cybertootie.net/downloads/FireworkRG.mp4 (-0.25 dB)