pack-vid/pack-set
Brion Vibber 97a21bd75f audio tweaks etc
* pass --no-audio through from pack-set to pack-vid
* don't reserve bitrate for audio if there's no audio track
2023-05-16 16:54:36 -07:00

23 lines
486 B
Bash
Executable file

#!/bin/sh
OPTS=""
if [ "$1" == "--no-audio" ]
then
OPTS="--no-audio"
shift
fi
for INFILE in "$@"
do
echo "$INFILE"
COMMON="$OPTS --exposure=-2.5 --peak=141 --fps=60000/1001"
SPEED_SMALL="veryslow"
SPEED_LARGE="medium"
SMALL="$COMMON --size=4m --preset=$SPEED_SMALL --quality=0.75"
LARGE="$COMMON --size=25m --preset=$SPEED_LARGE"
pack-vid $SMALL "$INFILE" "${INFILE%.mp4}-small.mp4"
pack-vid $LARGE "$INFILE" "${INFILE%.mp4}-large.mp4"
done