diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-04 04:22:16 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-04 04:22:16 +0200 |
commit | 26d20fb2bd7157870064e9dfbfc528d2dc08e4d1 (patch) | |
tree | f6818d8942cc3e5ee7fb77c9be7601b870127431 /localvideowebencode | |
parent | 9e402cab8b7b4d958ecf6fbb7ed4b38b01b558c1 (diff) |
Fix set H.264 video bitrate and buffer size.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-x | localvideowebencode | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localvideowebencode b/localvideowebencode index 74a1283..724b848 100755 --- a/localvideowebencode +++ b/localvideowebencode @@ -479,7 +479,7 @@ _vpxenc_vp8="--codec=vp8${bitrate_vp8:+ --target-bitrate=$((bitrate_vp8/1000))} _melt_vp9="vcodec=libvpx-vp9 vpreset=$sizepreset_vpx${bitrate_vp9:+ vb=$bitrate_vp9 minrate=$((bitrate_vp9/20)) maxrate=$((bitrate_vp9*12))}${crf_vp9:+ crf=$crf_vp9} cpu-used=$cpu_vp9" _ffmpeg_vp9="-c:v libvpx-vp9 -pre:v $sizepreset_vpx${bitrate_vp9:+ -b:v $bitrate_vp9 -minrate $((bitrate_vp9/20)) -maxrate $((bitrate_vp9*12))}${crf_vp9:+ -crf $crf_vp9} -cpu-used $cpu_vp9" _vpxenc_vp9="--codec=vp9${bitrate_vp9:+ --target-bitrate=$((bitrate_vp9/1000))} --good --end-usage=${vbr_vp9:+vbr}${crf_vp9:+cq --cq-level=$crf_vp9} --cpu-used=$cpu_vp9 $_vpxenc_vpx --tile-columns=$webm_tokenparts_log2 --tile-rows=$webm_tokenparts_log2" -_melt_h264="vcodec=libx264 vpreset=$speedpreset_h264 vprofile=baseline${x264tune:+ tune=$x264tune} threads=0 movflags=+faststart crf=$crf_h264" +_melt_h264="vcodec=libx264 vpreset=$speedpreset_h264 vprofile=baseline${x264tune:+ tune=$x264tune} -maxrate "${bitrate}" -bufsize $((bitrate*2)) threads=0 movflags=+faststart crf=$crf_h264" _melt_pcm="$_melt_downmix acodec=pcm_s16le" _melt_vorbis="$_melt_downmix acodec=libvorbis aq=$quality_vorbis" _ffmpeg_vorbis="$_ffmpeg_downmix -c:a libvorbis -aq $quality_vorbis" |