summaryrefslogtreecommitdiff
path: root/bin/encodevideo+loop+stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/encodevideo+loop+stream')
-rwxr-xr-xbin/encodevideo+loop+stream4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/encodevideo+loop+stream b/bin/encodevideo+loop+stream
index a8a5f76..b0c5c4c 100755
--- a/bin/encodevideo+loop+stream
+++ b/bin/encodevideo+loop+stream
@@ -17,7 +17,7 @@ FIRSTPORT=${2:-5002} # even number - next 3 ports used too
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;
@@ -35,7 +35,7 @@ ffmpeg -hide_banner -threads auto -re \
-stream_loop -1 -i "$INPUT" \
-map '0: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 \