Skip to content

Instantly share code, notes, and snippets.

@cdl
Created November 7, 2014 21:25
Show Gist options
  • Save cdl/9617ffe055f494653799 to your computer and use it in GitHub Desktop.
Save cdl/9617ffe055f494653799 to your computer and use it in GitHub Desktop.
Instructions on converting a folder of FLAC files to ALAC M4A.
# install ffmpeg via homebrew - visit brew.sh if you don't have Homebrew
brew install ffmpeg
# cd to directory of FLAC files
cd /path/to/flacs/
# run the magic one-liner
for i in *.flac; do ffmpeg -i "$i" -acodec alac "`basename "$i" .flac`.m4a"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment