I understand your hesitance to just add a * 2 multiplier. I'm just curious where this freeze is coming from. I'm wondering if the sleeper is waiting to long to fetch a new segment?
When playing, I don't see any 404's or something, it just seems that streamlink is waiting to long to fetch a new segment?
[cli][debug] Pre-buffering 8192 bytes
[stream.dash][debug] video/mp4 segment 899: downloading (2023-10-13T18:57:16.000000Z / 2023-10-13T18:57:22.111918Z)
[stream.dash][debug] video/mp4 segment initialization: completed
[stream.dash][debug] audio/mp4 segment 899: downloading (2023-10-13T18:57:15.989333Z / 2023-10-13T18:57:22.116368Z)
[stream.dash][debug] audio/mp4 segment initialization: completed
[stream.dash][debug] audio/mp4 segment 900: downloading (2023-10-13T18:57:20.000000Z / 2023-10-13T18:57:22.203791Z)
[stream.dash][debug] audio/mp4 segment 899: completed
[stream.dash][debug] audio/mp4 segment 900: completed
[stream.dash][debug] video/mp4 segment 900: downloading (2023-10-13T18:57:20.000000Z / 2023-10-13T18:57:23.050972Z)
[stream.dash][debug] video/mp4 segment 899: completed
[cli][debug] Writing stream to output
[stream.dash][debug] video/mp4 segment 900: completed
[stream.dash.manifest][debug] Generating segment timeline for dynamic playlist: ('p0', None, 'V0')
[stream.dash][debug] Reloading manifest ('p0', None, 'V0')
[stream.dash.manifest][debug] Generating segment timeline for dynamic playlist: ('p0', None, 'A0')
[stream.dash][debug] Reloading manifest ('p0', None, 'A0')
# stream freezes
[stream.dash.manifest][debug] Generating segment timeline for dynamic playlist: ('p0', None, 'V0')
[stream.dash][debug] Reloading manifest ('p0', None, 'V0')
[stream.dash][debug] video/mp4 segment 899: downloading (2023-10-13T18:57:26.000000Z / 2023-10-13T18:57:31.516089Z)
[stream.dash.manifest][debug] Generating segment timeline for dynamic playlist: ('p0', None, 'A0')
[stream.dash][debug] Reloading manifest ('p0', None, 'A0')
[stream.dash][debug] audio/mp4 segment 899: downloading (2023-10-13T18:57:26.000000Z / 2023-10-13T18:57:31.522496Z)
[stream.dash][debug] audio/mp4 segment 899: completed
[stream.dash][debug] video/mp4 segment 899: completed
# stream continues
^C[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.segmented][debug] Closing worker thread
[stream.ffmpegmux][debug] Pipe copy complete: /tmp/streamlinkpipe-36766-1-5702
[stream.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Pipe copy complete: /tmp/streamlinkpipe-36766-2-5931
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
Interrupted! Exiting...
[cli][info] Closing currently open stream...
I'm really sure that I'm on the right branch. I'm building with python3 setup.py bdist_wheel and installing with pip install --fore-reinstall dist/streamlink-6.2.1+28.g495da28d.dirty-py3-none-any.whl. streamlink --version indicates streamlink 6.2.1+28.g495da28d.dirty. (dirty because I've modified the * 2).