Skip to content

Instantly share code, notes, and snippets.

@jbuchbinder
Created November 13, 2015 01:13
Show Gist options
  • Save jbuchbinder/6320f134ed7ba87011a5 to your computer and use it in GitHub Desktop.
Save jbuchbinder/6320f134ed7ba87011a5 to your computer and use it in GitHub Desktop.
Normalizing video volume
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