Compare commits
No commits in common. "4d6d4fc6da8f7ffc340e7282b5e1d6521a90389e" and "dc08212159e0a8305226969157de8741e3cf1dd3" have entirely different histories.
4d6d4fc6da
...
dc08212159
1 changed files with 2 additions and 3 deletions
5
pack-vid
5
pack-vid
|
@ -168,7 +168,6 @@ function convert( $src, $dest, $options ) {
|
|||
} else {
|
||||
$frameWidth = 1920;
|
||||
$frameHeight = 1080;
|
||||
$bitrate = $base * 4;
|
||||
}
|
||||
|
||||
$aspect = $width / $height;
|
||||
|
@ -199,12 +198,12 @@ function convert( $src, $dest, $options ) {
|
|||
|
||||
$filters = [ "scale=w=$scaleWidth:h=$scaleHeight" ];
|
||||
if ( $hdr ) {
|
||||
$filters[] = "zscale=t=linear:p=bt2020";
|
||||
$filters[] = "zscale=t=linear:p=bt709";
|
||||
if ( $exposure ) {
|
||||
$filters[] = "exposure=$exposure";
|
||||
}
|
||||
$filters[] = "tonemap=hable:peak=$peak";
|
||||
$filters[] = "zscale=t=bt709:p=bt709:m=bt709:r=full";
|
||||
$filters[] = "zscale=t=bt709:m=bt709:r=full";
|
||||
}
|
||||
$filters[] = "format=yuv420p";
|
||||
if ( $crop ) {
|
||||
|
|
Loading…
Reference in a new issue