summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-09-22 15:31:20 +0200
committerJonas Smedegaard <dr@jones.dk>2014-09-22 16:51:45 +0200
commitf3680d46d06deab82c01e484261c783e82d6005a (patch)
tree94ed31c83f2bf28f5216830923284ddcbd298f68 /localvideowebencode
parent5879e9f268b28fe22b8bb35467042e44f6cad0ed (diff)
Fix reset qmin and qmax for VP8 (MLT presets seem misguided). Fix set crf (not bogus qscale) for VP8 and H.264.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode4
1 files changed, 2 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 5c0805c..3830a2a 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -353,8 +353,8 @@ melt="melt -progress"
_melt_in="${_melt_in:+$_melt_in }${sample:+in=${samplestart:-0} out=$((${samplestart:-0} + samplelength))}"
_melt_video="progressive=1${framerate:+ frame_rate_den="$framerate_den" frame_rate_num="$framerate_num"}${bitrate:+ vb=$bitrate}${size:+ s=${width:+$width}x${height:+$height}}${aspect:+ aspect=$aspect}"
_melt_ogg="$_melt_video f=ogg vcodec=libtheora${bitrate_fixed:- qscale=5}"
-_melt_h264="$_melt_video $_melt_h264${bitrate_fixed:- qscale=5}"
-_melt_webm="$_melt_video vpre=libvpx-${webmpreset:-360p}"
+_melt_h264="$_melt_video $_melt_h264${bitrate_fixed:- crf=23}"
+_melt_webm="$_melt_video vpre=libvpx-${webmpreset:-360p} qmin=0 qmax=63${bitrate_fixed:- crf=23}"
_melt_audio="${channels:+ac=$channels}"
# limit (i.e. avoid peaks "clipping")
_melt_postfilters_audio="${limit:+-filter ladspa.1077}"