summaryrefslogtreecommitdiff
path: root/bin/decode+edit+encode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-17 19:09:29 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-17 19:09:29 +0200
commitc0dd40df55cc249daf25bf97fc0d01baf6f17e73 (patch)
tree8d8b091bd9fc2ba93119ea9c8f7cf8f171afb606 /bin/decode+edit+encode
parent1023309e315b5b8337f6aae597f0ba176abe9c06 (diff)
Rename variable SPEED_VPX → SPEED_VP8.
Diffstat (limited to 'bin/decode+edit+encode')
-rwxr-xr-xbin/decode+edit+encode4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/decode+edit+encode b/bin/decode+edit+encode
index 73f4a68..96b7081 100755
--- a/bin/decode+edit+encode
+++ b/bin/decode+edit+encode
@@ -11,7 +11,7 @@ OUTPUT=../tmp/omni/show0/earth.webm
HEIGHT=360
# TODO: Vary vpx quality based on height
-SPEED_VPX=4
+SPEED_VP8=4
# inspired by Apple HLS recommendations
if [ $HEIGHT -le 234 ]; then VBITRATE=145000;
@@ -36,7 +36,7 @@ ffmpeg -hide_banner -threads auto -y -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 \