From 656c0ba9eecfbeed487f7de67bf5abebae3b03e9 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Sun, 13 Feb 2011 22:38:17 -0800 Subject: [PATCH] Add mp3splt-audiobook Signed-off-by: Colin McCabe --- mp3splt-audiobook | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) create mode 100755 mp3splt-audiobook 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' $@ -- 1.6.6.rc1.39.g9a42