include a 360p size tier
This commit is contained in:
parent
114a105d1c
commit
0c459a0709
1 changed files with 5 additions and 2 deletions
7
pack-vid
7
pack-vid
|
@ -108,10 +108,13 @@ function convert( $src, $dest, $options ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$mbits = 1000 * 1000;
|
$mbits = 1000 * 1000;
|
||||||
if ( $bitrate < 2 * $mbits ) {
|
if ( $bitrate < $mbits ) {
|
||||||
|
$frameWidth = 640;
|
||||||
|
$frameHeight = 360;
|
||||||
|
} elseif ( $bitrate < 2 * $mbits ) {
|
||||||
$frameWidth = 854;
|
$frameWidth = 854;
|
||||||
$frameHeight = 480;
|
$frameHeight = 480;
|
||||||
} else if ( $bitrate <= 4 * $mbits ) {
|
} elseif ( $bitrate < 4 * $mbits ) {
|
||||||
$frameWidth = 1280;
|
$frameWidth = 1280;
|
||||||
$frameHeight = 720;
|
$frameHeight = 720;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue