-
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
Some Videos will not play - IP ban and/or PO token requirement resulting in 403 error on some servers #1040
Comments
Not much that can be done about this at the moment. The changes that YouTube are making are still rolling out, will have to look into it further once things have settled down. In the meantime you can try the latest beta and see if there is any improvement: |
Thank you for the feedback! |
Was there any improvement using v7.2.0+beta.2? https://github.com/anxdpanic/plugin.video.youtube/releases/tag/v7.2.0%2Bbeta.2 |
Not really, I did get a couple of instances where the video would start with just sound on a green screen. |
Could you get another log showing playback failing completely and only the audio playing? I haven't been impacted by these changes yet so difficult to see exactly what is happening. |
Please see attached. Thank you |
Don't think it will make a difference but can you try this test version: https://github.com/MoojMidge/plugin.video.youtube/archive/refs/heads/master.zip |
I tried it with a couple of videos. |
- Not enabled by default
Surprisingly that appears to have partially worked, but causes issues with other streams. Updated again: |
Using last updated version, there are 3 videos which I tested that will no play at all. |
…ultiple BaseURLs in MPD manifest anxdpanic#527 anxdpanic#1040 - ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, allow ISA to try any available for playback
Looks like you are (un)lucky. Seems like you are affected by both recent YouTube changes that are rolling out currently. Another test version to try that does a combination of the two previous test versions. Not sure how well InputStream.Adaptive will handle this though. |
…ultiple BaseURLs in MPD manifest anxdpanic#527 anxdpanic#1040 - ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, allow ISA to try any available for playback
…ultiple BaseURLs in MPD manifest anxdpanic#527 anxdpanic#1040 - ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, allow ISA to try any available for playback
i tested the latest test version and i wanted to provide some feedback hope this helps, and thanks for your work |
Hello there, |
Yes, unfortunately InputStream.Adaptive does not implement the functionality required to recover from the error resulting from the blocked request and retry using one of the alternate urls provided. If both the audio and video streams are blocked then the video won't play. If only the video stream is blocked but not the audio then you get the glitchy playback. If only the audio stream is blocked but not the video then you get no audio. Which one of these occurs depends on whether you are getting IP blocked, or whether a PO token is required, or both. |
I see what you mean. From what you're saying, it sounds like there isn't a workaround for it, is that correct? |
Thanks again for all of your support. I too am having the same issue where the video starts to load for a couple of seconds and then gives up. Seems like the issue is only on newer videos. I tested the top 5 trending videos and all failed. Tested several older videos and they all still played. |
There will always be a way, but it may not be easy or practical for the end user. Any way forward will require time, which I don't have anymore. This was a low effort attempt. There are 3 more things to try, but I will likely only have time to try the first option:
Can you post a debug log of a video that doesn't play, and one that does? |
Hi again, thanks for taking the time to help on this. Please let me know if there is some way that I can financially support your effort as I am truly appreciative :-). I tested 3 or 4 videos that did not work at the bottom of the log file and following that I clicked on a couple wrestling videos that did work ok. Those should be the very last entries. |
- ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, use HTTPServer to try them all as a proxy to ISA
@f1ldg, @mcarni - can you try this test version, which implements a stream proxy in the addon: This will determine whether any of the alternate urls will work or not. @jryan15 - your log is not a debug so I can't see all the relevant details, but there are a couple of interesting issues that have been logged:
The thought is much appreciated. I don't require any financial support but you can certainly show your support by donating to Kodi if you like: https://kodi.tv/donate/ |
- ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, use HTTPServer to try them all as a proxy to ISA
@MoojMidge , first of all, thanks, this is really appreciated, being able to wathc youtube is kind of the heart of our kodi experience, we really appreciate your effort and the team's effort. i installed the latest versions and it shows some improvements. If there is anything i can do, please let me know, my coding skills are not the best (my son is much better than me with python ;) ), but i can try to help... thanks a lot M |
Good morning and happy new year! |
Hi again. I ran the powershell routine and re-ran the setup routine. When using the recommended values, it cycled through 13 attempts to connect the http server before saying it failed to connect. I am not sure what I need to open up in the firewall to allow the http server to connect. If you could kindly point me in a direction, that would be great! |
- ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, use HTTPServer to try them all as a proxy to ISA
Updated test version: I can't test any of this, so I can only make changes based on what is shown in your logs, but it does appear to be working. Don't know if it will continue to work though. Note as well that it will only work if MPEG-DASH is enabled and being used (the first option in the selection dialog when "Ask for quality" is enabled), so ensure that the Setup Wizard is run and at least the first two steps are completed. If you come across a video that doesn't work then try and get a log just for that video please.
Not sure what firewall you are using, but you need to enable connections or allow opening ports for Kodi on your local or private network. Unfortunately I am very pressed for time, so can't help much more than that. It is not a common problem, so you will need to do a bit of research to figure out what is going on with your system and how it has been configured. |
Just tested the latest test version after running the setup wizard. |
Yes, I have exactly the same problems. |
Same here, they only work at resolutions up to 1080p with MPEG-DASH disabled. |
As mentioned previously this workaround will only work when using MPEG-DASH. Use of any other playback option will simply result in the block being applied according to whatever criteria YouTube have determined. The issue that @f1ldg has is that the http server is not working correctly so MPEG-DASH playback will therefore fail. I dont know why this would occur and can't replicate it, but if you are having the same problem and want to see it fixed then provide a debug log so I can see what you may all have in common. |
- ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, use HTTPServer to try them all as a proxy to ISA
@f1ldg - can you try updated test version: Make sure to run the Setup Wizard too (at least the first step). |
@MoojMidge |
- ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, use HTTPServer to try them all as a proxy to ISA
These will likely never work properly if your IP is being blocked. As mentioned previously the workaround will only work if using MPEG-DASH, but this can't be used if the http server is not working. See if this works: https://github.com/MoojMidge/plugin.video.youtube/archive/refs/heads/master.zip |
@MoojMidge I then disabled the Youtube app and enabled it again. Log attached, many thanks!!! |
- ISA doesn't support Representations with multiple BaseURLs - Dont block adaptive formats for clients that may need PO tokens - Some urls for adaptive formats may be blocked even if client does need a PO token - As not all urls may be blocked, use HTTPServer to try them all as a proxy to ISA
- As headers are not matched this can lead to detection of Kodi being used as a client
Leaving aside the "Address already in use" issue, the problem appears to be that your device and internet connection are not fast enough to be proxying these 4k video streams. Bitrate is approaching 40 Mb/s for the video at times but your average download speed is around 30 Mb/s. Reading and writing that data to memory is also causing issues with your device not being able to keep up. Using new test version, try the following:
|
@MoojMidge I just tested my internet speed, and it's close to 100 Mb/s. Additionally, the same videos play flawlessly on the native YouTube app installed on a smart TV connected to the same network. As for the Vero 4K, it should be more than capable of handling these video streams. This leads me to believe the problem might be with Kodi itself. I'm seriously considering factory resetting the box and starting from scratch to see if that resolves the issue. What do you think? Thanks once again! |
Can you run a speed check from this actual device? The download speed reported by InputStream.Adaptive is capping out at well below that.
Normally, yes, but this workaround is now requiring your device to be doing extra work that wouldn't normally occur when playing the video normally. So while a lot of the work would have been offloaded and hardware accelerated by various parts of your device SoC, now there will be additional CPU bound and system memory bound operations required. Anyway see how you go with that latest test version and a 4k stream. Then if there are still issues try the steps I mentioned. The main thing I am trying to determine is whether this method is effective in resolving the blocks. If it is, then there are other ways that this could be implemented. |
Regarding the speed test, you're right. I just installed the Speed Tester add-on on the Vero 4K, and it shows a speed of only 40 Mb/s. I'll work on resolving that. I’ve also been testing your new YouTube version. Initially, I tried streaming in 4K, which worked but was glitchy—likely due to the internet speed (??) Next, I lowered the resolution to 1080p and enabled the "stream redirect" option. The result was almost flawless... However, I noticed that streams usually start without audio. To fix this, I scroll back 10 seconds while the video is playing, and the audio syncs correctly. Log attached, many thanks! |
I wouldn't use the The "Address already in use" issue can be avoided by disabling Apart from that the main issue in your log is simply that the download speed is too low for the 4k streams. The original problem I would now consider to be resolved. |
Brilliant, thank you very much!!!! Much appreciated! ;-) |
Context
Please provide any relevant information about your setup
Running on Vero 4K
Expected Behavior
I run a search in the Youtube app, some videos in the search results play instantly while other videos won't play at all.
I have attached log
Thank you in advance ;-)
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
kodi.log
Log
Please include a complete debug log.
Additional Information
Please provide any additional information that may be helpful.
The text was updated successfully, but these errors were encountered: