Skip to content

Instantly share code, notes, and snippets.

@kairusds
Last active September 3, 2021 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kairusds/eb5aba122b3b819c3741441de6eed86b to your computer and use it in GitHub Desktop.
Save kairusds/eb5aba122b3b819c3741441de6eed86b to your computer and use it in GitHub Desktop.
my script for normalizing the volume of audio files
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: audnorm <path>"
exit 1
fi
out="${1%.*}.normalized.mp3"
ffmpeg -i "$1" -ab 192k -af "volume=6.0dB" "$out"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment