first commit

This commit is contained in:
2022-11-15 08:17:46 -05:00
commit 5d707b4753
3 changed files with 92 additions and 0 deletions

15
media/h265Batch.sh Normal file
View 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"' __ {} \;