From 5bd215f07dbc1a0d8a37a8d9addf685202d1f124 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 26 Mar 2022 19:10:40 -0400 Subject: init --- root/transcode.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 root/transcode.sh (limited to 'root/transcode.sh') 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 -- cgit v1.2.3