How to increase the volume for an avi file

13

10

I have one or two .avi files for which the sound is simply too low. I like to play them in vlc, and enabling the graphic equalizer helps somewhat, but is there any other (easy and quick!) way of increasing the volume? Thanks!

Joel in Gö

Posted 2009-07-27T19:27:29.273

Reputation: 973

1http://superuser.com/questions/13552/how-to-amplify-the-audio-in-a-video-file similar question – Joakim Elofsson – 2009-07-27T19:32:10.463

5Duplicate I'd say, answers here should be merged into the other question as it's more general. – Mark Renouf – 2009-07-27T19:56:24.503

Answers

5

You could use VirtualDub for this. This guide has a short and straight-forward explanation.

Brief:

-

  1. Start VirtualDub and load in your converted DivX file.
  2. From the "Video" menu, select "Direct Stream Copy".
  3. From the "Audio" menu, select "Full Processing Mode".
  4. From the "Audio" menu, select "Volume", check the "Adjust volume of audio channels" option, and you can use the slider to change the level of audio.
  5. Press the "Preview Output" button and listen to the audio - if it isn't loud enough, go back to the previous step and increase the amplification level.
  6. From the "Audio" menu, select "Compression" and select "MPEG Layer-3" and the same or lower bitrate/attributes (eg. 128 kBit/s, 48000 Hz, Stereo) you used earlier to make the DivX movie.
  7. From the "File" menu, select "Save AVI" to save the AVI to include the normalized audio. This shouldn't take too long as only the audio is re-encoded/compressed - the video will be left alone.

pavsaund

Posted 2009-07-27T19:27:29.273

Reputation: 2 660

It does work excellent, however it converted my 7 MB AVI file (recorded using CamStudio) into a massive 3.52 GB file. I guess that would be the problem with the codec. – noob – 2014-08-05T07:13:19.940

This does work (I've done it myself) but be advised this generally doesn't produce good quality audio. It's much the same problem you have with zooming a jpeg, or how ridiculous the "zoom and enhance" scenes in TV crime dramas are. You can't create data where none exists in the first place, and, indeed, since you're literally trans-coding the audio you're reducing the overall quality. It's a fair trade-off in some instances, but often I've found the results are unsatisfactory. – Bacon Bits – 2011-07-06T03:56:03.877

10

Very easy to do using ffmpeg:

For older versions of ffmpeg:

ffmpeg -i myvideo.avi -vcodec copy -acodec libmp3lame -ab 128k -vol 5000 myvideo_louder.avi

Adjust the "-vol" parameter until you're satisfied with the volume.

While you're looking for the appropriate "-vol" value, I suggest you add a "-t 30" to your commandline, so it'll only process the first 30s of video. It's much faster and should be enough for you to evaluate the results.

The new versions of ffmpeg support audio filters (-af), so you may alter volume using the volume filter which accepts volume gain specified in dB:

ffmpeg -i inputfile -vcodec copy -af "volume=-20dB" outputfile

Badaro

Posted 2009-07-27T19:27:29.273

Reputation: 543

I tried everything on Windows, and this just WORKS! The BIG advantage of this approach is that it's non-destructive since it's not re-encoding the audio, thus you don't risk desynchronizing the audio relatively to the video. Also, this is quite fast, a lot more than any other approach I tried. See also: http://breakthebit.org/post/53570840966/how-to-increase-volume-in-a-video-without

– gaborous – 2015-01-31T23:19:32.770

1

VLC enables you to increase the volume up to 400% by holding down CTRL + UP ARROW.

Shane Kearney

Posted 2009-07-27T19:27:29.273

Reputation: 611

It only shows 200%. Does it increase beyond that? – Joel in Gö – 2010-01-25T13:47:56.457

In recent version it capped the volume level at 200% max. You need to download an older version for getting 400% volume. – noob – 2014-08-05T06:51:33.830

0

VLC has a bar that lets you up the volume to 200% of original, at least in Windows it does. Try using that, other than the EQ.

It might take a bit longer and only run in batches, but VirtualDub has a way to take a avi file and increase the volume level on it too.

J. Polfer

Posted 2009-07-27T19:27:29.273

Reputation: 2 234

0

Look at this question: How to amplify the audio in a video file?

Quoted answer by Davy Landman:

You'll need to do this in following steps.

  1. Demux (extract) the audio stream from the container, depending on your container you should use the correct application. For a general purpose demuxer you could use ffmpeg. But there are more user friendly programs such as VirtualDub for avi, TMPGEnc for mpg files.
  2. Decode the audio to a wave file (not always needed if Audacity can open the file directly)
  3. Increase the volume of your audio track using Audacity by gaining your audio file such as described in the first step in this howto.
  4. Save the result as a wave file.
  5. Encode the wave file using the right tool for your desired audio coded (lame for mp3, faac for aac)
  6. Remux the new audio and original video tracks back into the desired container using the same program you used for demuxing.

Ivo Flipse

Posted 2009-07-27T19:27:29.273

Reputation: 24 054

0

If input file contain multiple streams you can use -map parameter of ffmpeg along with -vol :

ffmpeg -i inputfile -map 0:v -map 0:a -vol 1024 outputfile

Note that -vol 256 is equal to unchanged

Lu55

Posted 2009-07-27T19:27:29.273

Reputation: 109