Compare commits

...

2 commits

Author SHA1 Message Date
6d47987367 whee2 2023-04-23 15:14:37 -07:00
53fd306c6a whee 2023-04-23 15:14:27 -07:00
2 changed files with 12 additions and 5 deletions

View file

@ -1,7 +1,14 @@
#!/bin/sh
INFILE="$1"
shift
COMMON="--quality=0.67 --exposure=-3 --peak=80 --preset=slow"
pack-vid $COMMON --size=4m "$INFILE" "${INFILE%.mp4}-small.mp4" &
pack-vid $COMMON --size=25m "$INFILE" "${INFILE%.mp4}-large.mp4" &
COMMON="--quality=0.67 --exposure=-3 --peak=80"
SMALL="$COMMON --size=4m --preset=slow"
LARGE="$COMMON --size=25m --preset=slow"
(
pack-vid $SMALL "$INFILE" "${INFILE%.mp4}-letterbox-small.mp4"
pack-vid $LARGE "$INFILE" "${INFILE%.mp4}-letterbox-large.mp4"
) &
(
pack-vid $SMALL --crop "$INFILE" "${INFILE%.mp4}-crop-small.mp4"
pack-vid $LARGE --crop "$INFILE" "${INFILE%.mp4}-crop-large.mp4"
) &
wait

View file

@ -20,7 +20,7 @@ $options = [
'no-audio' => false,
'exposure' => '0', // stops
'peak' => '1000', // '10000' is max
'preset' => 'slow',
'preset' => 'medium',
'fps' => '60000/1001',
'size' => $maxBytes,
'quality' => 1.0,