]> code.delx.au - transcoding/commitdiff
identify-disc-handbrake
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 8 Mar 2015 03:33:43 +0000 (14:33 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 8 Mar 2015 03:33:43 +0000 (14:33 +1100)
identify-disc-handbrake [new file with mode: 0755]

diff --git a/identify-disc-handbrake b/identify-disc-handbrake
new file mode 100755 (executable)
index 0000000..fbc386c
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash -e
+
+if [ -z "$1" ]; then
+    echo "Usage: $0 device"
+    exit 1
+fi
+
+HandBrakeCLI --input "$1" --title 0
+