about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-04T01·54+0100
committerVincent Ambo <tazjin@google.com>2020-04-04T01·54+0100
commit24151f06dd9ff653538d7fd9ec0399cb5e117b66 (patch)
tree53508f0e55e28ac8b3c468737e90ecb274b2715a
parent9caf09a2449e4af60c2f9de9a68020e780c2bebe (diff)
chore(fun/tvl): Increase framerate to 60fps & limit queue size r/619
The queue size setting will drop frames if the encoding starts to lag
behind, which should prevent delay from being introduced on the
serving side.

Maybe.
-rw-r--r--fun/tvl/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/fun/tvl/default.nix b/fun/tvl/default.nix
index 6dc5fa89a0c7..da7c00ce4be5 100644
--- a/fun/tvl/default.nix
+++ b/fun/tvl/default.nix
@@ -7,7 +7,8 @@ depot.third_party.writeShellScriptBin "start-tvl-stream" ''
        -init_hw_device cuda=0 -filter_hw_device 0 \
        -f x11grab \
        -video_size 1920x1080 \
-       -framerate 30 \
+       -framerate 60 \
+       -thread_queue_size 256 \
        -i :0.0+0,0 \
        -filter:v "format=nv12,hwupload,scale_npp=w=1280:h=720:interp_algo=lanczos" \
        -c:v h264_nvenc \