1

I need to convert a lot of *.wav in different folder, i try to use find and flac to convert all this without missing name of the track in the folder.

This is the line I try to use :

find ./ -type f -iname "*.wav" -exec sh -c flac -8 *.wav \; 

I don't know what missing but flac show me the man. I think I need some help :)

ps : I find a "solution" but with ffmpeg, I prefer using flac.

1 Answer 1

0

There is no need to call a subshell for the find arguments here, you can call directly flac. Also the command you execute accepts multiple arguments, so you can call one flac process to convert all your files, like this:

find . -type f -iname "*.wav" -exec flac -8 {} + 
2
  • Note: the output files will have same name, different extension, e.g. test.wav -> test.flac. Commented Nov 22, 2020 at 2:44
  • Works like a charm ! Thanks Commented Nov 22, 2020 at 2:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.