Skip to content

Instantly share code, notes, and snippets.

@MatthewCallis
Last active March 3, 2018 18:19
Show Gist options
  • Save MatthewCallis/b42f583293310111c21fe6b3905eb035 to your computer and use it in GitHub Desktop.
Save MatthewCallis/b42f583293310111c21fe6b3905eb035 to your computer and use it in GitHub Desktop.
Media FIle Management Tasks
# Compress WAV Files with FLAC
find . -name "*.wav" -exec flac --best -A "tukey(0.5)" -A flattop --exhaustive-model-search --replay-gain --verify --delete-input-file {} \;
# Re-Encode FLAC Files
find . -name "*.flac" -exec flac --best -A "tukey(0.5)" -A flattop --exhaustive-model-search --replay-gain --force --verify {} \;
# Convert SHN to FLAC
for file in ./*.shn; do
ffmpeg -i "$file" "$file.flac"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment