summaryrefslogblamecommitdiff
path: root/root/transcode.sh
blob: 0c6d5a0b0e4326aac0109a15f59fce2b5662ac1f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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