use 'slow' instead of 'veryslow'
This commit is contained in:
parent
76aa1345e7
commit
12ce605492
1 changed files with 5 additions and 2 deletions
7
pack-vid
7
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,
|
||||
|
|
Loading…
Reference in a new issue