Add mp3splt-audiobook
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 14 Feb 2011 06:38:17 +0000 (22:38 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 14 Feb 2011 06:38:17 +0000 (22:38 -0800)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

mp3splt-audiobook [new file with mode: 0755]

diff --git a/mp3splt-audiobook b/mp3splt-audiobook
new file mode 100755 (executable)
index 0000000..fbe7572
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+#
+# Split an audiobook into multiple 5-minute segments.
+#
+
+die() {
+        echo $@
+        exit 1
+}
+
+which mp3splt &> /dev/null \
+        || die "you must install mp3splt, the mp3 splitting utility."
+
+mp3splt -t 5.0 -n -o '@n' $@