go back to fpsmax

This commit is contained in:
Brooke Vibber 2023-05-01 09:37:02 -07:00
parent b29d0a9fac
commit a982d7d812
1 changed files with 5 additions and 4 deletions

View File

@ -8,6 +8,7 @@
// Picks bitrate to match
// Picks resolution based on bitrate target
// 2-pass encoding with libx264 veryslow
// fps limiter: warning requires newer ffmpeg than debian-buster
$args = $_SERVER['argv'];
$self = array_shift( $args );
@ -233,8 +234,8 @@ function convert( $src, $dest, $options ) {
array_merge( [
'-i', $src,
'-f', 'mp4',
//'-fpsmax', $fps,
'-r', $fps,
'-fpsmax', $fps,
//'-r', $fps,
'-vf', $vf,
'-c:v', 'libx264',
'-b:v', $bitrate,
@ -250,8 +251,8 @@ function convert( $src, $dest, $options ) {
array_merge( [
'-i', $src,
'-vf', $vf,
//'-fpsmax', $fps,
'-r', $fps,
'-fpsmax', $fps,
//'-r', $fps,
'-c:v', 'libx264',
'-b:v', $bitrate,
'-preset', $preset,