Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Convert a directory full of wav or aiff files to m4a files using OSX's afconvert utility (See related posts)

// Convert a directory full of wav (or whatevs) files to m4a files using OSX's afconvert utility

#!/bin/sh
ext="wav"
for f in *.$ext
 do time afconvert -v -f m4af -d aac -b 262144 $f
done

You need to create an account or log in to post comments to this site.