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}'

Be First to Comment

Leave a Reply