-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffering when playing #211
Comments
Update the plugin to 6.8.18.alpha1 as it seems to work much better with the buffering |
I have the same. More and more videos show this behaviour. Have tried to reduce resolution, but even with 480 setting I still get buffering. Also, when stopping the video and restarting it, it takes several attempts before it finally decides to play normal. Some videos however take more than 5 times and that is too much for me. The logs show nothing that might explain what is going on. |
Same here. The issue seems to persist in 6.8.18.alpha1, at least with some videos. |
Buffering also in 6.8.18.alpha1 |
Happens in Linux too. Not always, occasionally. |
I use it on a PI 3b with OSMC but the buffering problem is getting worse and worser. Started couple of weeks ago. I guess it is something that Google did and it is related to the amount of ads that are suppose to be shown in front of the selected videos, especially when the video is new there is a time period (which varies per channel) where ads are non-skippable if viewed via other means, like the YT app on a tablet or phone. Older videos have this problem also, but one or two times stopping and starting the video solves the problem. |
interesting comment, but I haven't got any buffering issues when I watch YouTube using the Android Newpipe app (which bans ads) or on the computer using Firefox + uBlock Origin (which also bans ads). It seems to be really specific to Kodi/YouTube_addon/InputStream_adaptative. PS : I also got buffering issues on Raspberry Pi 4, Kodi 18.7, YouTube 6.8.17, InputStream Adaptative 2.4.4. Also the YouTube addon cannot allow more than 100MB (default is 70MB) of cache, which I think is pretty low. PS2 : I mostly play Youtube videos on Kodi using my phone+Newpipe > "play with kodi" option. So the URL sent to kodi is done via newpipe, maybe it has an influence... |
Thanks for the additional info. I also have no problems running adfree YT on my PC (using an modified etc\hosts file). But the buffering seems to be sort of random. Yesterday, I also had a 403 error (according to the log file of kodi) on a number of YT videos that are mainly music. Not sure if this is related. And then there are the videos that give the sad face when selected. That usually goes away after several hours. I still believe that has something to do with the non-skippable adds that Google wants to serve as hours later the video does play normal (or also has buffering issues, and you have to retry several times). (all using 6.8.18...) |
If @anxdpanic is reading this, can you please add the development version of the addon in your testing repo? It will help us who use the repo get the newest releases and do the testing early. Right now it hosts 6.8.16, which is older than the one in the main kodi repo. |
Still getting the buffering issue with |
Here is a workaround that works reliably around this issue (while waiting for a proper fix):
At the end of
In
Restart Kodi (or deactivate and activate the YouTube addon) for the changes to take effect. Now select "Play with Invidious" from the context menu to enjoy stutter-free instant playback. Does anyone know how to make "Play with Invidious" the default action when a video is clicked? I haven't investigated how Invidious generates the information that ends up in
but it seems it is golden. |
@probonopd Unfortunately, the workaround you posted doesn't work for me. Here is what gets logged:
As you can see, Invidious receives 403 HTTP errors. But why? |
Try |
@probonopd Thanks for the tip! But I am in Europe. Anyhow, I just checked the URL with my PC and it downloaded the file just fine, this one: https://invidious.snopyta.org/api/manifest/dash/id/tflC9c4KhFo |
OK, Invidious finally works. Both |
I am having the same playback issues as well and it's worse after the 19.2 kodi update. Here's my debug log trying to play a youtube video. |
So if you want to have "Play With Invidious" as the default action, while still supporting playing in the original way, then you'll have to change that line in item 1 to be something like:
And then add this new "playInvidious" route to your provider.py:
This is all untested btw, it usually takes a few tries to get it working right. Edit: fixed a typo. Thanks to christianhaitian for the tip. |
@anxdpanic |
I have the same issues since a few weeks after updating to Kodi v19. Maybe coincidence or just imagination, but I would say, that the buffering issue still occurs, but noticeably less often. Currently using Kodi v19.2 on Windows10 and v6.8.18.alpha2+matrix1. |
Looks like Google sometimes send to client broken URL with video stream. It is not problem related to your network and any Kodi buffers setup.
So can see curl statistics and it show that you download speed for this stream is low. But for working streams good. Also in url present interesting parameter: initcwndbps and if you got low value for this parameter you got troubles. I try to change it, but it's looks like signed and cannot be changed from our side. So may be we just got dead/broken links from google and need ask it again till moment when we got good initcwndbps value? |
Been testing "Play with Inviduous" (as described above) for a while now and did not encounter the buffering issues with it. |
I've just updated to alpha2. So far every video plays at first try, no buffering during playback so far either. |
Was using v6.8.17 with Kodi 19.1 on Ubuntu 20.04. Today tried: plugin.video.youtube-6.8.18.alpha2+matrix.1.zip so far its been night and day. No buffering issues. Thanks! |
not for me. playing on pi 3b+ and OSMC as OS. Going back to the previous installment. Now it is even worse! (that is: v6.8.18.alpha2+matrix1.) |
Installed alpha2 on my system and it appears to have fixed the issue. So far every video is playing without issue, though some videos will just stop playing if i press any key on the keyboard. Minor issue for smooth playback. |
Thanks a lot for posting this workaround. Working flawlessly on LibreELEC 9.2.8 (Kodi 18) on RPI 3B+ |
I can try it on 18 and report back, provided that someone makes it a zip ready for installation because the code is too complex for me and I will probably mess something. |
@pitsi good to hear. If you can wait a couple of days, I'd like to try modding the latest version of this plugin to add some scraping code, so it can stream through these Invidious proxies without the need for that external add-on. |
@pitsi after installing 6.8.18a2 did you download the 2 new files video_info.py & xbmc_items.py? (the download links are quoted in the post before yours). You need to edit that video_info.py. |
That explains a lot thank you. No, I have not made any changes after installing 6.8.18a2 (the days it was released). I will wait for a new release with the new code. Can someone that has the files already patched check the video I mentioned above? |
@pitsi yeah the same behaviour you've experienced happens when I try to play the video: I notice it still detects the video as a live stream even though the stream finished hours ago. I noticed the similar/same behaviour on a few live streams that are actually running right now, except every few seconds the play time is reset to 3:59:45 so it continues playing as long as the stream is running. Another live stream I tried started at 0 but said it was 4 hours long. UPDATE: That video is now being detected as VOD rather than live and it correctly plays now as kedarz points out below. |
I just installed alpha2 and it seems to have solved the issue for me. |
Patched 6.8.18a2 seems that the subtitles do not work. It means, no display subtitles. Does anyone have this issue ? |
For me too, but after several videos the problem returned. |
This seems random, on alpha2 at least. Everything worked fine for me for the past 2 days on the desktop, not a single buffered video. Today, every video is loading slowly and buffering. Alpha2 on my Shield TV still plays everything correctly. No problem with "play with invidious" patch from a couple posts earlier, this works each time. |
To all those who helped resolve this issue.....a BIG THANKS! Now.....every video loads 3 times as fast and the buffering is gone. In the past few days.....the add-on was unusable since every single video buffered for ages. Stopping and starting the video has no effect and didn't help like it used to a month ago. Thanks guys! |
Can someone can send me the zip file for Leia please ? My email is behind a captcha for obvious reasons. |
Please mention your setup (just kodi version and if mpeg-dash is enabled). For me, today it behaves like the rest of the videos on this channel, it does not start at all.
Don't ask me about script.module.urllib3. It is a dependency of neither plugin.video.youtube, nor inputstream.adaptive. |
Huge Thanks to the Folks who worked on the FIX so fast, and made the fix speed up the initial loading of video. YouTube add-on just got awesome after the patch. |
Many thanks! |
Thanks so much, modified alpha2 with the 2 files, and all is working perfectly. |
Hi Thanks, now working for me RPi2 and on RP3i., LireELEC 9.2.8 with Kodi 18.9. MPEG-DASH disabled. I couldn't figure out how to download the replacement files, I guess it's obvious once you know how. So I downloaded plugin.video.youtube-master.zip and installed that. Thanks for your hard work on fixing this issue. |
Alpha 2 has fixed all the buffer issues for me but thumbnails just show as the default red YouTube logo. |
Yep, alpha2 + 2 patched files work for me on latest OSMC. |
Coreelec 19.2 (Kodi 19.2) mpeg--dash enabled, quality video 720p |
Working for me. LibreELEC 10.0.0. TY, anxdpanic et al! |
Works also for me. |
Posted about the new alpha in the original bug thread: #163 (comment) |
@anxdpanic it was working just fine until yesterday (alpha2+patch), now after signing in twice I only get
gonna check the logs.. NVM, restarting kodi did the trick |
Just installed plugin.video.youtube-6.8.18.alpha3.zip this morning and it is working well. Great job guys ! 👍👍👍 |
Closing this as a duplicate of #163 Please post with any follow up issues with alpha3 and buffering there. |
Context
Please provide any relevant information about your setup
Expected Behavior
Normally playing without buffering
Current Behavior
Buffering at almost every played video in FHD or HD
Log
t.ly/9ItW
Additional Information
How about? It is already several months that there is this problem. I use the official YT app in FireStick, and no buffering.
The text was updated successfully, but these errors were encountered: