pack-vid/pack-set

24 lines
492 B
Text
Raw Normal View History

2023-04-22 00:57:17 +00:00
#!/bin/sh
2023-04-24 02:28:30 +00:00
OPTS=""
if [ "$1" == "--no-audio" ]
then
OPTS="--no-audio"
shift
fi
2023-04-24 02:28:30 +00:00
for INFILE in "$@"
do
echo "$INFILE"
2023-05-17 16:16:30 +00:00
COMMON="$OPTS --hdr --exposure=-2.5 --peak=141 --fps=60000/1001"
SPEED_SMALL="veryslow"
SPEED_LARGE="medium"
2023-04-24 02:28:30 +00:00
SMALL="$COMMON --size=4m --preset=$SPEED_SMALL --quality=0.75"
LARGE="$COMMON --size=25m --preset=$SPEED_LARGE"
2023-04-24 02:28:30 +00:00
2023-04-25 04:24:51 +00:00
pack-vid $SMALL "$INFILE" "${INFILE%.mp4}-small.mp4"
pack-vid $LARGE "$INFILE" "${INFILE%.mp4}-large.mp4"
2023-04-24 02:28:30 +00:00
done