Created
November 13, 2015 01:13
-
-
Save jbuchbinder/6320f134ed7ba87011a5 to your computer and use it in GitHub Desktop.
Normalizing video volume
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VIDEO_FILE=$1 | |
VIDEO_FILE_FIXED=${VIDEO_FILE%.*}-fixed.${VIDEO_FILE##*.} | |
avconv -i $VIDEO_FILE -c:a pcm_s16le -vn audio.wav | |
normalize-audio audio.wav | |
avconv -i $VIDEO_FILE -i audio.wav -map 0:0 -map 1:0 -c:v copy -c:a libvo_aacenc $VIDEO_FILE_FIXED |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment