Page 1 of 1

Trouble playing SOME Youtube Videos

Posted: 16 Nov 2022 14:13
by arcomax
I am using VLC to play Youtube videos. Many Youtube videos play fine. Occasionally I encounter some videos which vlc cannot play smoothly without stuttering. I am running v3.0.17.4 (64 bit) however I have tried both the 32-bit version and the previous version of vlc (3.0.16) with the same results. I have tried many setting changes which are supposed to address the problem of playing videos smoothly on youtube without any difference. To isolate the problem here is one video which causes issues on vlc playback https://www.youtube.com/watch?v=-AvjkQtP_U8 . I have also tried these alternate URLs of the same video https://www.youtube.com/embed/-AvjkQtP_U8 and https://youtu.be/-AvjkQtP_U8. I have made the following settings changes: I have disabled hardware-accelerated decoding for the Input & Codec Settings, I have increased the file cacheing and network cacheing values to 1500 each. I have unchecked Cookies Forwarding for the HTTPS input for Action Modules. Other that that, the settings are the default. I am using a updated copy of youtube.lua. If I disable the video output in VLC settings the audio runs smoothly.

Can someone please try this video and see if they have similar results? Any help resolving this issue would be appreciated.

Here are the debugging messages when I run the video: https://pastebin.com/GWTnRqrB

Re: Trouble playing SOME Youtube Videos

Posted: 17 Nov 2022 09:33
by Lotesdelere
Youtube is throttling the bandwidth for third party programs, so it works more or less for resolutions up to 480p but not for HD:
https://forum.videolan.org/viewtopic.php?f=2&t=160641

Re: Trouble playing SOME Youtube Videos

Posted: 17 Nov 2022 11:42
by arcomax
Thanks for responding. Did you try this video and did it show the same symptoms for you as it did for me? For me on playback, the stutters ALWAYS happens consistently in the SAME spots in the video. In addition I have tried this video on other 3-party programs (NewPipe for Android) and it does not have the same playback issues. It is possible that the other app is not playing the video in the same resolution as vlc.

Re: Trouble playing SOME Youtube Videos

Posted: 18 Nov 2022 09:47
by Lotesdelere
the stutters ALWAYS happens consistently in the SAME spots in the video.

And where exactly ?

Please open Tools -> Messages (set Verbosity to 2) before you start the playback, and then paste the full resulting log here or on Pastebin.com or Justpaste.it if it's too long.

Re: Trouble playing SOME Youtube Videos

Posted: 18 Nov 2022 13:01
by arcomax
And where exactly ?
I can't tell you anymore because ALL youtube videos have stopped working for me. I'm not sure if it is because of setting changes I've made or something Youtube has done which requires an update to the youtube.lua script. From memory, the first stutter happens at 2s, there are additional stutters which happened at consistent times.
Please open Tools -> Messages (set Verbosity to 2) before you start the conversion, and then paste the full resulting log here or on Pastebin.com or Justpaste.it if it's too long.
Yes I anticipated this would be needed and so I added the log in my first post. Here it is again:
Here are the debugging messages when I run the video: https://pastebin.com/GWTnRqrB

Re: Trouble playing SOME Youtube Videos

Posted: 18 Nov 2022 15:18
by Lotesdelere
I can't tell you anymore because ALL youtube videos have stopped working for me.

Yes, same for me. That's what I got:

Code: Select all

lua debug: Detected new YouTube HTML code layout lua error: Couldn't extract youtube video URL, please check for updates to this script

I'm afraid they have the protection scheme once again so there is not much we can do but to wait for an updated LUA script or to use the YT-DLP workaround:
https://forum.videolan.org/viewtopic.ph ... 15#p495615

Re: Trouble playing SOME Youtube Videos

Posted: 18 Nov 2022 17:51
by arcomax
OK. I guess we'll hang tight and hope for an updated lua script. Thanks for checking.

Re: Trouble playing SOME Youtube Videos

Posted: 20 Nov 2022 08:46
by cpm1a+_
> I guess we'll hang tight and hope for an updated lua script.
here you are:
https://code.videolan.org/videolan/vlc/ ... line=false

Re: Trouble playing SOME Youtube Videos

Posted: 20 Nov 2022 11:28
by arcomax

Re: Trouble playing SOME Youtube Videos

Posted: 24 Nov 2022 08:01
by kymoh
> I guess we'll hang tight and hope for an updated lua script.
here you are:
https://code.videolan.org/videolan/vlc/ ... line=false
Thank you so much! it worked instantly! I've had the same problem and had been looking so far for a solution.

Re: Trouble playing SOME Youtube Videos

Posted: 30 Nov 2022 21:55
by silentsays
> I guess we'll hang tight and hope for an updated lua script.
here you are:
https://code.videolan.org/videolan/vlc/ ... line=false
doesn't work for me :(

Re: Trouble playing SOME Youtube Videos

Posted: 12 Dec 2022 22:49
by jimmyjak
I can confirm this works now (for the most part - one video didn't work?). Make sure you move old unused/backup luac files out of the playlist directory, don't just leave them in there.

Re: Trouble playing SOME Youtube Videos

Posted: 14 Dec 2022 18:27
by Lucas Zxc
> I guess we'll hang tight and hope for an updated lua script.
here you are:
https://code.videolan.org/videolan/vlc/ ... line=false
https://imgur.com/aSK43X5

that's after I put this Lua file that you talked about, I don't know if it is something I did or if this script doesn't work, but as it is in the image, it didn't work and on my VLC, youtube does not work

Re: Trouble playing SOME Youtube Videos

Posted: 25 Mar 2023 22:09
by Name1
> I guess we'll hang tight and hope for an updated lua script.
here you are:
https://code.videolan.org/videolan/vlc/ ... line=false
Thank you!!! I wonder why I had to manually replace it, you'd think it should be automatically replaced upon updating.

Re: Trouble playing SOME Youtube Videos

Posted: 13 Apr 2023 13:44
by Lucas Zxc
> I guess we'll hang tight and hope for an updated lua script.
here you are:
https://code.videolan.org/videolan/vlc/ ... line=false
Thank you!!! I wonder why I had to manually replace it, you'd think it should be automatically replaced upon updating.
I tried this one and it didn't work, still has the "Couldn't descramble YouTube throttling URL parameter" problem

Re: Trouble playing SOME Youtube Videos

Posted: 08 May 2023 10:57
by sanmool
youtube.lua redirect https://www.youtube.com/watch?v=-AvjkQtP_U8 to

Code: Select all

https://rr1---sn-a5msenll.googlevideo.com/videoplayback?expire=1683556432&ei=8LNYZNCRJISQkgbW8KSYDA&ip=172.89.154.184&id=o-AKycJzwS1UAunUmNNWTtp5YOJBZKHqrg2xmcsiZV9EcW&itag=18&source=youtube&requiressl=yes&mh=yY&mm=31%2C29&mn=sn-a5msenll%2Csn-a5mekn6l&ms=au%2Crdu&mv=m&mvi=1&pl=15&initcwndbps=2586250&vprv=1&svpuc=1&mime=video%2Fmp4&ns=cqLqVYSUWrxwVOxYM-oYDXEN&cnr=14&ratebypass=yes&dur=214.157&lmt=1659285881336177&mt=1683534548&fvip=3&fexp=24007246&c=WEB&txp=5318224&n=sJp2e-cvUJuZ-qGD-Vm&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgTqaJaIyyx40dzmnjD5eoJLHMCyJbnOcFFJJ3LA-QlhMCIDpSdIZQcT1EHT9q3gmewnkdM4poFUHS05AEpsb9iAOC&sig=AOq0QJ8wRAIgbJUkuGKuQ5mmSepLFul_kqTjadbxpi-d5y5lbtuXvQQCIFXiL1V2WResbzvWWCPUBcJ5FCjedpgUsnIBxnOt7ykT
Which streams 50kb/s

Other program redirect it to

Code: Select all

https://rr1---sn-a5msenll.googlevideo.com/videoplayback?expire=1683556610&ei=orRYZM-MCJnRkgai1YOoDA&ip=172.89.154.184&id=o-ANJzVzi-Hx5N2Gn--MWxtOQdoDWF9nKch0SlfC99s_94&itag=18&source=youtube&requiressl=yes&mh=yY&mm=31%2C29&mn=sn-a5msenll%2Csn-a5mekn6l&ms=au%2Crdu&mv=m&mvi=1&pl=15&initcwndbps=2587500&spc=qEK7Bz4fNgI26adadKQCxwuKXw_COPo&vprv=1&svpuc=1&mime=video%2Fmp4&cnr=14&ratebypass=yes&dur=214.157&lmt=1659285881336177&mt=1683534789&fvip=3&fexp=24007246&c=ANDROID&txp=5318224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgPiSj7JlV-iDn-y_c3yjwu1aOjsbdn3a5ay_SDSsWxEsCIGyTJ75JIO0TAZZi2ntShOOAyE5_mBTmOwZKlxDsllcd&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgedk-qyeSvvduu9qcGK9xfJiw63rpE7VD0xTF0lrUnfgCIQDsSiKlRJpFb5i-fCb-8s4wcGKXFUGhvQanvJ6pPK68JQ%3D%3D
Which streams 5Mb/s

It seems youtube.lua redirects slow links, Something seems needs to be modified on youtube.lua to redirect fast link

Re: Trouble playing SOME Youtube Videos

Posted: 07 Jun 2023 16:34
by apples_snaple