From: Colin Patrick McCabe Date: Mon, 14 Feb 2011 06:38:17 +0000 (-0800) Subject: Add mp3splt-audiobook X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=656c0ba9eecfbeed487f7de67bf5abebae3b03e9;p=cmccabe-bin Add mp3splt-audiobook Signed-off-by: Colin McCabe --- diff --git a/mp3splt-audiobook b/mp3splt-audiobook new file mode 100755 index 0000000..fbe7572 --- /dev/null +++ b/mp3splt-audiobook @@ -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' $@