include a 360p size tier

This commit is contained in:
Brooke Vibber 2023-01-24 16:48:44 -08:00
parent 114a105d1c
commit 0c459a0709

View file

@ -108,10 +108,13 @@ function convert( $src, $dest, $options ) {
}
$mbits = 1000 * 1000;
if ( $bitrate < 2 * $mbits ) {
if ( $bitrate < $mbits ) {
$frameWidth = 640;
$frameHeight = 360;
} elseif ( $bitrate < 2 * $mbits ) {
$frameWidth = 854;
$frameHeight = 480;
} else if ( $bitrate <= 4 * $mbits ) {
} elseif ( $bitrate < 4 * $mbits ) {
$frameWidth = 1280;
$frameHeight = 720;
} else {