handbrake/hooks/pre_conversion.sh.example
2025-01-10 20:59:07 -08:00

22 lines
589 B
Bash
Executable file

#!/bin/sh
#
# This is an example of a pre-conversion hook. This script is always invoked
# with /bin/sh (shebang ignored).
#
# The first parameter is the full path where the video will be converted.
#
# The second parameter is the full path to the source file.
#
# The third argument is the name of the HandBrake preset that will be used to
# convert the video.
#
CONVERTED_FILE="$1"
SOURCE_FILE="$2"
PRESET="$3"
echo "pre-conversion: Output File = $CONVERTED_FILE"
echo "pre-conversion: Source File = $SOURCE_FILE"
echo "pre-conversion: Preset = $PRESET"
# TODO: Do something useful.