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'];
|
$fps = $options['fps'];
|
||||||
|
|
||||||
|
// $preset = 'veryslow'; // annoying at higher resolutions
|
||||||
|
$preset = 'slow';
|
||||||
|
|
||||||
$passlog = tempnam( '.', 'pack-vid-passlog' );
|
$passlog = tempnam( '.', 'pack-vid-passlog' );
|
||||||
run( 'ffmpeg',
|
run( 'ffmpeg',
|
||||||
array_merge( [
|
array_merge( [
|
||||||
|
@ -218,7 +221,7 @@ function convert( $src, $dest, $options ) {
|
||||||
'-vf', $vf,
|
'-vf', $vf,
|
||||||
'-c:v', 'libx264',
|
'-c:v', 'libx264',
|
||||||
'-b:v', $bitrate,
|
'-b:v', $bitrate,
|
||||||
'-preset', 'veryslow',
|
'-preset', $preset,
|
||||||
'-pass', '1',
|
'-pass', '1',
|
||||||
'-passlogfile', $passlog,
|
'-passlogfile', $passlog,
|
||||||
'-g', $keyframeInt,
|
'-g', $keyframeInt,
|
||||||
|
@ -233,7 +236,7 @@ function convert( $src, $dest, $options ) {
|
||||||
'-fpsmax', $fps,
|
'-fpsmax', $fps,
|
||||||
'-c:v', 'libx264',
|
'-c:v', 'libx264',
|
||||||
'-b:v', $bitrate,
|
'-b:v', $bitrate,
|
||||||
'-preset', 'veryslow',
|
'-preset', $preset,
|
||||||
'-pass', '2',
|
'-pass', '2',
|
||||||
'-passlogfile', $passlog,
|
'-passlogfile', $passlog,
|
||||||
'-g', $keyframeInt,
|
'-g', $keyframeInt,
|
||||||
|
|
Loading…
Reference in a new issue