diff --git a/pack-vid b/pack-vid index 7b3c660..6161ad3 100755 --- a/pack-vid +++ b/pack-vid @@ -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,