<p><a href="https://ffmpeg.org/download.html" rel="noreferrer">FFmpeg</a>, a free command-line tool, has a volume filter that should do this.</p>

<p>Syntax would be</p>

<pre><code>ffmpeg -i input.mp4 -c:v copy -af volume=replaygain=track output.mp4
</code></pre>

<p>The <code>af</code> invokes the <code>volume</code> filter with the option set to adjust the volume using the track replaygain value (if present). Video is set to passthrough into the output.</p>

CC BY-SA 4.0
2020-06-26T16:34:11.150Z
*"using the track replaygain value (if present)."* - How does one add this `replaygain` value if it is NOT present?
Seamus
CC BY-SA 4.0
2020-06-26T21:07:07.607Z
Maybe I should post another question?
Seamus
CC BY-SA 3.0
2016-10-07T18:55:29.750Z
2016-10-07T18:55:29.750Z
Gyan
<p>I have a bunch of music videos I have downloaded from youtube. I usually put them in a playlist in mpc (Media Player Classic). The problem is that the audio levels of the videos are quite different and I have to adjust the volume for each one.</p>

<p>If I hear them in foobar2000 (it's an audio player) there's no problem because it can apply the replaygain info wich I have added to the videos, but mpc hasn's this feature.</p>

<p>Mpc has a normalization option but it is dynamic and is not what I want.</p>

<p>An aceptable solution would be to recode the video with the audio levels corrected. But I want to move the audio level globally to the video, not dynamic normalization. And also I want to leave the video untouched. What tool can I use?</p>

<audio>
How to modify audio level of video according to replaygain info?
nadapez
# How to modify audio level of video according to replaygain info?

(Asked by: username_0 on 2016-10-07)

I have a bunch of music videos I have downloaded from youtube. I usually put them in a playlist in mpc (Media Player Classic). The problem is that the audio levels of the videos are quite different and I have to adjust the volume for each one.

If I hear them in foobar2000 (it's an audio player) there's no problem because it can apply the replaygain info wich I have added to the videos, but mpc hasn's this feature.

Mpc has a normalization option but it is dynamic and is not what I want.

An aceptable solution would be to recode the video with the audio levels corrected. But I want to move the audio level globally to the video, not dynamic normalization. And also I want to leave the video untouched. What tool can I use?

**Tags:** audio


---

## 1 answers

### Answer by username_1 on 2016-10-07. Score: 6

FFmpeg, a free command-line tool, has a volume filter that should do this.
Syntax would be
ffmpeg -i input.mp4 -c:v copy -af volume=replaygain=track output.mp4

The af invokes the volume filter with the option set to adjust the volume using the track replaygain value (if present). Video is set to passthrough into the output.

> **Comments:**
> **username_2**: *"using the track replaygain value (if present)."* - How does one add this `replaygain` value if it is NOT present?  
> **username_2**: Maybe I should post another question?  

---

