Skip to content

Instantly share code, notes, and snippets.

@balzer82
Created March 30, 2015 13:11
Show Gist options
  • Save balzer82/89f54fcb98626defe47b to your computer and use it in GitHub Desktop.
Save balzer82/89f54fcb98626defe47b to your computer and use it in GitHub Desktop.
Audio Normalize and YouTube Optimization with ffmpeg
#Audio Normalize and YouTube Optimization with ffmpeg:
#Get the max volume of your out.ogv with:
ffmpeg -i out.ogv -af "volumedetect" -f null /dev/null
#then level up with the value you have under max-vol and prepare the stream for YouTube, e.g.:
ffmpeg -i out.ogv -c:v libx264 -preset fast -crf 18 -af "volume=13dB" -c:a aac -q:a 5 -pix_fmt yuv420p -strict -2 test.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment