diff --git a/pack-vid b/pack-vid index 88f6fbd..d3634c1 100755 --- a/pack-vid +++ b/pack-vid @@ -320,6 +320,8 @@ function convert( $src, $dest, $options ) { } $filters[] = "scale=w=$scaleWidth:h=$scaleHeight"; if ( $hdr ) { + $filters[] = "format=yuv420p10le"; + } elseif ( $hdrInput ) { $filters[] = "zscale=t=linear:p=709:m=709"; if ( $exposure ) { $filters[] = "exposure=$exposure"; @@ -338,8 +340,6 @@ function convert( $src, $dest, $options ) { if ( $vibrance ) { $filters[] = "vibrance=$vibrance"; } - } elseif ( $hdrInput ) { - $filters[] = "format=yuv420p10le"; } else { $filters[] = "format=yuv420p"; }