Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-26T16:34:11.150Z
Answers.Text: *"using the track replaygain value (if present)."* - How does one add this `replaygain` value if it is NOT present?
Answers.UserDisplayName: Seamus
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-26T21:07:07.607Z
Answers.Text: Maybe I should post another question?
Answers.UserDisplayName: Seamus
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-07T18:55:29.750Z
Answers.LastActivityDate: 2016-10-07T18:55:29.750Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Tags: <audio>
Title: How to modify audio level of video according to replaygain info?
UserDisplayName: nadapez
ThreadText: # 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](https://ffmpeg.org/download.html), 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?  
  
  ---
  
  