Friday, 25 September 2015

Boost Video Volume in Ubuntu [How To]

One of the most common problems we face with videos is that the audio level is too low. This post describes how to easily boost video volume in Ubuntu.

There is a command line software called "ffmpeg" which is a swiss army knife for all video and audio related operations. It is hassle free, simple to use and gets the job done in no time. It can be used to perform a wide variety of tasks, including converting a video from one format to another, extracting audio from video files etc.

Now, first of all, install ffmpeg by typing:
sudo apt-get install ffmpeg

After this, browse to the folder where the video file is present using cd. In our case, it is in Desktop.

Now, simply use the following command to boost video volume by 10 decibels. You can change this value, experiment and see what works best for you :)
ffmpeg -i inputfile.m4v -af "volume=10dB" outputfile.m4v

In some cases, it may show you an error, stating that:

The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

In that case, you can use:
ffmpeg -i inputfile.m4v -strict -2 -af "volume=10dB" outputfile.m4v

Screenshot from 2015-09-24 20:36:15

That's it! A new file will be created with boosted audio.

This tool is very versatile and highly customizable. You can read more about it in the official documentation here.

No comments:

Post a Comment