Using FFmpeg we can re-encode just the audio to increase/decrease the audio level without re-encoding the video, which means that we won’t lose video quality, and the process will be really quick. Here are the commands to do so:
Increase Audio Level
ffmpeg \ -i $INPUT_FILE \ -vcodec copy \ -af "volume=10dB" \ $OUTPUT_FILE
Decrease Audio Level
Exactly the same as before, just use a
ffmpeg \ -i $INPUT_FILE \ -vcodec copy \ -af "volume=-10dB" \ $OUTPUT_FILE
Obviously you can change 10dB to be any integer, such as 20dB or 30dB, depending on your needs.
What we can do with above code:
- Increase or decrease the sound volume of video files
- Increase or decrease volume of videos and movies offline.
- Boost video audio volume on our Personal Computers.
- Make a video louder without internet connection.