diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-18 10:04:58 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-18 10:04:58 +0200 |
commit | 49cd10875fab0e69bfcf4b60f66261629ee96789 (patch) | |
tree | c5b8a2b5b082ad3fcb46bd0dcab51e899ffb3754 /bin | |
parent | 7d4e5ef0b288ea24c826961a7c1d9f502acf7e15 (diff) |
Predictive GOP size for VP8 (not only H264.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/stream | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 \ |