first commit
This commit is contained in:
15
media/h265Batch.sh
Normal file
15
media/h265Batch.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script requires HandBrakeCLI. On macOS, at least, you need to download
|
||||
# and install it separately from Handbrake.
|
||||
#
|
||||
# See: https://handbrake.fr/downloads2.php
|
||||
|
||||
if [ -z "$1" ] ; then
|
||||
TRANSCODEDIR="."
|
||||
else
|
||||
TRANSCODEDIR="$1"
|
||||
fi
|
||||
# Change the preset if you like (see options: "HandBrakeCLI --preset-list")
|
||||
# If you want to transcode ALL movie files, remove the -name option.
|
||||
find "$TRANSCODEDIR"/* -type f -name "*.*" -exec bash -c 'HandBrakeCLI -i "$1" -o "${1%\.*}".m4v --preset="Hardware/H.265 NVENC 1080p"' __ {} \;
|
||||
Reference in New Issue
Block a user