From 12b92a2a0c5b7586a14ce82f0487bf0967eba629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 3 Nov 2021 23:27:11 +0100 Subject: [PATCH] feat(emulator): added a bunch of flags to ffmpeg to reduce latency --- src/emulator.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/emulator.py b/src/emulator.py index 666833e..073b32e 100644 --- a/src/emulator.py +++ b/src/emulator.py @@ -52,7 +52,13 @@ stream = Popen( "-f", "flv", "-b:v", - "2M", + "1M", + "-fflags", + "nobuffer", + "-flags", + "low_delay", + "-strict", + "experimental", "rtmp://localhost:1935/live/test", ], stdin=PIPE,