Compare commits

..

No commits in common. "6d47987367c9a5dd39f4d43613037e2cbe462b87" and "669e817341629432a447fd2f8d0dd3e3dfd4c9f8" have entirely different histories.

2 changed files with 5 additions and 12 deletions

View file

@ -1,14 +1,7 @@
#!/bin/sh #!/bin/sh
INFILE="$1" INFILE="$1"
COMMON="--quality=0.67 --exposure=-3 --peak=80" shift
SMALL="$COMMON --size=4m --preset=slow" COMMON="--quality=0.67 --exposure=-3 --peak=80 --preset=slow"
LARGE="$COMMON --size=25m --preset=slow" pack-vid $COMMON --size=4m "$INFILE" "${INFILE%.mp4}-small.mp4" &
( 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' => 'medium', 'preset' => 'slow',
'fps' => '60000/1001', 'fps' => '60000/1001',
'size' => $maxBytes, 'size' => $maxBytes,
'quality' => 1.0, 'quality' => 1.0,