whoops
fix color-temperature param
This commit is contained in:
parent
fbde3670d7
commit
89fbf0fd01
1 changed files with 4 additions and 3 deletions
7
pack-vid
7
pack-vid
|
@ -37,7 +37,7 @@ $options = [
|
||||||
'crop-left' => false,
|
'crop-left' => false,
|
||||||
'crop-top' => false,
|
'crop-top' => false,
|
||||||
'tonemap' => 'hable',
|
'tonemap' => 'hable',
|
||||||
'colortemperature' => false,
|
'color-temperature' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
while ( count( $args ) > 0 && substr( $args[0], 0, 2 ) == '--' ) {
|
while ( count( $args ) > 0 && substr( $args[0], 0, 2 ) == '--' ) {
|
||||||
|
@ -69,7 +69,8 @@ if ( count ( $args ) < 2 ) {
|
||||||
" --width=n override frame width in pixels\n" .
|
" --width=n override frame width in pixels\n" .
|
||||||
" --height=n override frame height in pixels\n" .
|
" --height=n override frame height in pixels\n" .
|
||||||
" --keyframe-int=n set keyframe interval (default 0)\n" .
|
" --keyframe-int=n set keyframe interval (default 0)\n" .
|
||||||
" --tonemap=mode set HDR tone mapping mode (hable, clip, etc)\n"
|
" --tonemap=mode set HDR tone mapping mode (hable, clip, etc)\n" .
|
||||||
|
" --color-temperature=n adjust color temp va 6500K\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
[ $src, $dest ] = $args;
|
[ $src, $dest ] = $args;
|
||||||
|
@ -340,7 +341,7 @@ function convert( $src, $dest, $options ) {
|
||||||
if ( $exposure ) {
|
if ( $exposure ) {
|
||||||
$filters[] = "exposure=$exposure";
|
$filters[] = "exposure=$exposure";
|
||||||
}
|
}
|
||||||
$colortemperature = $options['colortemperature'];
|
$colortemperature = $options['color-temperature'];
|
||||||
if ( $colortemperature ) {
|
if ( $colortemperature ) {
|
||||||
$filters[] = "colortemperature=$colortemperature";
|
$filters[] = "colortemperature=$colortemperature";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue