Kodi Community Forum
YouTube Plug-in Thread - 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: YouTube Plug-in Thread (/showthread.php?tid=353278)



YouTube Plug-in Thread - jcwillia1 - 2018-08-19

(2018-08-15, 13:05)anxdpanic Wrote: @mv-- Not currently, what would be the use case?

@cjdexter It looks like something went wrong with a couple add-ons, I would try reinstalling these from zip;
https://mirrors.kodi.tv/addons/krypton/script.module.urllib3/script.module.urllib3-1.22.zip
https://mirrors.kodi.tv/addons/krypton/script.module.requests/script.module.requests-2.18.4.zip
https://github.com/jdf76/plugin.video.youtube/releases/download/6.0.2/plugin.video.youtube-6.0.2.zip

@TarPaulin Browse Channels returns empty unless signed in, so it's been hidden unless signed in.

@spyder007 The beta shows the max supported stream for dash, so 1080p is definitely supported on that video so it's a matter of InputStream Adaptive settings. What settings have you tried for that?

@jcwillia1 'two applications' is just the double login, when you go to the youtube.com/activate each time it shows a different application that you are allowing. Will need a debug_log (wiki) to know what's happening though.


Not sure how to dump this to a file.

ImageImage


RE: YouTube Plug-in Thread - WeirdH - 2018-08-19

(2018-08-17, 21:03)WeirdH Wrote: Hi,  I'm using Kodi 18 Alpha 3 on Windows 7, with Youtube 6.1.0beta2 installed. I queue videos into a playlist from my phone using Yatse, but when I try to skip two videos in the currently playing list, Kodi exits with a runtime error (like this). The log suggests it has something to do with the Youtube plugin (it also doesn't happen when I queue and play movies from my NAS). It  doesn't seem to matter if I have mpeg-dash enabled or not; I also deleted all the stuff through 'maintenance options'. I can reproduce the issue without fail.

Debug log here. What could be the problem? Thanks in advance.

EDIT:
1. I deleted 6.1.0 and installed 6.0.2 from repository, but it acts the same.
2. when skipping videos from OSD, the problem doesn't occur, as the GUI waits to load the next video before allowing me to skip again: issue can only be replicated from skipping twice in a row from my remote (command 'next_track').

Is this even a Youtube plugin problem? Looking for any and all insight. Thanks.


RE: YouTube Plug-in Thread - anxdpanic - 2018-08-19

@WeirdH 
Can't tell exactly what the error is, I suspect the add-on accessing the same file at the same time or similar. 
That said, I'm not sure that is the expected behavior between osd and json-rpc, the crash definitely isn't expected though. Would post in General Support - Windows with details and log as well.

@siliconhippy 
I'm not sure what you are asking. 
Dash is required for live streams in Kodi < 18. 
HLS live streams honor the quality settings in the add-on.
Adjusting based on network conditions is a future feature for inpustream.adaptive, I don't believe it has been implemented yet.
If you're wanting to resolve streams yourself by using tools like youtube-dl, there is also youtube_resolver.py included in the add-on to resolve links and you can choose the stream you want.
I have no experience with Dailymotion or Vimeo so I couldn't say.


@jcwillia1 Without debugging enabled there is no useful information. see debug_log (wiki) which also includes instructions to upload logs from Kodi.


RE: YouTube Plug-in Thread - anxdpanic - 2018-08-19

I've updated post #2 with 6.1.0, and 6.2.0~alpha1

@mv-- This adds what you were asking for. Just to note as well, I had to download LAV Filters and add them to MPC-BE to play live streams.
@crea This improves playback start a bit.


RE: YouTube Plug-in Thread - komplex - 2018-08-19

If i enable MPEG-DASH videos don't play at all but live streams up to 2160p play fine, if i disable MPEG-DASH for videos they will play but at a 720p max. I'm guessing my HTTP Server settings are wrong? This is what i have
Image

And this is InputStream settings
Image


RE: YouTube Plug-in Thread - anxdpanic - 2018-08-19

@komplex The settings look fine, if you haven't already try restarting with Settings -> MPEG-DASH -> Use for videos enabled. Other than that I would need a debug_log (wiki) to see where things are failing.


RE: YouTube Plug-in Thread - komplex - 2018-08-19

Debug here https://paste.ee/r/io98f

