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 - Alyyy - 2024-11-23

Hi
Is it possible to change the playback speed like on the site ?


RE: YouTube - RManPT - 2024-11-23

(2024-11-23, 00:08)Alyyy Wrote: Hi
Is it possible to change the playback speed like on the site ?

Yes, when a video is playing and you activate the osd (I use yatse as a remote from my phone, so I just press the center button), the time bar and other controls show up, next to the pause and stop button there are the rewind and fast forward. When you click that the speed increases 2x each time. If you have a keyboard press "F" for fast forward and "R" for rewind. Probably you will need to adjust some audio setting so you can match the sound with the video.


RE: YouTube - Alyyy - 2024-11-23

(2024-11-23, 05:04)RManPT Wrote:
(2024-11-23, 00:08)Alyyy Wrote: Hi
Is it possible to change the playback speed like on the site ?

Yes, when a video is playing and you activate the osd (I use yatse as a remote from my phone, so I just press the center button), the time bar and other controls show up, next to the pause and stop button there are the rewind and fast forward. When you click that the speed increases 2x each time. If you have a keyboard press "F" for fast forward and "R" for rewind. Probably you will need to adjust some audio setting so you can match the sound with the video.
I don't have what you say. I specify that I use kodi on a raspberry pi. 
You have a picture maybe ?


RE: YouTube - jim_p - 2024-11-23

@doko-desuka
First and foremost, I would like you to check if I edited the function correctly.
 
Code:
        def _stream_sort(stream):
            if not stream:
                return (1,)
            isMP4 = ('mp4' in stream['mimeType'])
            return (
                - stream['height'] if isMP4 else stream['height'],
                - stream['fps'],
                - stream['hdr'],
                - stream['biasedBitrate'],
            ) if stream['mediaType'] == 'video' else (
                - isMP4,
                - stream['channels'],
                - stream['biasedBitrate'],
            )
The editing was done via nano, while connected to system running kodi via ssh and straight on the requested file. No unzipping and rezipping and no backup. I think this is enough to prove that I can also do the way you mentioned for the other addon.
Then I selected a video > right click (context menu) > ask for quality and got: "720p (HD) (mpd/avc1/mp4a@130), adaptive hls (hls)" and 2 audio qualities which are not important. Is that right? I think I am missing something here. 720p is the max resolution I have set for the addon to use.

@MoojMidge
Selecting hls from the resolution menu I mentioned above still gets 720p with no audio. All the above were done on python3 and v7.0.9.2. Mpeg dash and inputsteam adaptive are enabled in the addon settings, because if they were not, nothing would play.
As for 7.1.x on leia, can I post a bunch of screenshots to show you which menu entries, except the one for live, are broken or missing? 
Other than that, I can not access the bookmarks from the main menu of the addon. It pops this error about a missing attribute.
 
Code:
2024-11-23 15:49:28.970 T:139704635930368   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'float' object has no attribute 'get_name'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py", line 16, in <module>
                                                plugin_runner.run()
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin_runner.py", line 67, in run
                                                plugin.run(provider, context, focused=(current_uri == new_uri))
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py", line 185, in run
                                                result, options = provider.navigate(context)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 169, in navigate
                                                result = handler(provider=self, context=context, re_match=re_match)
                                              File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 1680, in on_bookmarks
                                                context, item_id, item.get_name()
                                            AttributeError: 'float' object has no attribute 'get_name'
                                            -->End of Python script error report<--
Deleting .kodi/userdata/addon_data/plugin.video.youtube/randomstringhere/bookmarks.sqlite makes it work again, but it is empty. Truth be told, I don't really care about that submenu because I keep all my youtube bookmarks as kodi bookmarks.


RE: YouTube - kadeschs - 2024-11-23

Versions 7.1.0.1 & 7.1.1.1+unofficial.1 produce an "UNKNOWN" error on KODI Matrix 19.5 when selecting any video item to play. Also randomly pops up a message about failing to play and check logs for more information, but no logs appear to get generated from error. There seems to be a continual pattern of this addon breaking about every couple of weeks or so and the KODI repository doesn't seem to be kept current by the developer. Constantly micromanaging this addon seems to still be hit or miss on having it work on any given day.


RE: YouTube - izprtxqkft - 2024-11-23

(2024-11-23, 21:51)kadeschs Wrote: There seems to be a continual pattern of this addon breaking about every couple of weeks or so and the KODI repository doesn't seem to be kept current by the developer. Constantly micromanaging this addon seems to still be hit or miss on having it work on any given day.

agreed, but, it's been like this for over 2 years (since i started trying to use it) so why bother reporting it like it's news?

some people have luck, some people are willing to spend the time and effort to keep it going and then some people just switch to a client outside of kodi

despite efforts of the developers who are maintaining this addon, youtube keeps changing things
- because they do not want you to avoid playing ads
- because that's the only thing paying for the entire platform
- and because of advertising syndication where they can push you to ad partners

this addon has to fake being a different client which is allowed by youtube, that in itself should tell you something, the fact that it has to pretend to Not be Kodi at all to work

-----

anyway, 19.5 is not supported any longer, i suggest
- comparing to v21 or newer
- divulging which platform is having the issue
- whether or not ISA is being used

i believe new issues are due to youtube switching to dash streams which require ISA to play, the version of ISA for 19.5 is not as good as for v21+ as it has received numerous fixes and updates since then

(ISA = inputstream adaptive)


RE: YouTube - Tchort - 2024-11-23

Hey there Smile

Is there no one else having Problems with like a lot of YouTube Videos only giving english Voice Lines, instead of playing in German as it‘s also my preferred langauge in kodi Settings?

My only workaround i could find out was to Playback the Video with choosing Quality - and then Choose the 360p Version, which is a pain to Watch Big Grin
It also says in in the Audio Settings that it is a english Voice line, but it‘s German then.
And yes there are no other Voice Lines i could choose from :/

I have this issue on the latest 7.1.1 Version and couldn‘t find any other person reporting it?

Maybe someone had this issue and have a Solution Smile

Thank You and much greetings Smile


RE: YouTube - contremaitre - 2024-11-23

I am using kodi 21 and youtube 7.1.1 and can't play a lot of video, anything I can do ? setting, different version ?


RE: YouTube - kadeschs - 2024-11-24

(2024-11-23, 23:36)contremaitre Wrote: I am using kodi 21 and youtube 7.1.1 and can't play a lot of video, anything I can do ? setting, different version ?

Thank you for this. I won’t bother updating from 19.5 then as suggested by others. Sounds like constantly checking here in hopes for a proper addon update to drop is the way to go.


RE: YouTube - kadeschs - 2024-11-24

I get what you’re saying. I commend you if you’ve been dealing with this for 2 years. I dealt with this many more years ago myself and eventually gave up trying back then. I’ve only recently tried using this addon again to see that it’s still plagued by the same type of troubles as it did before. I appreciate the developer still sticking with it after all these years and trying to keep it alive.


RE: YouTube - doko-desuka - 2024-11-24

(2024-11-23, 15:54)jim_p Wrote: @doko-desuka
First and foremost, I would like you to check if I edited the function correctly.
(...)
@jim_p It's almost perfect, you're just missing two lines at the beginning of the video properties, as shown in that post:
python:
        isMP4 = ('mp4' in stream['mimeType'])
        return (
            - isMP4, # <--- This.
            - stream['preferred_codec'], # <--- And this.
The first line was added to force MP4 streams to be at the top, and the second line is unmodified from the original add-on, it lets you prioritize codecs you're interested in by going to the add-on settings > MPD category.

In hindsight, that other add-on was a simple interface to youtube (it's in here) and it doesn't get updated.
Since MoojMidge keeps this add-on always up to date, it's fantastic and you should continue using this.


RE: YouTube - jim_p - 2024-11-24

@doko-desuka
I broke it! Big Grin
Here is what the function looks like now
 
Code:
        def _stream_sort(stream):
            if not stream:
                return (1,)
            isMP4 = ('mp4' in stream['mimeType'])
            return (
                - isMP4,
                - stream['preferred_codec'],
                - stream['height'] if isMP4 else stream['height'],
                - stream['fps'],
                - stream['hdr'],
                - stream['biasedBitrate'],
            ) if stream['mediaType'] == 'video' else (
                - isMP4,
                - stream['channels'],
                - stream['biasedBitrate'],
            )
and here is what the log says upon selecting a video to play.
https://pastebin.com/diixKb1D

If it is because the addon is still on 7.0.9.x, I will update it to 7.1.x later and try again.

---edit
Ok it worked after the update, thank you! While the video was playing, I went to video settings > video stream and it had the streams sorted by format, the h264 ones first and the vp9 ones below. Does this mean that it auto selects the first (highest quality) stream based on that list, so it will always be h264?


RE: YouTube - RManPT - 2024-11-24

(2024-11-23, 14:44)Alyyy Wrote:
(2024-11-23, 05:04)RManPT Wrote:
(2024-11-23, 00:08)Alyyy Wrote: Hi
Is it possible to change the playback speed like on the site ?

Yes, when a video is playing and you activate the osd (I use yatse as a remote from my phone, so I just press the center button), the time bar and other controls show up, next to the pause and stop button there are the rewind and fast forward. When you click that the speed increases 2x each time. If you have a keyboard press "F" for fast forward and "R" for rewind. Probably you will need to adjust some audio setting so you can match the sound with the video.
I don't have what you say. I specify that I use kodi on a raspberry pi. 
You have a picture maybe ?



I also use kodi on rpi, in my case with libreelec but would not matter, kodo is kodi. In the image you can see the button I used to increase 2x, the more you press it faster it goes

Image

Also:

Image

Using the clog button you can get to the "Play speed" option where you can change it by 0.1 (in/de)crements


RE: YouTube - kadeschs - 2024-11-24

Anyone getting v7.1.1.1 for Kodi v19+ playback to work or is this addon broken across the board?


RE: YouTube - Alyyy - 2024-11-24

(2024-11-24, 15:09)RManPT Wrote:
(2024-11-23, 14:44)Alyyy Wrote:
(2024-11-23, 05:04)RManPT Wrote: Yes, when a video is playing and you activate the osd (I use yatse as a remote from my phone, so I just press the center button), the time bar and other controls show up, next to the pause and stop button there are the rewind and fast forward. When you click that the speed increases 2x each time. If you have a keyboard press "F" for fast forward and "R" for rewind. Probably you will need to adjust some audio setting so you can match the sound with the video.
I don't have what you say. I specify that I use kodi on a raspberry pi. 
You have a picture maybe ?



I also use kodi on rpi, in my case with libreelec but would not matter, kodo is kodi. In the image you can see the button I used to increase 2x, the more you press it faster it goes

Image

Also:

Image

Using the clog button you can get to the "Play speed" option where you can change it by 0.1 (in/de)crements

Same, but I don't have these buttons. Does it depend on the skin ?


This forum uses Lukasz Tkacz MyBB addons.