summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-02-04 20:55:09 +0100
committerJonas Smedegaard <dr@jones.dk>2021-02-04 20:55:09 +0100
commit4149b3d53e0daa486250bb3bc834efba824d915f (patch)
tree31a3e0f1c4fcf9ff94d13768918b244aaabb12f1 /localvideowebencode
parent8aa977b8b0c1b3f8bd77a3804216d1d8b51e151e (diff)
fix pass vpxenc options --minsection-pct --maxsection-pct only when bitrate is set, but also in singlepass (not only dual-pass)
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode6
1 files changed, 3 insertions, 3 deletions
diff --git a/localvideowebencode b/localvideowebencode
index c341466..26fcf2b 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -510,13 +510,13 @@ _melt_postfilters_audio="${limit:+-filter ladspa.1077}"
# codec bitrate options
_melt_bitrate_vp8="${no_q_vp8:+ vb=$bitrate_vp8} minrate=$((bitrate_vp8/20)) maxrate=$((bitrate_vp8*12))"
_ffmpeg_bitrate_vp8="${no_q_vp8:+-b:v $bitrate_vp8} -minrate $((bitrate_vp8/20)) -maxrate $((bitrate_vp8*12))"
-_vpxenc_bitrate_vp8="--target-bitrate=$((bitrate_vp8/1000))"
+_vpxenc_bitrate_vp8="--target-bitrate=$((bitrate_vp8/1000)) --minsection-pct=5 --maxsection-pct=1200"
_melt_bitrate_vp9="${no_q_vp9:+ vb=$bitrate_vp9} minrate=$((bitrate_vp9/20)) maxrate=$((bitrate_vp9*12))"
_ffmpeg_bitrate_vp9="${no_q_vp9:+-b:v $bitrate_vp9} -minrate $((bitrate_vp9/20)) -maxrate $((bitrate_vp9*12))"
-_vpxenc_bitrate_vp9="--target-bitrate=$((bitrate_vp9/1000))"
+_vpxenc_bitrate_vp9="--target-bitrate=$((bitrate_vp9/1000)) --minsection-pct=5 --maxsection-pct=1200"
# codec low-level options
-_vpxenc_vpx="--min-q=$webm_qmin --max-q=$webm_qmax${multipass:+ --minsection-pct=5 --maxsection-pct=1200} --kf-max-dist=120 --auto-alt-ref=1 --lag-in-frames=$webm_lag --arnr-maxframes=7 --arnr-strength=5 --arnr-type=3"
+_vpxenc_vpx="--min-q=$webm_qmin --max-q=$webm_qmax --kf-max-dist=120 --auto-alt-ref=1 --lag-in-frames=$webm_lag --arnr-maxframes=7 --arnr-strength=5 --arnr-type=3"
# codec options
_melt_theora="vcodec=libtheora${bitrate_theora:+ vb=$bitrate_theora} qscale=$q_theora"