2023-04-22 00:57:17 +00:00
|
|
|
#!/bin/sh
|
2023-04-24 02:28:30 +00:00
|
|
|
|
2023-05-16 23:54:36 +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-28 00:04:17 +00:00
|
|
|
#COMMON="$OPTS --hdr --exposure=-2.5 --peak=141 --fps=60000/1001"
|
|
|
|
COMMON="$OPTS --hdr --exposure=-2 --peak=500 --fps=60000/1001"
|
2023-05-07 08:20:25 +00:00
|
|
|
SPEED_SMALL="veryslow"
|
2023-05-28 00:04:17 +00:00
|
|
|
#SPEED_LARGE="medium"
|
|
|
|
SPEED_LARGE="veryslow"
|
2023-04-24 02:28:30 +00:00
|
|
|
|
2023-05-16 19:14:49 +00:00
|
|
|
SMALL="$COMMON --size=4m --preset=$SPEED_SMALL"
|
2023-05-07 08:20:25 +00:00
|
|
|
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
|