From c0dd40df55cc249daf25bf97fc0d01baf6f17e73 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 17 May 2017 19:09:29 +0200 Subject: Rename variable SPEED_VPX → SPEED_VP8. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/decode+edit+loop+encode+stream | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/decode+edit+loop+encode+stream') diff --git a/bin/decode+edit+loop+encode+stream b/bin/decode+edit+loop+encode+stream index a620eb1..d0888fb 100755 --- a/bin/decode+edit+loop+encode+stream +++ b/bin/decode+edit+loop+encode+stream @@ -22,7 +22,7 @@ ITERATIONS=${3-0} # endless by default HEIGHT=360 # TODO: Vary vpx quality based on height -SPEED_VPX=15 +SPEED_VP8=15 # inspired by Apple HLS recommendations if [ $HEIGHT -le 234 ]; then VBITRATE=145000; @@ -47,7 +47,7 @@ ffmpeg -hide_banner -threads auto -re \ [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \ -map '[v]' \ -pix_fmt yuv420p \ - -codec:v vp8 -quality realtime -deadline 1000000 -cpu-used "$SPEED_VPX" \ + -codec:v vp8 -quality realtime -deadline 1000000 -cpu-used "$SPEED_VP8" \ -b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \ -undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \ -max-intra-rate 0 \ -- cgit v1.2.3