Batch convert audio files using ffmpeg
- Place it in the base directory of your music library
- Open a terminal and change the working directory to the base folder of your music library
- Run the script:
./convert-audio.sh | tee convert.log
- Piping the script's output to tee allows you to both watch and log the output to a file.
- When the script asks, type "m4a" for the input file extension, "alac" for the codec, "flac" for the output file extension, and "y" to move the old files.
- It will convert only the ALAC encoded m4a's to FLAC, preserving all metadata and folder structure, then move the old m4a out into a folder named "converted" with all directory structure intact just in case.