From 12ce605492022d05cfc3ae1c38251137bab7a310 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 26 Mar 2023 13:55:26 -0700 Subject: [PATCH] use 'slow' instead of 'veryslow' --- pack-vid | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pack-vid b/pack-vid index 3bc91e2..78878e9 100755 --- a/pack-vid +++ b/pack-vid @@ -209,6 +209,9 @@ function convert( $src, $dest, $options ) { $fps = $options['fps']; + // $preset = 'veryslow'; // annoying at higher resolutions + $preset = 'slow'; + $passlog = tempnam( '.', 'pack-vid-passlog' ); run( 'ffmpeg', array_merge( [ @@ -218,7 +221,7 @@ function convert( $src, $dest, $options ) { '-vf', $vf, '-c:v', 'libx264', '-b:v', $bitrate, - '-preset', 'veryslow', + '-preset', $preset, '-pass', '1', '-passlogfile', $passlog, '-g', $keyframeInt, @@ -233,7 +236,7 @@ function convert( $src, $dest, $options ) { '-fpsmax', $fps, '-c:v', 'libx264', '-b:v', $bitrate, - '-preset', 'veryslow', + '-preset', $preset, '-pass', '2', '-passlogfile', $passlog, '-g', $keyframeInt,