Created
September 10, 2016 12:43
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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