Kodi Community Forum
Release YouTube - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Release YouTube (/showthread.php?tid=356934)



RE: YouTube - klendool - 2024-08-09

Hi All

I'm having some issues playing some videos for some reason. It started a few days ago, i was using version 7.0.7 - the UI would just show the spinner for ages then eventually fail with no error but the video would not play.
I updated to 7.0.9+beta.9 but that does not seem to have fixed things.\

I tried turning of inputstream.adaptive and that allowed one of the videos to play but not all affected videos are fixed by turning it off.

Here are the logs for a failed attempt to play https://www.youtube.com/watch?v=EZ8exp4TWhU with inputstream.adaptive enabled:

https://pastebin.com/hAra42AB

And a successful play, with inputstream.adaptive disabled:

https://pastebin.com/9FZt33Hw

Any ideas?

Jake


RE: YouTube - MoojMidge - 2024-08-10

(2024-08-06, 17:33)Alyyy Wrote: I can't install InputStream.Adaptive, whatever the version.

You already have installed InputStream.Adaptive, and enabling it is what has caused the difference in behaviour with the different streams that are available. Updating InputStream.Adaptive may improve the seeking, but probably not fully restore the ability to seek in the manner that you seeing previously.

Running the Setup Wizard and choosing the preset configuration that is recommended for your device will disable the use of InputStream.Adaptive with the YouTube plugin, but you will be stuck with very low quality streams because the streams that used to be available no longer exist.

Updating the plugin should allow better quality streams to be used.
 
(2024-08-09, 13:45)klendool Wrote: Any ideas?

Post a full debug log and enable component logging for libcURL https://kodi.wiki/view/Log_file/Easy#Enable_component-specific_logging
https://github.com/anxdpanic/plugin.video.youtube/issues/527


RE: YouTube - klendool - 2024-08-10

(2024-08-10, 04:12)MoojMidge Wrote:  
(2024-08-09, 13:45)klendool Wrote: Any ideas?

Post a full debug log and enable component logging for libcURL https://kodi.wiki/view/Log_file/Easy#Enable_component-specific_logging
https://github.com/anxdpanic/plugin.video.youtube/issues/527

Thanks heaps for the advice - here is the debug log:

https://pastebin.com/QHxh8cVg

The video in the log is far from the only one not playing

Edit: same log but https://paste.kodi.tv/hihifexola.kodi

Edit 2: OSMC, pi 4,


RE: YouTube - MoojMidge - 2024-08-11

(2024-08-10, 12:59)klendool Wrote: The video in the log is far from the only one not playing

Yes, different problem:
Quote:2024-08-10 22:44:26.016 T:15524 debug <general>: Curl::Debug - TEXT: Hostname rr5---sn-8vq54voxo1-53as.googlevideo.com was found in DNS cache
2024-08-10 22:44:26.017 T:15524 debug <general>: Curl::Debug - TEXT: Trying 203.118.141.80:443...
2024-08-10 22:44:26.415 T:15524 debug <general>: Curl::Debug - TEXT: Trying 2407:7000:cdcd:3::10:443...
2024-08-10 22:44:26.416 T:15524 debug <general>: Curl::Debug - TEXT: Immediate connect fail for 2407:7000:cdcd:3::10: Network is unreachable
2024-08-10 22:44:41.417 T:15524 debug <general>: Curl::Debug - TEXT: After 15000ms connect time, move on!
2024-08-10 22:44:41.417 T:15524 debug <general>: Curl::Debug - TEXT: connect to 203.118.141.80 port 443 failed: Connection timed out
2024-08-10 22:44:41.418 T:15524 debug <general>: Curl::Debug - TEXT: Failed to connect to rr5---sn-8vq54voxo1-53as.googlevideo.com port 443: Connection timed out
2024-08-10 22:44:41.418 T:15524 debug <general>: Curl::Debug - TEXT: Closing connection 1
2024-08-10 22:44:41.418 T:15524 error <general>: CCurlFile::CReadState::FillBuffer - (0xcb085920) Failed: Timeout was reached(28)

Looks like you have a few network issues:
  1. Your system seems to be identifying that it has an IPv6 network connection, but potentially no actual routes to reach an IPv6 address, so it tries the the IPv6 address and fails immediately.
  2. When falling back to IPv4, your device still can't connect to the local YouTube server and the attempt times out after 15s.

Alternatively the local YouTube server may be having problems. This does happen sometimes, and there is a backup server that is normally attempted when this occurs when using official clients. Unfortunately Kodi / InputStream.Adaptive / FFmpeg does not currently have the functionality to fallback to using a different BaseURL in the MPEG-DASH manifest if the first one fails.

The video link in your log are no longer valid, but next time it happens you can open your log and look for something like the following:

Code:
CCurlFile::Open - <LONG_GOOGLE_VIDEO_URL> Failed with code 0:

Where LONG_GOOGLE_VIDEO_URL will be a url with a hostname similar to rr5---sn-8vq54voxo1-53as.googlevideo.com

Copy the complete url and paste it into a browser and see if it plays.


RE: YouTube - klendool - 2024-08-11

(2024-08-11, 03:25)MoojMidge Wrote:
(2024-08-10, 12:59)klendool Wrote: The video in the log is far from the only one not playing

Yes, different problem:
Quote:2024-08-10 22:44:26.016 T:15524 debug <general>: Curl:Big Grinebug - TEXT: Hostname rr5---sn-8vq54voxo1-53as.googlevideo.com was found in DNS cache
2024-08-10 22:44:26.017 T:15524 debug <general>: Curl:Big Grinebug - TEXT: Trying 203.118.141.80:443...
2024-08-10 22:44:26.415 T:15524 debug <general>: Curl:Big Grinebug - TEXT: Trying 2407:7000:cdcd:3::10:443...
2024-08-10 22:44:26.416 T:15524 debug <general>: Curl:Big Grinebug - TEXT: Immediate connect fail for 2407:7000:cdcd:3::10: Network is unreachable
2024-08-10 22:44:41.417 T:15524 debug <general>: Curl:Big Grinebug - TEXT: After 15000ms connect time, move on!
2024-08-10 22:44:41.417 T:15524 debug <general>: Curl:Big Grinebug - TEXT: connect to 203.118.141.80 port 443 failed: Connection timed out
2024-08-10 22:44:41.418 T:15524 debug <general>: Curl:Big Grinebug - TEXT: Failed to connect to rr5---sn-8vq54voxo1-53as.googlevideo.com port 443: Connection timed out
2024-08-10 22:44:41.418 T:15524 debug <general>: Curl:Big Grinebug - TEXT: Closing connection 1
2024-08-10 22:44:41.418 T:15524 error <general>: CCurlFile::CReadState::FillBuffer - (0xcb085920) Failed: Timeout was reached(28)

Looks like you have a few network issues:
  1. Your system seems to be identifying that it has an IPv6 network connection, but potentially no actual routes to reach an IPv6 address, so it tries the the IPv6 address and fails immediately.
  2. When falling back to IPv4, your device still can't connect to the local YouTube server and the attempt times out after 15s.

Alternatively the local YouTube server may be having problems. This does happen sometimes, and there is a backup server that is normally attempted when this occurs when using official clients. Unfortunately Kodi / InputStream.Adaptive / FFmpeg does not currently have the functionality to fallback to using a different BaseURL in the MPEG-DASH manifest if the first one fails.

The video link in your log are no longer valid, but next time it happens you can open your log and look for something like the following:

Code:
CCurlFile::Open - <LONG_GOOGLE_VIDEO_URL> Failed with code 0:

Where LONG_GOOGLE_VIDEO_URL will be a url with a hostname similar to rr5---sn-8vq54voxo1-53as.googlevideo.com

Copy the complete url and paste it into a browser and see if it plays.

I'll do that.

The videos play fine on my phone, and in my browser, and with yt-dlp, so it's almost certainly the local YouTube server that's having issues rather than my network.

Still, I might turn off IPv6 on my network - my router does not support wan IPv6 and maybe that's getting on the way. It could be something local. Nothing has changed on my lan recently though....


RE: YouTube - Alyyy - 2024-08-11

(2024-08-10, 04:12)MoojMidge Wrote:
(2024-08-06, 17:33)Alyyy Wrote: I can't install InputStream.Adaptive, whatever the version.

