I have some music in ALAC (m4a) files, distributed in sub directories (albums). I want to convert them in FLAC.
I am trying something like this:
- Code: Select all
for i in */*.m4a; do ffmpeg -i "$i" ${i%m4a}wav; done
to convert them in WAV format, but expansion */*.m4a is not working, I get the error message from ffmpeg that */*.m4a does not exist.
How to solve the problem with expansion?