You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduces MPV cache for streams by increasing playback speed. It meant to work with Twitch through Streamlink. I find this setup has a few hundred milliseconds lower latency than the Twitch web player.
Installation
Copy related folders to your MPV config folder ~/.config/mpv.
Script configuration
In ./script-opts/reduce_stream_cache.conf, you can adjust when to start and stop speeding up the playback. The default configuration is quite aggressive, and it works fine on a wired stable Internet connection. But if you or your streamer have an unstable Internet connection, consider increasing enable_faster_speed_over_cache_seconds to prevent often speed changes. Or turn off this script with a shortcut.
Make an MPV profile
MPV has its own low-latency profile. But the profile below has lower latency in my setup.
If you use the MPV profile that disables cache, you won't be able to seek the video stream. As a workaround, you can record the stream to /tmp/ and open the recorded video with a shortcut.