From 49cd10875fab0e69bfcf4b60f66261629ee96789 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 18 May 2017 10:04:58 +0200 Subject: Predictive GOP size for VP8 (not only H264. --- bin/stream | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/stream b/bin/stream index 964b7f7..c10901f 100755 --- a/bin/stream +++ b/bin/stream @@ -189,7 +189,8 @@ encode_vp8() { bitrate=$1; speed=$2; -b:v $bitrate -minrate $bitrate -maxrate $bitrate \ -undershoot-pct 95 -bufsize $((6000*bitrate/1000)) -rc_init_occupancy $((4000*bitrate/1000)) \ -max-intra-rate 0 \ - -qmin 4 -qmax 56" + -qmin 4 -qmax 56 \ + -force_key_frames expr:gte(t,n_forced*2)" } encode_x264() { bitrate=$1; speed=$2; echo_n "-codec:v libx264 -preset $speed -tune zerolatency \ -- cgit v1.2.3