Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Dmitry-N-Medvedev/5aef6f3233cfa2dcdfe989ecbb9700b6 to your computer and use it in GitHub Desktop.
Save Dmitry-N-Medvedev/5aef6f3233cfa2dcdfe989ecbb9700b6 to your computer and use it in GitHub Desktop.
Convert all flac files in folder to m4a using ffmpeg and libfdk_aac
# on os x use brew to get ffmpeg with libfdk_aac
brew install ffmpeg --with-fdk-aac
# convert and use m4a as file extension
find . -name '*.flac' -exec sh -c 'ffmpeg -i "$1" -c:a libfdk_aac -b:a 320k "${1%.flac}.m4a"' _ {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment