Skip to content

Instantly share code, notes, and snippets.

@thattommyhall
Created October 28, 2009 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thattommyhall/220180 to your computer and use it in GitHub Desktop.
Save thattommyhall/220180 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILES="*.avi"
mkdir mp3
for i in $FILES; do
ffmpeg -i "$i" -ab 320k "mp3/${i%%.avi}.mp3"
#mplayer -dumpaudio "$i" -dumpfile "mp3/${i%%.avi}.mp3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment