There’s been a few posts over the years on this, but none seem to have kept up with the current state of things. I’ve got a bunch of samplepacks in .flac format that I am wanting to covert to .wav in bulk (there’s a few hundred files). I used to rely on iTunes for this, but mac truly hates anything helpful in their updates - it seems like the new Music app won’t read .flac files anymore.
Anyone have any suggestions of best software/ways of going about converting?
Hello.
If you convert from .flac to .aiff (as opposed to .wav) it should retain any of the .flac file’s metadata.
which may be useful for cataloging and such.
On macOS, a cheap option would be using Apple compressor.
Otherwise Steinberg Wavelab Elements will do the trick - it has a good batch converter. A trial version is available and it’s part of their temporarily free StayAtHome package.
#!/bin/bash
if [ $# -gt 0 ]; then f_path=$1; else f_path=.; fi
if [ $# -gt 1 ]; then f_files=("$f_path"/*.$2); else f_files=("$f_path"/*.(wav|flac)); fi
if [ $# -gt 2 ]; then f_ext_out=$3; else f_ext_out=mp3; fi
cd "$f_path"
for fw in $f_files; do
f_name=$(basename "$fw")
f_ext_in="${f_name##*.}"
f_base="${f_name%.*}"
# echo $f_base . $f_ext_in
ffmpeg -i "$fw" -y -c:v copy -q:a 0 "$f_path/$f_base.$f_ext_out"
# sleep 1
done
If you haven’t already, install homebrew on your mac and brew install ffmpeg
/usr/local/minebeing on my $PATH, I saved the script above in a file
I’ve been using Audacity lately for macro things and it’s so easy to just convert with macros, you can also do all kinds of processing including vsts and whatnot on the go, pretty easy to do…
this example of a macro will only convert as is from anything to wav, you can also just include other steps before the export and do normalize, trim, etc. and then just use the [Apply Macro to Files] to select whatever files you want.
Unless I’m missing something, I’d just drag all the folders into foobar2000, convert everything into their original folders and delete the flacs afterwards. Seems a lot simpler than some of the other methods.
I use freac but wanted to mention that Audacity does it too, many people have it but not the older software…
also I did mention that you can do all kinds of processing with the export in Audacity macros, like normalize, mono, vst limiter, whatever…
Thanks for reminding me that foobar2k is available on MacOS. Last time I tried it wasn’t working.
Anyway, for many people like me, having a bash script that is always available and highly customizable once for all is something way faster.
I just have to drag the current folder into a Terminal, type "all2mp3’’ and it’s done.
I use Avdshare Audio Converter to bulk convert FLAC files to WAV. It also helps to convert WAV to FLAC. In fact, it can convert between various audio formats, or convert video to audio format.
It has both Mac and Windows version.
i think the fastest way is command line.
command line flac tools are installable via homebrew (brew install flac).
and then something like cd /path/to/your/sample/dir find . -type d -execdir sh -c "flac -d *.flac" \;
and if you want to delete flac files after decoding, then: find . -type f -name "*.flac" -exec rm -vf {} \;
oh man took me back to the netscape toolbar malware days…
name one thing it does better than any of the software mentioned earlier, or you’re here just to spam for seo?
it looks like it has built in flag to delete source
--delete-input-file
Automatically delete the input file after a successful encode or decode. If there was an error (including a verify error) the input file is left intact.