Finding 32-bit WAV audio files on Linux

I was trying to find a way to search my archive of recordings on Linux and return the filenames of 32-bit WAV audio files. It’s a little tricky, but I did it. You’ll need to install the ffprobe command (part of the ffmpeg package).

I came up with this command. It’s quite long and maybe not the most efficient way, but it works!

find . -name '*.wav' -exec ffprobe -i '{}' 2>&1 ; | egrep 'Input|Stream' | grep pcm_f32 -B1 | grep ^Input | awk -F "'" '{print $2}'

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: