Kodi Community Forum

Full Version: YouTube Plug-in Thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2018-08-19, 19:32)anxdpanic Wrote: [ -> ]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.

Thank you!
With new option external player does get a full link now and is able to play 4K.
@anxdpanic 

1.  Re: #824, here is my Youtube crash log for Kodi 17.6 on Win7 on old Acer 255E Atom laptop (needs software decoding on for Kodi 16 +):
https://pastebin.com/9vcu6GNg

Upgrade to 6.2.0 alpha1 solved the YouTube error, but still have slow start/ 2 sec+ freeze frame problemfor live TV regardless of DASH live ON or DASH OFF. Input.adaptive 2.0.19 is default set with max res Max/720 for general/secure. Video (prerecorded) seems fine at 720p (my TV set limit.)

Chrome Launcher plugin works with aeon nox main menu widget setup, btw. Loading is slow but the (recorded and live) channels play nice in 720p, without screen size adjustment. Of course Chrome Launcher doesn't close in Kodi- I have to start Task Manager in Windows to bring up the main Windows screen and then kill Chrome browser !

2.  Re: #824 No 1, can I just use your YouTube plugin as input to iVue2 TV Guide directly with direct url streams instead of going through your suggestions of MPC-BE/LAV external player for m3u lists for input to IPTV Simple Client?

Btw, looks like from @mv-- comment above, MPC-BE/LAV can connect to YouTube plugin over Kodi external player config? 
Can this be done for LibreElec or Android Box arm64 S905/X, as Wikipedia says MPC-BE is it for Windows x86 only? 

Cheers,
@siliconhippy 
If the error in the log is still an issue, you can try Settings - Maintenance - Delete access_manager.json (will require re-login)

Not really anything add-on side that can be done about the pausing / stuttering / freezing video(live or vod), it is improved in K18 though.

In general, if it's a Kodi add-on it's likely to support plugin urls (ie plugin://plugin.video.youtube/play/?video_id=C0NyvxTJGcQ), so they're likely usable in iVue/IPTV Simple.

What mv-- is mentioning is just the add-on giving a playback url that looks like 'https://www.youtube.com/watch?v=C0NyvxTJGcQ', Kodi then passes that to it's own player(won't work) or to a pre-configured external player(only works if the player supports playing 'https://www.youtube.com/watch?v=C0NyvxTJGcQ'). So with a configured external player that supports those urls, you should be able to use those urls in iVue/IPTV Simple and not use the YouTube add-on at all. External_players (wiki)

It should be possible on any OS depending on supported player availability. mpc-be is just the first I've seen, it looks like vlc also works for vods but has no configuration. You'll have to see what you can find for your OS's.

Also keep in mind I'm not really familiar with Chrome Launcher, iVue2 TV Guide, or IPTV Simple Client so you'll have to do some research there.
(2018-08-22, 17:37)anxdpanic Wrote: [ -> ]@siliconhippy 
If the error in the log is still an issue, you can try Settings - Maintenance - Delete access_manager.json (will require re-login)

Not really anything add-on side that can be done about the pausing / stuttering / freezing video(live or vod), it is improved in K18 though.

In general, if it's a Kodi add-on it's likely to support plugin urls (ie plugin://plugin.video.youtube/play/?video_id=C0NyvxTJGcQ), so they're likely usable in iVue/IPTV Simple.

What mv-- is mentioning is just the add-on giving a playback url that looks like 'https://www.youtube.com/watch?v=C0NyvxTJGcQ', Kodi then passes that to it's own player(won't work) or to a pre-configured external player(only works if the player supports playing 'https://www.youtube.com/watch?v=C0NyvxTJGcQ'). So with a configured external player that supports those urls, you should be able to use those urls in iVue/IPTV Simple and not use the YouTube add-on at all. External_players (wiki)

It should be possible on any OS depending on supported player availability. mpc-be is just the first I've seen, it looks like vlc also works for vods but has no configuration. You'll have to see what you can find for your OS's.

Also keep in mind I'm not really familiar with Chrome Launcher, iVue2 TV Guide, or IPTV Simple Client so you'll have to do some research there.

@anxdpanic

Thanks for all the details about original vs plugin YouTube strings ! Interestingly I reached the same info last night from KODI Wiki while googling.

https://kodi.wiki/view/Add-on:YouTube

A. So if I delete the json access manager file, will it recreate from scratch once I reboot, or I shouldn't worry about it?

B. It's a shame I cannot get back live YouTube video. Don't know what I screwed up earlier when it all worked nicely. So short of Kodi reinstall to 17.6 or 18 alpha3 no hope ?

I have summarized my issues here. Unluckily I have to grope before doing a complete reinstall 👺👺👺

https://www.reddit.com/r/IPTV/comments/9..._list_for/

