summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-18 10:04:58 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-18 10:04:58 +0200
commit49cd10875fab0e69bfcf4b60f66261629ee96789 (patch)
treec5b8a2b5b082ad3fcb46bd0dcab51e899ffb3754 /bin
parent7d4e5ef0b288ea24c826961a7c1d9f502acf7e15 (diff)
Predictive GOP size for VP8 (not only H264.
Diffstat (limited to 'bin')
-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 \