tweak
This commit is contained in:
parent
a2457707ed
commit
1512776b6c
2 changed files with 14 additions and 5 deletions
6
pack-set
6
pack-set
|
@ -11,9 +11,11 @@ for INFILE in "$@"
|
||||||
do
|
do
|
||||||
echo "$INFILE"
|
echo "$INFILE"
|
||||||
|
|
||||||
COMMON="$OPTS --hdr --exposure=-2.5 --peak=141 --fps=60000/1001"
|
#COMMON="$OPTS --hdr --exposure=-2.5 --peak=141 --fps=60000/1001"
|
||||||
|
COMMON="$OPTS --hdr --exposure=-2 --peak=500 --fps=60000/1001"
|
||||||
SPEED_SMALL="veryslow"
|
SPEED_SMALL="veryslow"
|
||||||
SPEED_LARGE="medium"
|
#SPEED_LARGE="medium"
|
||||||
|
SPEED_LARGE="veryslow"
|
||||||
|
|
||||||
SMALL="$COMMON --size=4m --preset=$SPEED_SMALL"
|
SMALL="$COMMON --size=4m --preset=$SPEED_SMALL"
|
||||||
LARGE="$COMMON --size=25m --preset=$SPEED_LARGE"
|
LARGE="$COMMON --size=25m --preset=$SPEED_LARGE"
|
||||||
|
|
13
pack-vid
13
pack-vid
|
@ -27,6 +27,7 @@ $options = [
|
||||||
'size' => $maxBytes,
|
'size' => $maxBytes,
|
||||||
'quality' => 1.0,
|
'quality' => 1.0,
|
||||||
'hdr' => false,
|
'hdr' => false,
|
||||||
|
'dither' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
while ( count( $args ) > 0 && substr( $args[0], 0, 2 ) == '--' ) {
|
while ( count( $args ) > 0 && substr( $args[0], 0, 2 ) == '--' ) {
|
||||||
|
@ -53,7 +54,8 @@ if ( count ( $args ) < 2 ) {
|
||||||
" --fps=n frame rate limit\n" .
|
" --fps=n frame rate limit\n" .
|
||||||
" --size=n target file size in bytes (default 3.5M)\n" .
|
" --size=n target file size in bytes (default 3.5M)\n" .
|
||||||
" --quality=n fraction of base bitrate to break on (deafult 0.75)\n" .
|
" --quality=n fraction of base bitrate to break on (deafult 0.75)\n" .
|
||||||
" --hdr force HDR input processing on\n"
|
" --hdr force HDR input processing on\n" .
|
||||||
|
" --dither enable dithering in 8-bit downconversion\n"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
[ $src, $dest ] = $args;
|
[ $src, $dest ] = $args;
|
||||||
|
@ -267,8 +269,13 @@ function convert( $src, $dest, $options ) {
|
||||||
$filters[] = "exposure=$exposure";
|
$filters[] = "exposure=$exposure";
|
||||||
}
|
}
|
||||||
$filters[] = "tonemap=hable:peak=$peak:desat=0.0";
|
$filters[] = "tonemap=hable:peak=$peak:desat=0.0";
|
||||||
$filters[] = "zscale=t=bt709:p=bt709:m=bt709:r=full";
|
if ( $options['dither'] ) {
|
||||||
$filters[] = "vibrance=0.0625";
|
$dither = ":dither=ordered";
|
||||||
|
} else {
|
||||||
|
$dither = "";
|
||||||
|
}
|
||||||
|
$filters[] = "zscale=t=bt709:p=bt709:m=bt709:r=full$dither";
|
||||||
|
$filters[] = "vibrance=0.2";
|
||||||
}
|
}
|
||||||
$filters[] = "format=yuv420p";
|
$filters[] = "format=yuv420p";
|
||||||
if ( $crop ) {
|
if ( $crop ) {
|
||||||
|
|
Loading…
Reference in a new issue