I use the following code to convert WAV to ALAC (bash, macOS 10.12.1):
find . -type f -iname "*.wav" | while read fn; do ffmpeg -i "$fn" -acodec alac "${fn%.wav}.m4a"; done
But there seems to be a mistake since it prints warnings like this:
n---8085/03_Part_III.wav: No such file or directory
The correct path would be:
Bad_Religion/wav/Bad_Religion---8085/03_Part_III.wav
For some reason the path is truncated.
What's wrong with the command?