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