Created
March 18, 2015 23:09
-
-
Save bmcculley/238146ff8b3de05bf73a to your computer and use it in GitHub Desktop.
convert from mp4 to mp3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for song in *.mp4 | |
do | |
title=`echo "$song" | sed -e "s/.mp4$//g"` | |
ffmpeg -i "$song" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "$title.mp3" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment