Skip to content

Twitch plugin read timeout #3178

@bennyhillthebest

Description

@bennyhillthebest

Plugin Issue

  • This is a plugin issue and I have read the contribution guidelines.

Description

after a certain amount of time that the stream is opened the plugin is not able to download a new segment and the stream freezes

Reproduction steps / Explicit stream URLs to test

I'm on Debian Buster with Streamlink from backports (1.5.0+dfsg-1~bpo10+1)

  1. streamlink -p "mpv --no-cache" --twitch-disable-hosting --twitch-disable-ads --twitch-low-latency --hls-live-edge 1 --loglevel debug twitch.tv/pokelawls best (or twitch.tv/lirik)
  2. wait some time
  3. the stream freezes

Log output

[stream.hls][debug] Download of segment 523 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 525 to queue
[stream.hls][debug] Download of segment 524 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 526 to queue
[stream.hls][debug] Download of segment 525 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 527 to queue
[stream.hls][debug] Download of segment 526 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 528 to queue
[stream.hls][debug] Download of segment 527 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 529 to queue
[stream.hls][debug] Download of segment 528 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 530 to queue
[stream.hls][debug] Download of segment 529 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Download of segment 530 complete
[stream.hls][debug] Adding segment 531 to queue
[stream.hls][debug] Adding segment 532 to queue
[stream.hls][debug] Download of segment 531 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 533 to queue
[stream.hls][debug] Download of segment 532 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 534 to queue
[stream.hls][debug] Download of segment 533 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 535 to queue
[stream.hls][debug] Download of segment 534 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 536 to queue
[stream.hls][debug] Download of segment 535 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 537 to queue
[stream.hls][debug] Download of segment 536 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 538 to queue
[stream.hls][debug] Download of segment 537 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 539 to queue
[stream.hls][debug] Download of segment 538 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 540 to queue
[stream.hls][debug] Download of segment 539 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 541 to queue
[stream.hls][debug] Download of segment 540 complete
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 542 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 543 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 544 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 545 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 546 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 547 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 548 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 549 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 550 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 551 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 552 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 553 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 554 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 555 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 556 to queue
[stream.hls][debug] Adding segment 557 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 558 to queue
[stream.hls][debug] Adding segment 559 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 560 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 561 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 562 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 563 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 564 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 565 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 566 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 567 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 568 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 569 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 570 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 571 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 572 to queue
error: Error when reading from stream: Read timeout, exiting
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[cli][info] Stream ended
[cli][info] Closing currently open stream...
benny@debian:~$ 

Additional comments

I'm not sure if this problems relates to the ads problem that have come up recently. If it is the case i'm sorry and you can delete this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions