Bulk converting .flac files to .wav in mac?

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?

Learn some shell scripting and use SoX.

6 Likes

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.

I like switch

You’re welcome :stuck_out_tongue_winking_eye:

2 Likes

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.

Cheers!

The Steinberg Elements #StayAtHome deal expired yesterday. It was a free-to-use period.

I use xACT. It can decode FLAC to AIFF or WAV (as well as encoding a variety of formats).

http://xact.scottcbrown.org

1 Like

Oops - sorry I didn’t check before posting. The 30 day trial is still available though.

This script might help some people

#!/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

# /usr/local/mine/all2mp3 execution_path input_extension output_extension
all2mp3 . flac wav

When I hit all2mp3, it defaults to converting all wav and flac in the folder into mp3

7 Likes

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.

2 Likes

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…

I wasn’t criticising you or anyone else, sorry if that’s how it sounded :slight_smile:

Yeah, foobar2k is pretty old now and I don’t use it for much else but I haven’t found anything I prefer for converting things. Very fast and flexible.

1 Like

I’ve used this on my mac for years and it’s great and free.

Edit: Just realised it’s posted above, the fancy graphic threw me off

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.

1 Like

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 {} \;

3 Likes

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.
2 Likes

ah yeah, i always forget about that!