summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream3
1 files changed, 2 insertions, 1 deletions
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 \