You already have installed InputStream.Adaptive, and enabling it is what has caused the difference in behaviour with the different streams that are available. Updating InputStream.Adaptive may improve the seeking, but probably not fully restore the ability to seek in the manner that you seeing previously.

Running the Setup Wizard and choosing the preset configuration that is recommended for your device will disable the use of InputStream.Adaptive with the YouTube plugin, but you will be stuck with very low quality streams because the streams that used to be available no longer exist.

Updating the plugin should allow better quality streams to be used.
Hi,

So I won't really have that much use for research any more, I'll have to look into another way of doing it.


RE: YouTube - devilledham - 2024-08-14

Is there any way I can get it to download English subtitles for every video that has them, without prompting me?

No matter what I choose in the Setup Wizard (except "none"), it always prompts me before playing each video.


RE: YouTube - jbrid - 2024-08-17

(2024-07-30, 20:44)jbrid Wrote: I am experiencing two issues that I am not sure are fixed in newer versions...

The 2 issues I was experiencing are fixed after upgrading to the new release, 7.0.9.

Thanks to the devs!!!


RE: YouTube Where does the plugin store the location value, and how can it be changed - daddmac - 2024-08-18

I setup the plugin and it has my location fixed.  I want to change my location, but the fields in the setup interface are input inhibited (not editable). 

TIA.


RE: YouTube - MoojMidge - 2024-08-18

(2024-08-11, 08:48)klendool Wrote: The videos play fine on my phone, and in my browser, and with yt-dlp, so it's almost certainly the local YouTube server that's having issues rather than my network.

It is possible that it is the server, but unlikely. The links in the original log you posted worked just fine for me when they were valid. The same server may not be used for different requests, thats why you would need to check using the exact same link, rather than making a new request with a different client.
 
(2024-08-11, 18:14)Alyyy Wrote: So I won't really have that much use for research any more, I'll have to look into another way of doing it.

The change in behaviour is because of settings you changed. If you dont like the result you just need to follow the instructions, previously provided, to change it back.
 
(2024-08-14, 15:34)devilledham Wrote: No matter what I choose in the Setup Wizard (except "none"), it always prompts me before playing each video.

This should not be possible. Post a debug log of this happening and it can be looked into.
 
(2024-08-18, 01:38)daddmac Wrote: I setup the plugin and it has my location fixed.  I want to change my location, but the fields in the setup interface are input inhibited (not editable). 

The location details can only be changed using the Setup Wizard. Just run it again. Skip any parts you don't want to (re-)configure, and just set your language / region / location again.


RE: YouTube - klendool - 2024-08-19

I am starting to suspect my router, its not that its broken or misconfigurated but I think its just plain too old - the software on it cannot be updated as hasn't done so since August 2018....

I've been meaning to replace it but been too busy - I have the router that my ISP provided in my shed so I might have a look at swapping it out and see if that makes any difference


RE: YouTube - Alyyy - 2024-08-20

(2024-08-18, 05:19)MoojMidge Wrote:  
(2024-08-11, 18:14)Alyyy Wrote: So I won't really have that much use for research any more, I'll have to look into another way of doing it.

The change in behaviour is because of settings you changed. If you dont like the result you just need to follow the instructions, previously provided, to change it back.
Yes, I don't know what else I can do after all these attempts.


RE: YouTube - DJ_Izumi - 2024-08-22

Is anyone else using this addon, with 'Local Playback History' enabled but also using MySQL shared between multiple clients?  I've run into a weird bug.  Each client seems to store it's own resume point, it's not reading immediately off the MySQL DB now even though it once did.  So I can be watching a long video on and off between clients and each seems to store and read it's own resume point from truly 'local' storage.  However it seems they're all updating the resume point in my MySQL DB because I can go to a client that has an 'out of date' resume point stored locally vs what another client put into the MySQL DB, select 'Reset Resume Position' and instead of resetting it to '0:00' it seems to only THEN pull the resume point from MySQL.  So I have to use 'Reset Resume Position' to resume where I left off on another client.

It def was not always like this.


RE: YouTube - kadeschs - 2024-08-23

I have the same setup and while I do this with my library, I don’t typically do this with YouTube videos. When I get the opportunity, I’ll check this out and report back.


RE: YouTube - daddmac - 2024-08-23

Thank you very much, I'll do that! 🙂