summaryrefslogtreecommitdiff
path: root/root/transcode.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2022-03-26 19:10:40 -0400
committerAdam T. Carpenter <atc@53hor.net>2022-03-26 19:10:40 -0400
commit5bd215f07dbc1a0d8a37a8d9addf685202d1f124 (patch)
treeb0c38c3e115ab985a0444ff2b52e8c5088a14381 /root/transcode.sh
downloadtranscoder-master.tar.xz
transcoder-master.zip
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