I'm working in linux mint.
I have single directory containing fifteen other directories all containing .wav files. I want to use ffmpeg to recursively go through all directories and for every .wav file it finds, convert that file to .flac with the same name and in the same directory as the original.
I'm pretty new to this so I'm just experimenting. This what I've pulled together so far but I keep getting '.wav no such file or directory error'. I dont think I'm capturing the file name correctly. Can somebody please tell me what I need to do to get this to work:
find . -name "*.wav" -exec ffmpeg {} -i "*.wav" "*.flac" \;
Edit: Thanks to llogan
This what works:
find . -name "*.wav" -exec ffmpeg -i {} "{}.flac" \;
Whoever marked this question as already answered is wrong as the code in that link only works in the current directory, not recursive.