use 'slow' instead of 'veryslow'

This commit is contained in:
Brooke Vibber 2023-03-26 13:55:26 -07:00
parent 76aa1345e7
commit 12ce605492
1 changed files with 5 additions and 2 deletions

View File

@ -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,