summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-02-04 12:38:45 +0100
committerJonas Smedegaard <dr@jones.dk>2021-02-04 14:17:02 +0100
commitbe8a02250013065a93fbfbc4e07cb21a46145b4d (patch)
tree1ea2c705ff4506fa65b1c4f2dd11bcc04442ecb5
parentd5d6d2e7b062031efa319f140ede5b08181d3659 (diff)
feature: add option argument --compression=exact to use dual-pass, and use single-pass by default
-rwxr-xr-xlocalvideowebencode7
1 files changed, 5 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 0fdefab..1bb7227 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -118,6 +118,7 @@ html favoring open formats with optional non-JavaScript Flash fallback.
dirty fast
normal medium average medium
hq high exact very slow
+ exact medium exact slow
quality medium vary medium
(default: normal)
-h, --help This help text
@@ -223,7 +224,6 @@ title=${title:-$stem}
[ -n "$use_lame_cbr" ] || use_lame_abr=yes
# resolve quality/speed hints
-multipass=yes
qscale_theora=5
#crf_vp8=10
cpu_vp8=2
@@ -235,17 +235,20 @@ profile_h264=baseline
case "$compression" in
normal) :;;
dirty)
- multipass=
qscale_theora=1
cpu_vp8=5
crf_h264=40
;;
hq)
+ multipass=yes
qscale_theora=6
cpu_vp8=0
cpu_vp9=1
preset_h264=veryslow
;;
+ exact)
+ multipass=yes
+ ;;
quality)
no_bitrate=yes
;;