streamlink / streamlink-twitch-gui

A multi platform Twitch.tv browser for Streamlink
https://streamlink.github.io/streamlink-twitch-gui/
MIT License
2.65k stars 200 forks source link

Audio stuttering while streaming #1000

Closed mattiasdrp closed 5 months ago

mattiasdrp commented 5 months ago

Checklist

Streamlink Twitch GUI version

v2.4.1

Streamlink version

6.1.0

Operating system, environment and configuration details

Windows 10 21H2

Description

Video is smooth but audio is continuously stuttering. I tried changing hls-live-edge and stream-segment-threads but nothing changed. I tried watching the stream with a low quality but same problem. You can hear how it sounds in this clip:

https://github.com/streamlink/streamlink-twitch-gui/assets/5543639/8606f769-e3e4-419e-9e75-f0dd9aa80a74

Debug log

No response

bastimeyer commented 5 months ago

Neither a Streamlink Twitch GUI issue, nor a Streamlink issue.

This is a rendering issue of your player while consuming Streamlink's output after a stream discontinuity, where decoding- and presentation-timestamps are messed up. Stream discontinuities are explicitly unsupported by Streamlink. I don't know about VLC, but MPV handles this well in most cases, and when not, you can simply clear its buffer by pressing enter (re-reading Streamlink's output).

mattiasdrp commented 5 months ago

Thanks for you answer and sorry for the noise, I'll try with MPV

bastimeyer commented 5 months ago

All good... btw: stream discontinuities = transitions when ads get embedded into the stream by Twitch