Add to-audiobook-mp3.sh
authorColin P. Mccabe <colin@cmccabe.xyz>
Tue, 21 Nov 2017 17:35:52 +0000 (09:35 -0800)
committerColin P. Mccabe <colin@cmccabe.xyz>
Tue, 21 Nov 2017 17:35:52 +0000 (09:35 -0800)
to-audiobook-mp3.sh [new file with mode: 0755]

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