Skip to content

Instantly share code, notes, and snippets.

@vikjam
Created May 11, 2016 11:38
Show Gist options
  • Save vikjam/e569bf3bfcef9e799f08e210bada4004 to your computer and use it in GitHub Desktop.
Save vikjam/e569bf3bfcef9e799f08e210bada4004 to your computer and use it in GitHub Desktop.
Convert FLAC to AAC
# Install ffmpeg with the right codec
brew install ffmpeg --with-fdk-aac
# Actual loop
for i in *flac;do of="${i/.flac/.m4a}"; ffmpeg -i "${i}" -c:a libfdk_aac -b:a 320k "${of}";done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment