diff options
author | Adam T. Carpenter <atc@53hor.net> | 2022-03-26 19:10:40 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2022-03-26 19:10:40 -0400 |
commit | 5bd215f07dbc1a0d8a37a8d9addf685202d1f124 (patch) | |
tree | b0c38c3e115ab985a0444ff2b52e8c5088a14381 /root/transcode.sh | |
download | transcoder-master.tar.xz transcoder-master.zip |
Diffstat (limited to 'root/transcode.sh')
-rwxr-xr-x | root/transcode.sh | 16 |
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 |