summaryrefslogtreecommitdiff
path: root/root/transcode.sh
diff options
context:
space:
mode:
Diffstat (limited to 'root/transcode.sh')
-rwxr-xr-xroot/transcode.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/root/transcode.sh b/root/transcode.sh
new file mode 100755
index 0000000..0c6d5a0
--- /dev/null
+++ b/root/transcode.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+for INPUT in "$@"
+do
+ echo "$INPUT"
+
+ HandBrakeCLI \
+ --json \
+ --preset-import-file presets.json \
+ --preset "Adam's DVD" \
+ --input "$INPUT" \
+ --output /mnt/plex/new/"${INPUT##*/}" \
+ >> /var/log/HandBrakeCLI.json
+
+ mv -v $INPUT $INPUT.done
+done