Skip to content

Instantly share code, notes, and snippets.

@yackermann
Last active June 10, 2016 06:23
Show Gist options
  • Save yackermann/ffb9a588f23f3b4f361f to your computer and use it in GitHub Desktop.
Save yackermann/ffb9a588f23f3b4f361f to your computer and use it in GitHub Desktop.
#!/bin/sh
for song in *.mp4
do
NEWFILENAME=`echo $song | sed 's/\(.*\.\)mp4/\1mp3/'`
echo Converting $song...
ffmpeg -i "$song" -vn \
-acodec libmp3lame -ac 2 -qscale:a 4 -ar 48000 \
"$NEWFILENAME"
echo Done!
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment