Twitch.tv stream exits immediately
See original GitHub issueBug Report
- This is a bug report and I have read the contribution guidelines.
Description
Loading a Twitch.tv stream exits immediately.
Expected / Actual behavior
The stream to display in MPV
Reproduction steps / Explicit stream URLs to test
- Install streamlink from the Arch Community repo
yay streamlink
- Set config file to
player=mpv --cache=yes --demuxer-max-bytes=8092
- Attempt to stream something from twitch with
streamlink -l debug https://www.twitch.tv/bikinibodhi 720p60 --player-no-close
- MPV pops open for a split second then closes
Log output
[cli][debug] OS: Linux-5.8.1-arch1-1-x86_64-with-glibc2.2.5
[cli][debug] Python: 3.8.5
[cli][debug] Streamlink: 1.5.0
[cli][debug] Requests(2.24.0), Socks(1.7.1), Websocket(0.57.0)
[cli][info] Found matching plugin twitch for URL https://www.twitch.tv/bikinibodhi
[plugin.twitch][debug] Getting live HLS streams for bikinibodhi
[utils.l10n][debug] Language code: en_GB
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)
[cli][info] Opening stream: 720p60 (hls)
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 6405; Last Sequence: 6419
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 6417; End Sequence: None
[stream.hls][debug] Adding segment 6417 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 6418 to queue
[stream.hls][debug] Adding segment 6419 to queue
[stream.hls][debug] Download of segment 6417 complete
[cli][info] Starting player: mpv --cache=yes --demuxer-max-bytes=8092
[cli.output][debug] Opening subprocess: mpv --cache=yes --demuxer-max-bytes=8092 --title=https://www.twitch.tv/bikinibodhi -
[stream.hls][debug] Download of segment 6418 complete
[stream.hls][debug] Download of segment 6419 complete
[cli][debug] Writing stream to output
[cli][info] Player closed
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[cli][info] Stream ended
[cli][info] Closing currently open stream...
Additional comments, screenshots, etc.
Things I have tried
- Setting multithreaded
- Setting best quality
- Removing all config settings other than
player=mpv
- Using
--player-no-close
Happy to provide any further information that may help.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Twitch app immediately crashes - Reddit
Twitch app immediately crashes. This issue just started today. This happens on my iPhone 8 plus, my apple TV 4k, and my iPad...
Read more >Xbox Broadcasting and Troubleshooting - Twitch Help
With Twitch on Xbox, you can broadcast and watch your favorite games live. ... Make sure the Xbox connection exists on your Connections...
Read more >Basic Troubleshooting Tips - Twitch Help
This article are steps support may ask while troubleshooting issue with the Twitch Studio or Soundtrack by Twitch with you.
Read more >Privacy Notice - Twitch.tv
If you close your account, Twitch may retain certain information about you for the activities described in this Privacy Notice, or as permitted ......
Read more >About Account Enforcements and Chat Bans - Twitch Help
If your account is suspended, you may not access or use Twitch services, including: Watching streams; Broadcasting; Chatting; Creating other accounts; Appearing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, looks like that has now worked.
Worth noting that the recommendation for
--demuxer-max-bytes=8092
for MPV comes from the documentation for Streamlink, it may want updating.It recommends 8192 Bytes because that’s the initial size of Bytes (8 KiB) Streamlink tries to read before it outputs something.
The docs were upgraded earlier this year in https://github.com/streamlink/streamlink/pull/2771/files due to the MPV 0.30.0 release and the affected
--cache
parameter change: https://mpv.io/manual/stable/#options-cacheBut a demuxer that gets choked by a way too low read value is indeed a problem with the documentation. The values should have been updated as well, as they don’t translate directly from the old
--cache
parameter. Thanks for the hint.