Batch conversion from FLAC to Apple Lossless, using ffmpeg terminal command

0

I started using the answer to this question but the correct answer works only for the current directory and I would like to recurse through a tree. The answers given below the one I mention did not help. After research about the find command, I ended up trying

IFS=$'\0' && for f in `find -name "*.flac"`; do ffmpeg -i "$f"  -vf "crop=((in_w/2)*2):((in_h/2)*2)" -c:a alac "${f%.flac}.m4a"; done

Unfortunately, it does not work and I don't understand why: the output is just a list of ./path/file.flac but no conversion is done.

thierry

Posted 2020-04-04T14:26:34.860

Reputation: 1

I'm voting to close this question as off-topic because this is about command line scripting – audionuma – 2020-04-05T06:36:11.410

you're getting warm but you need to go research ffmpeg. Try getting ffmpeg to work for one file then expand on to the scripting solution. – Mark – 2020-04-05T12:27:44.783

No answers