Skip to content

Instantly share code, notes, and snippets.

@weavenet
Created December 30, 2011 15:02
Show Gist options
  • Save weavenet/1540224 to your computer and use it in GitHub Desktop.
Save weavenet/1540224 to your computer and use it in GitHub Desktop.
Convert M4A files across multiple directories to MP3s using faad & lame
#!/bin/bash
find /tmp -name '* *' | while read filename; do
echo "Converting:$filename"
faad -o - "$filename" | lame - "${filename%.m4a}.mp3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment