summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-02-04 22:52:29 +0100
committerJonas Smedegaard <dr@jones.dk>2021-02-04 22:52:29 +0100
commitfa9438abe3b5406bff8bfb06a09516345ef67c0d (patch)
tree03db599501514c562c1b06375090a59841fc1914 /localvideowebencode
parent2fbf79214241b3b4314e0080a42ac8638b2acf7e (diff)
fix resolve codec-specific quality rate factor before making ecxeptions
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode6
1 files changed, 3 insertions, 3 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 2d30e7d..f8024cb 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -469,13 +469,13 @@ encoder_vp8=libvpx
encoder_vp9=libvpx-vp9
encoder_h264=libx264
for vformat in vp8 vp9 h264; do
- # melt supports dual-pass or Constant Quality modes only for h.264
- [ h264 = "$vformat" ] || [ -n "$vpxenc" ] || eval "[ -z \"$multipass\$q_$vformat\" ] || use_ffmpeg_$vformat=yes"
-
eval "[ -n \"\$bitrate_$vformat\" ] || no_bitrate_$vformat=yes"
eval "[ -z \"\$no_q$no_q_$vformat\" ] || q_$vformat="
eval "[ -z \"\$q\" ] || q_$vformat=$q"
eval "[ -n \"\$q_$vformat\" ] || no_q_$vformat=yes"
+
+ # melt supports dual-pass or Constant Quality modes only for h.264
+ [ h264 = "$vformat" ] || [ -n "$vpxenc" ] || eval "[ -z \"$multipass\$q_$vformat\" ] || use_ffmpeg_$vformat=yes"
done
if [ -n "$use_ffmpeg_vp8$use_ffmpeg_vp9$use_vpxenc" ]; then
[ -n "$use_oggenc" ] || use_ffmpeg_ogg=yes