summaryrefslogtreecommitdiff
path: root/bin/decode+edit+loop+encode+stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/decode+edit+loop+encode+stream')
-rwxr-xr-xbin/decode+edit+loop+encode+stream4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/decode+edit+loop+encode+stream b/bin/decode+edit+loop+encode+stream
index e150957..5dbe82d 100755
--- a/bin/decode+edit+loop+encode+stream
+++ b/bin/decode+edit+loop+encode+stream
@@ -21,6 +21,8 @@ ITERATIONS=${3-0} # endless by default
HEIGHT=360
+SPEED_VPX=15
+
# inspired by Apple HLS recommendations
if [ $HEIGHT -le 234 ]; then VBITRATE=145000;
elif [ $HEIGHT -le 270 ]; then VBITRATE=365000;
@@ -43,7 +45,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 15 \
+ -codec:v vp8 -quality realtime -deadline 1000000 -cpu-used "$SPEED_VPX" \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
-max-intra-rate 0 \