Add script to cut MTS files from time1 to a length
authorElana Hashman <ehashman@csclub.uwaterloo.ca>
Mon, 3 Nov 2014 19:19:28 +0000 (14:19 -0500)
committerElana Hashman <ehashman@csclub.uwaterloo.ca>
Mon, 3 Nov 2014 19:19:28 +0000 (14:19 -0500)
cut-mts.sh [new file with mode: 0755]

diff --git a/cut-mts.sh b/cut-mts.sh
new file mode 100755 (executable)
index 0000000..c4a46d7
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+export ffmpeg=/users/pbarfuss/ffmpeg
+
+if [ $# !=  "3" ] ; then
+    echo "Usage: cut-mts input.mts start-point cut-length";
+    echo "  For example: cut-mts video.mts 00:00:00 00:10:00";
+    exit 1;
+fi
+
+ffmpeg -i "$1" -ss "$2" -t "$3" -c:v copy -c:a copy "cut-$1"