pack-vid/pack-set

28 lines
662 B
Bash
Executable file

#!/bin/sh
OPTS=""
for INFILE in "$@"
do
if [[ "$1" =~ ^--.* ]]
then
echo "OPTION: $1"
OPTS="$OPTS $1"
shift
else
echo "FILE: $INFILE"
#COMMON="$OPTS"
#COMMON="$OPTS --exposure=-2.5 --peak=141"
#COMMON="$OPTS --exposure=-1 --peak=500"
COMMON="$OPTS --peak=1000"
SPEED_SMALL="veryslow"
SPEED_LARGE="slow"
SMALL="$COMMON --size=4m --quality=0.75 --preset=$SPEED_SMALL"
LARGE="$COMMON --size=25m --preset=$SPEED_LARGE"
pack-vid $SMALL "$INFILE" "${INFILE%.mp4}-small.mp4"
pack-vid $LARGE "$INFILE" "${INFILE%.mp4}-large.mp4"
fi
done