Skip to content

Instantly share code, notes, and snippets.

@eugene-babichenko
Created September 10, 2016 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugene-babichenko/cc6c3c8992788b8655bd631c8d3e15ff to your computer and use it in GitHub Desktop.
Save eugene-babichenko/cc6c3c8992788b8655bd631c8d3e15ff to your computer and use it in GitHub Desktop.
This is a simple script to convert all your M4A, or whatever you define, to FLAC. This script acts on audio files in the current folder and all subfolders.
find . -type f -iname "*.m4a" -print0 | while IFS= read -r -d $'\0' input_file; do ffmpeg -i "$input_file" -f flac "${input_file%.*}.flac" < /dev/null; rm "$input_file"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment