I have thousands of MKV karaoke tracks with dual audio. Some videos are louder than others vice versa.
Is there a way to make them all the same level?
+ Reply to Thread
Results 1 to 7 of 7
-
-
I would use FFmpeg's dynaudnorm filter in a batch script loop.
-
What format is the audio? If it's AAC or MP3, foobar2000 can run a ReplayGain (TrackGain) scan and losslessly adjust the volume without having to extract the audio.
That doesn't apply compression. It simply adjusts the overall volume of each track for the same target volume. It's under the ReplayGain right click menu and to adjust the volume losslessly you'd use the "apply track ReplayGain to file content" option.
The default target volume for ReplayGain is 89dB (which is really a sound pressure level and translates to a volume of -18dB). I'd stick with the default target volume unless you have a reason to use something else.
There's a right click menu item under "Utilities/Select Stream" for choosing the audio stream to be decoded. I assume it also applies to the ReplayGain scan, so you'd have to highlight all the files you've opened, select a stream, run the scan, save the data, adjust the volume, then repeat for the second stream. I haven't batch adjusted MKVs with multiple streams myself, but logically that's how it'd work. And it only works for AAC or MP3. All other audio types have to be re-encoded to physically change the volume. -
-
Yes, fb2k can add/modify metadata information, but it can also physically adjust the volume of MP3 and AAC audio. As MP3Gain does. My MP3 player doesn't support ReplayGain, so for years I've been using the ReplayGain data to physically adjust the volume instead. First with MP3Gain, and now with fb2k, because fb2k supports adjusting the volume when the audio is inside an MP4 or MKV container (and maybe other containers, I've only tested MP4/M4A/MKV).
89dB is the official ReplayGain target volume. It's a sound pressure level and meaningless to mere-mortals, but that's how the target volume is described. I'm not responsible. In fact, I recently suggested it's time to stop referring to the volume that way in the fb2k forum, and while I'm sure it's inevitable, it's not going to happen just yet.
https://en.wikipedia.org/wiki/ReplayGain#Target_loudness
I thought it'd be fairly obvious -18dB refers to a volume below "full scale". I almost typed -18 LUFS instead of -18 dB, but most people understand -18 dB is located a little lower than 0dB on their player's output meter, whereas LUFS often requires explaining.
So..... LUFS = loudness units relative to full scale. It can be used interchangeably with dB in this case.Last edited by hello_hello; 20th Nov 2018 at 06:50.
-
Hi Guys,
finally have sometime to look at this...
So I ran a couple test tracks, question about Foobar2k, does it actually alter the gains of the track or does it just add a tag so the player can appropriately adjust the playback volume? Is this going to affect the overall sound quality of the tracks? Since each track in the video file will be different, will it do the gains for each track in the video?
Similar Threads
-
How can I match the volume levels (not normalize) of multiple MP4 videos?
By EmmB in forum EditingReplies: 6Last Post: 16th Jun 2018, 17:21 -
Using ffmpeg to mux multiple videos into mkv gets header error?
By nobodyhome in forum Video ConversionReplies: 2Last Post: 28th Jan 2017, 16:09 -
Normalize audio form mkv files
By Toby2k in forum Newbie / General discussionsReplies: 1Last Post: 30th Dec 2015, 09:19 -
Newbie: Need help removing audio/subs from multiple videos mkvmerge
By haloboyvash in forum Newbie / General discussionsReplies: 9Last Post: 11th Jan 2015, 14:20 -
MKV vs MP4 in regards to multiple audio streams and subs
By keesio in forum Video ConversionReplies: 6Last Post: 7th Apr 2014, 00:50