anxdpanic / plugin.video.youtube

Watch your favorite YouTube content on Kodi
https://ytaddon.panicked.xyz/forum
675 stars 111 forks source link

unable to play back one specific stream #527

Open damnms opened 10 months ago

damnms commented 10 months ago

Context

Please provide any relevant information about your setup


Expected Behavior

i open this video in the addon and it worked for about 25 minutes, now its crashing all the time when i resume or start that video again from beginning: https://www.youtube.com/watch?v=Vfd4-5soFAA


Current Behavior

the streem stalls and i get a fat error message in the log


Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. open the video in the addon

Log

Please include a complete debug log. kodi.log


Additional Information

Please provide any additional information that may be helpful.

the same video runs on my workstation perfectly fine. the coreelec and my workstation are connected by cable, so no wifi problem for sure. they are in the same zone etc.


MoojMidge commented 10 months ago

That's quite strange, but it isn't a problem with the Youtube plugin - your CoreELEC box is having network issues.

The log indicates that cURL timed out trying to open the video stream URL. The Youtube plugin only provides this URL to Kodi for playback, and the URL works fine (I can open the URL in your log without any issues).

You could try a few different things to see if it helps:

damnms commented 10 months ago

all other video playback perfectly fine, so its not only a network problem, at least imo, otherwise i would expect other videos to fail too. i will try your recommendations and see what happens

MoojMidge commented 10 months ago

all other video playback perfectly fine, so its not only a network problem, at least imo, otherwise i would expect other videos to fail too

This is not necessarily the case. Not only do different videos use different servers, but there are a number of reasons why connections to certains servers may not work properly. As an example I recently had an issue with my ISP where incorrect BGP routing resulted in routes to specific servers, in a specific geographic location, hopping back and forth around the world, resulting in high pings, timeouts, and packet loss.

That being said, I suspect your issue is a very specific issue, because I have the same device as you, also running CoreELEC, and something very similar happened to me.

It only happens in certain instances, when using libcurl on certain platforms, with certain servers that support HTTP2. For some as yet unknown reason, when connections to those servers are closed, libcurl sometimes tries to reuse a closed connection rather than open a new connection. There is more discussion about the issue here: https://github.com/xbmc/xbmc/issues/17047

If it is this issue, then the two suggestions I made will probably help. If not, then unfortunately I don't really have anything useful to add - your device is trying to connect to a working URL, but something specific to your network or internet connection causes it to timeout when trying to do so.

You can also try to get a proper debug log following the instructions here: https://kodi.wiki/view/Log_file/Easy Enable Verbose logging for the libcURL library in the component logging settings: https://kodi.wiki/view/Log_file/Easy#Enable_component-specific_logging This may provide more relevant details.