plugin.video.youtube icon indicating copy to clipboard operation
plugin.video.youtube copied to clipboard

unable to play back one specific stream

Open damnms opened this issue 8 months ago • 3 comments

Context

Please provide any relevant information about your setup

  • Add-on Version: latest, 7.0.2.2
  • Kodi Version: Amlogic-ng.arm-20.2-Nexus
  • Kodi GUI Language: de
  • Operating System: coreelec
  • Operating System Language: de

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.


damnms avatar Oct 29 '23 18:10 damnms

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:

  • Enable MPEG-DASH in the Youtube plugin settings
  • Disable HTTP2 in Kodi advanced settings https://kodi.wiki/view/Advancedsettings.xml#network

MoojMidge avatar Oct 29 '23 21:10 MoojMidge

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

damnms avatar Oct 30 '23 08:10 damnms

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.

MoojMidge avatar Oct 30 '23 09:10 MoojMidge