Skip to content

Instantly share code, notes, and snippets.

@earthiverse
Last active July 12, 2016 01:37
Show Gist options
  • Save earthiverse/dd75e4b2e7261c232b358d25f7ba404c to your computer and use it in GitHub Desktop.
Save earthiverse/dd75e4b2e7261c232b358d25f7ba404c to your computer and use it in GitHub Desktop.
Speed up mp3gain. Will run recursively through all folders in the path.
// The following works on Debian
// '4' is the number of parallel mp3gain processes to run. Recommended to run at most the # of cores in your CPU.
// '.' is the current folder, either cd to the folder containing all of your music and run the command below as-is, or change the '.' to the path containing all of your music
find . -name "*.mp3" -print0 | xargs -0 -n 1 -P 4 mp3gain -r -s i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment