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 #!/bin/sh
INFILE="$1" INFILE="$1"
shift COMMON="--quality=0.67 --exposure=-3 --peak=80"
COMMON="--quality=0.67 --exposure=-3 --peak=80 --preset=slow" SMALL="$COMMON --size=4m --preset=slow"
pack-vid $COMMON --size=4m "$INFILE" "${INFILE%.mp4}-small.mp4" & LARGE="$COMMON --size=25m --preset=slow"
pack-vid $COMMON --size=25m "$INFILE" "${INFILE%.mp4}-large.mp4" & (
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 wait

View file

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