push to 3.75 MB :D
This commit is contained in:
parent
12ce605492
commit
3d05a27527
1 changed files with 2 additions and 2 deletions
4
pack-vid
4
pack-vid
|
@ -13,7 +13,7 @@ $args = $_SERVER['argv'];
|
||||||
$self = array_shift( $args );
|
$self = array_shift( $args );
|
||||||
|
|
||||||
$maxBytes = 4000 * 1000; // fit in 4MB
|
$maxBytes = 4000 * 1000; // fit in 4MB
|
||||||
$maxBytes = $maxBytes * 7 / 8; // leave some headroom
|
$maxBytes = $maxBytes * 15 / 16; // leave some headroom
|
||||||
|
|
||||||
$options = [
|
$options = [
|
||||||
'letterbox' => false,
|
'letterbox' => false,
|
||||||
|
@ -148,7 +148,7 @@ function convert( $src, $dest, $options ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$mbits = 1000 * 1000;
|
$mbits = 1000 * 1000;
|
||||||
if ( $bitrate < $mbits || $height < 480 ) {
|
if ( $bitrate < 1 * $mbits || $height < 480 ) {
|
||||||
$frameWidth = 640;
|
$frameWidth = 640;
|
||||||
$frameHeight = 360;
|
$frameHeight = 360;
|
||||||
} elseif ( $bitrate < 2 * $mbits || $height < 720) {
|
} elseif ( $bitrate < 2 * $mbits || $height < 720) {
|
||||||
|
|
Loading…
Reference in a new issue