add mp4-to-mp3.sh
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Sun, 7 Sep 2014 22:29:21 +0000 (15:29 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Sun, 7 Sep 2014 22:34:31 +0000 (15:34 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

mp4-to-mp3.sh [new file with mode: 0755]

diff --git a/mp4-to-mp3.sh b/mp4-to-mp3.sh
new file mode 100755 (executable)
index 0000000..0259f7b
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+FILE=$1
+echo "Re-encoding audio from ${FILE}..."
+ffmpeg -i "${FILE}" -vn -ac 2 -ar 44100 -ab 220k -f mp3 "${FILE}.mp3"