I think this might be why from the log
Quote:ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (http://127.0.0.1:50152/st5OBtPfVcA.mpd)
I can see the file in here /storage/.kodi/temp/plugin.video.youtube so not sure why it can't open it


RE: YouTube Plug-in Thread - anxdpanic - 2018-08-19

@komplex 
The 403 error to http://127.0.0.1:50152/st5OBtPfVcA.mpd should only happen when the connecting IP is not whitelisted.
Can try clearing the whitelist, or Choose Settings - HTTP Server - Check my IP, and add that address to the whitelist you may also have to change that to your listen address as well


RE: YouTube Plug-in Thread - komplex - 2018-08-19

Set listen IP and whitelist IP the same (127.0.0.1) and tried again but nothing plays and from the log i still see this
Quote:19:23:20.862 T:2978472752 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
19:23:20.862 T:2978472752 ERROR: CCurlFile::Open failed with code 403 for http://127.0.0.1:50152/st5OBtPfVcA.mpd:
19:23:20.862 T:2978472752 ERROR: AddOnLog: InputStream Adaptive: Cannot download http://127.0.0.1:50152/st5OBtPfVcA.mpd
19:23:20.862 T:2978472752 ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (http://127.0.0.1:50152/st5OBtPfVcA.mpd)
19:23:20.862 T:2978472752 DEBUG: AddOnLog: InputStream Adaptive: Session::~Session()

Tried using 0.0.0.0 and the boxes actual IP and still get the error

EDIT: So i tried it on Windows and i get the same exact error


RE: YouTube Plug-in Thread - anxdpanic - 2018-08-19

@komplex
I think I found the cause of the issue, I overlooked a couple instances of a changed setting id. I've updated the add-on with a fix.

Post #2 updated with 6.1.1 and 6.2.0~alpha2


RE: YouTube Plug-in Thread - komplex - 2018-08-19

@anxdpanic Works perfectly now, thank you


RE: YouTube Plug-in Thread - siliconhippy - 2018-08-20

++++++++
@siliconhippy 
I'm not sure what you are asking. 
Dash is required for live streams in Kodi < 18. 
HLS live streams honor the quality settings in the add-on.
Adjusting based on network conditions is a future feature for inpustream.adaptive, I don't believe it has been implemented yet.
If you're wanting to resolve streams yourself by using tools like youtube-dl, there is also youtube_resolver.py included in the add-on to resolve links and you can choose the stream you want.
I have no experience with Dailymotion or Vimeo so I couldn't say.
+++++++++

@anxdpanic

1. So you are saying that if I just copy the YouTube live TV URLs as displayed into a m3u list, this will run fine in a Kodi player like IPTV Simple Client?

2. What is the latest update from Addons for Kodi 17.6?
My problem last night was that I already had 6.2.0 alpha installed on Kodi 17.6 but it "upgraded" back to 6.1.1 stable when I pushed the update button.
Now it gives me YouTube error (some python script error from log) and I cannot go back to 6.2alpha (which was slow and stopped channel after 2 sec but no YouTube errors) after several reboots of PC and KODI.

So what can I try? Are input.adaptive and YouTube 6.1.1 default settings for Kodi 17.6 ok or do I need different settings for YouTube play upto 720p?

3. What is the update situation with Kodi 18alpha3 (latest?), and does it require DASH (or is it included in your YouTube plugin without need for input.adaptive)?


RE: YouTube Plug-in Thread - siliconhippy - 2018-08-20

(2018-08-19, 19:24)anxdpanic Wrote: @siliconhippy 
I'm not sure what you are asking. 
Dash is required for live streams in Kodi < 18. 
HLS live streams honor the quality settings in the add-on.
Adjusting based on network conditions is a future feature for inpustream.adaptive, I don't believe it has been implemented yet.
If you're wanting to resolve streams yourself by using tools like youtube-dl, there is also youtube_resolver.py included in the add-on to resolve links and you can choose the stream you want.
I have no experience with Dailymotion or Vimeo so I couldn't say

@anxdpanic

Here is what I mean by Youtube URL vs HLS stream in an m3u:

https://www.reddit.com/r/IPTV/comments/447dr1/youtube_247_livestream_as_m3u/


RE: YouTube Plug-in Thread - anxdpanic - 2018-08-20

@siliconhippy
I think I understand now. 

1. No - The exception to this is if you're using an external player that supports those types of links (ie. MPC-BE with LAV Filters)
2. 6.0.2 is the latest on the repo atm. In post #2 both versions work on 17.6. Without a debug_log (wiki) I couldn't say what is going wrong with the alpha for you.
3. You can install/enable DASH with inputstream.adaptive if you want same as now, though live streams work without dash in Kodi 18.

The add-on's default (no dash) works for videos for up to 720p other than that they require dash enabled and configured. In 6.1.1+ you can enable dash in the add-on and only use it for live streams(since they won't work without) if you don't want to use dash for videos.

For something like IPTV Simple Client I'd imagine plugin urls or strms with plugin urls should work. Post #785 may also be of interest to you. This will use the YouTube plugin and settings for playback.


RE: YouTube Plug-in Thread - siliconhippy - 2018-08-20

(2018-08-20, 17:48)anxdpanic Wrote: @siliconhippy
I think I understand now. 

1. No - The exception to this is if you're using an external player that supports those types of links (ie. MPC-BE with LAV Filters)
2. 6.0.2 is the latest on the repo atm. In post #2 both versions work on 17.6. Without a debug_log (wiki) I couldn't say what is going wrong with the alpha for you.
3. You can install/enable DASH with inputstream.adaptive if you want same as now, though live streams work without dash in Kodi 18.

The add-on's default (no dash) works for videos for up to 720p other than that they require dash enabled and configured. In 6.1.1+ you can enable dash in the add-on and only use it for live streams(since they won't work without) if you don't want to use dash for videos.

For something like IPTV Simple Client I'd imagine plugin urls or strms with plugin urls should work. Post #785 may also be of interest to you. This will use the YouTube plugin and settings for playback.

@anxdpanic

Thanks for details.
Any plugin/add-on for #1?
Is this the same as the #785 example with strm files in ftp server to stream from?