C. So is there a way for external players to take in the original watch YouTube URL and configure to the plugin format?
@siliconhippy 
If you delete the access_manager.json it should be recreated the next time you run the add-on. Only do this if you're still getting the error, otherwise there is no point.

It's hard to say what is causing the issues with live streams, I am not seeing it locally. If it's a specific live stream only, provide the video id and I can check locally. Re-install may help but I'd guess it is unlikely unless it is setting related, so I'd start with double checking any settings that may be relevant.

As far as I know external players wouldn't work for that.
@anxdpanic

I likely misspoke about C. the input URL to external players.

You mean to say "regular" YouTube watch or other IPTV http URLs should normally work with external players as inputs?

This way the external player substitutes for YouTube or other plugins, without need for http(s) URL to strm plugin URL conversion?

Of course the external players can have their own necessary codecs including for HLS/DASH, as for xmlplayer:

http://xmtvplayer.com/use-xmtv-player-as...on-android
@anxdpanic

1. Success with both live and video streaming with v6.2.0 alpha2 !

I followed your earlier method after post#2, then kept input.adaptive to default (gen/secure Max/720p) and changed Plugin to enable DASH for both live and video.

2. But the plugin://plugin.video.youtube/play/?video_id=yS2V6jQBXwk channel entry doesn't work in my m3u list running in IPTV Simple Client, even though the other non Youtube IPTV http links work fine. Nothing happens when I click on its entry in player. Same for all other Youtube plugin converted STRM links.

Also tried https://youtu.be/yS2V6jQBXwk channel entry in same m3u list. it starts to process ( momentary blue circle) but stops.

A recorded video link like https://youtu.be/b1pa_Ru2P5g or its plugin version in m3u list, plugin://plugin.video.youtube/play/?video_id=b1pa_Ru2P5g has same behavior...momentary blue circle for first, no response for second.

Also the @IBRU method failed from here and I have no clue what @Lunatixz method would mean for the usual m3u multiple entry file:

https://www.reddit.com/r/kodi/comments/7...ube_links/

Any suggestions? Looks like the problem is integration with input.adaptive plugin to generate live HLS/DASH streams. Maybe Kodi 18 alpha* have better code?
The external player is usually given the same url as Kodi unless the new setting is enabled, then it is given a watch page url and the external player has to know how to play it.

There is an issue open for similar issues with playback from playlists(the other user was successful with strms though), strms themselves play fine outside a playlist, will do some more testing and try to address it for the next version.

There is no issue with inputstream.adaptive here, HLS live streams are handled by Kodi/ffmpeg (and are fixed in Kodi 18), inputstream.adaptive is only used for MPEG-DASH streams in our case. And yes, both Kodi and inputstream.adaptive have grown and improved in 18.
@anxdpanic

Really appreciate your volunteer efforts 😎😎

A. Which external player are you referring to? I tried using YouTube plugin to process YouTube page URLs to give me those live streams.

B. Interesting dichotomy to see input.adaptive supporting DASH while Kodi itself supporting HLS in Kodi 18.

C. So your next plugin version might solve my YouTube live streaming from m3u list problem?

D. Does YouTube only do HLS or also MPEG-DASH?

When I enabled DASH in your plugin live YouTube streaming was enabled. Do we still need HLS support as well?
Hello all and thanks @anxdpanic for your hard work.

A month or so ago I started getting an issue with seeks—the seek works video-wise but there's no audio for about 11 seconds. Is anyone seeing this behavior? I tried searching the thread but couldn't find anything.

I've seen this issue with both 6.1 and the latest 6.2 alpha 2.

The log has this: ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer

Thanks again,
liebezeit
@siliconhippy
A: Any external player.
B - D:  It's the same in Kodi 17. Live streams in the add-on are HLS by default, if Use MPEG-DASH and Use for live streams are enabled then MPEG-DASH is used for live streams.
C: I'll see what can be done about playing plugin://plugin.video.youtube/... urls from playlists for 6.2.0

@liebezeit 
Are you using Kodi 17 and MPEG-DASH? That's the only time I'd expect that and it's resolved in Kodi 18 version of inputstream.adaptive.
@siliconhippy I double checked and did some testing;
IPTV Simple Client playlist:
Code:
#EXTM3U
#EXTINF:-1, YouTube Test
plugin://plugin.video.youtube/play/?video_id=yS2V6jQBXwk
On Kodi 17 it doesn't not work, on Kodi 18 it does work. There is nothing add-on wise that can be done to fix it for Kodi 17.
Hi,

I get YouTube error with the latest 6.1.2 version. while 6.0.2 works fine.
I am on Kitkat (4.4) Android and SPMC 16.4.2.

Do you see any issues in my attached log file?

Link

Thanks in advance!
The log is 404.
Sorry, you can try now!