PotPlayer has been causing an error in streamlink for quite some time.
Until version 0.6 streamlink recovered from it and it was fine.
With version 0.6 streamlink exits after the error.
Here is the command line i use (works with any stream from twitch at least)
streamlink --player "D:\PotPlayer64\PotPlayerMini64.exe" --player-continuous-http --player-passthrough rtmp --retry-streams 1 --retry-open 99 --hds-segment-threads 2 --hls-segment-threads 2 --twitch-oauth-token xxxxxxxxxxxxxxx https://www.twitch.tv/aimbotcalvin best
Output with version 0.5
[cli][info] Found matching plugin twitch for URL https://www.twitch.tv/aimbotcalvin
[plugin.twitch][info] Attempting to authenticate using OAuth token
[plugin.twitch][info] Successfully logged in as xxxxxx
[cli][info] Available streams: 720p60_alt, audio_only, 160p (worst), 360p, 480p, 720p, 720p60 (best)
[cli][info] Starting player: D:\PotPlayer64\PotPlayerMini64.exe
[cli][info] Got HTTP request from PotPlayer
[cli][info] Opening stream: 720p60 (hls)
[cli][error] Error when writing to output: [WinError 10053] An established connection was aborted by the software in your host machine
[cli][info] Stream ended
[cli][info] Got HTTP request from WINAMP
[cli][info] Opening stream: 720p60 (hls)
Output with version 0.6
[cli][info] Found matching plugin twitch for URL https://www.twitch.tv/aimbotcalvin
[plugin.twitch][info] Attempting to authenticate using OAuth token
[plugin.twitch][info] Successfully logged in as xxxx
[cli][info] Available streams: 720p60_alt, audio_only, 160p (worst), 360p, 480p, 720p, 720p60 (best)
[cli][info] Starting player: D:\PotPlayer64\PotPlayerMini64.exe
[cli][info] Got HTTP request from PotPlayer
[cli][info] Opening stream: 720p60 (hls)
error: Error when writing to output: [WinError 10053] An established connection was aborted by the software in your host machine, exiting
[cli][info] Stream ended
[cli][info] Closing currently open stream...
Operating system and version: windows 10
Streamlink and Python version: ...
...
I would guess it comes from change https://github.com/streamlink/streamlink/commit/ca9b6f557d25573f89f141001c2c9887b0ef4a95
- console.logger.error("Error when writing to output: {0}", err)
+ console.exit("Error when writing to output: {0}, exiting", err)
btw thank you for this awesome tool !
Any decision on this? I'm stuck on version 0.5.0 because 0.6.0 and 0.7.0 both exhibit this behavior with PotPlayer.
@xamphear Definitely a bug that needs to be resolved we just haven't gotten around to it yet.
same problem.
Most helpful comment
@xamphear Definitely a bug that needs to be resolved we just haven't gotten around to it yet.