0

I'm currently building a Twitch desktop client and I'm trying to get as close as possible to match twitch's website latency. I'm currently about 5-7 seconds behind twitch. I have the following settings enabled in streamlink.

session = streamlink.Streamlink()
# enable low latency
session.set_option("twitch-low-latency", True)
session.set_option("hls-live-edge", 2)
session.set_option("hls-segment-stream-data", True)
session.set_option("hls-playlist-reload-time", "live-edge")
session.set_option("stream-segment-threads", 2)
session.set_option("player", "vlc")
session.set_option("player-args", "--network-caching=200 --live-caching=200 --sout-mux-caching=200")

I'm wondering if anyone more familiar with this can help me reduce the difference even more. Thanks.

References: https://streamlink.github.io/cli/plugins/twitch.html#low-latency-streaming

https://wiki.videolan.org/VLC_command-line_help

3V1LXD
  • 55
  • 1
  • 10

0 Answers0