summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode4
1 files changed, 3 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode
index af443c5..b12004d 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -257,9 +257,11 @@ EOF
case "$video" in
talkinghead)
refbpp="${refbpp:-0.1}"
+ x264tune=film
;;
action)
refbpp="${refbpp:-0.15}"
+ x264tune=film
;;
'')
refbpp="${refbpp:-0.12}"
@@ -337,7 +339,7 @@ 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 properties=x264-medium-baseline${bitrate_fixed:- crf=23}"
+_melt_h264="$_melt_video properties=x264-medium-baseline${x264tune:+ tune=$x264tune}${bitrate_fixed:- crf=23}"
_melt_webm="$_melt_video vpre=libvpx-$webmpreset qmin=0 qmax=63${bitrate_fixed:- crf=10}"
_melt_audio="${channels:+ac=$channels}"
# limit (i.e. avoid peaks "clipping")