Page 2 of 5

Re: Youtube videos on VLC

Posted: 05 Apr 2021 12:03
by blacknoise
Wrong filename. Should be "youtube.lua" (without quotes) and not "149909-playlist_youtube.lua"
rename this? into youtube.lua??

doesnt work either!

the other link i tried bevor in the browser, there it did work proper!


ps: a search function in this "Messages" (> Verbosity 2), etc would be very very helpful!

Re: Youtube videos on VLC

Posted: 05 Apr 2021 12:06
by Hitchhiker
lua warning: error running script C:\Program Files\VideoLAN\VLC\lua\playlist\149909-playlist_youtube.lua

Wrong filename. Should be "youtube.lua" (without quotes) and not "149909-playlist_youtube.lua".

Maybe he's trying to play a playlist using a vlc youtube parser? https://addons.videolan.org/p/1154080

I was reading an old tutorial about that yesterday evening: https://www.labnol.org/software/youtube ... yer/26829/

Re: Youtube videos on VLC

Posted: 05 Apr 2021 12:10
by blacknoise
Maybe he's trying to play a playlist using a vlc youtube parser?
me?? but only completely unknowingly! what is a parser??

Re: Youtube videos on VLC

Posted: 05 Apr 2021 12:14
by blacknoise
strange!! i de-installed 3.0.12 and installed it for new, now it works:

https://youtu.be/gpZslOr3ZRo?list=PLjPI ... 0kvN2AAn8n

this one runs proper!
(but how long???)

Re: Youtube videos on VLC

Posted: 05 Apr 2021 12:15
by Hitchhiker
Maybe he's trying to play a playlist using a vlc youtube parser?
me?? but only completely unknowingly! what is a parser??
https://en.wikipedia.org/wiki/Parsing#Parser

Re: Youtube videos on VLC

Posted: 05 Apr 2021 13:23
by blacknoise
thank u for the link, but it remains as like one of the seven seals...
Any idea, what it could be, that after new installation, it works proper for a while?
Sorry, i'm not an expert in code & sw-conception, i'm a user only...

Re: Youtube videos on VLC

Posted: 05 Apr 2021 16:34
by Hitchhiker
thank u for the link, but it remains as like one of the seven seals...
Any idea, what it could be, that after new installation, it works proper for a while?
Sorry, i'm not an expert in code & sw-conception, i'm a user only...

Files can become corrupt for any number of reasons and reinstalling an application reinstates a virgin version if you like which usually fixes the problem.

Love your sense of humour by the way :D

Re: Youtube videos on VLC

Posted: 05 Apr 2021 20:35
by Vampiros
The videolan site to file bugs to has changed and has moved to code.videolan.org. It's now become necessary to register there which requires 2FA. After creating username and p/w users are presented with a QR code. The problem here is that my phone doesn't support that so I can't complete the registration. Why make things easy when you can make them difficult!

I had the same problem, and was able to authenticate by installing the "desktop" Authy application (https://authy.com/download/) on a computer. You can then use the alphanumeric "code" from code.videolan.org instead of the QR code, but you have to create an account with Authy and it's quite cumbersome.

If you want to avoid the two-step authentification, you can create an account with GitLab.com (https://gitlab.com/users/sign_up) and use that account to log in to code.videolan.org. I ended up deleting my code.videolan.org account and using a GitLab.com account instead. Getting that done was even more cumbersome. I think it might have asked for a two-step authentification initially, but since then (which was yesterday) I have been able to log on to code.videolan.org without one.

Good luck! :wink:

Re: Youtube videos on VLC

Posted: 06 Apr 2021 00:22
by blacknoise
Why make things easy when you can make them difficult!
isnt it possible, to tell them, when there Galaxy drift away?

Re: Youtube videos on VLC

Posted: 06 Apr 2021 12:07
by Hitchhiker
The videolan site to file bugs to has changed and has moved to code.videolan.org. It's now become necessary to register there which requires 2FA. After creating username and p/w users are presented with a QR code. The problem here is that my phone doesn't support that so I can't complete the registration. Why make things easy when you can make them difficult!

I had the same problem, and was able to authenticate by installing the "desktop" Authy application (https://authy.com/download/) on a computer. You can then use the alphanumeric "code" from code.videolan.org instead of the QR code, but you have to create an account with Authy and it's quite cumbersome.

If you want to avoid the two-step authentification, you can create an account with GitLab.com (https://gitlab.com/users/sign_up) and use that account to log in to code.videolan.org. I ended up deleting my code.videolan.org account and using a GitLab.com account instead. Getting that done was even more cumbersome. I think it might have asked for a two-step authentification initially, but since then (which was yesterday) I have been able to log on to code.videolan.org without one.

Good luck! :wink:

Thanks for the tip! I'll give that a go later.

Re: Youtube videos on VLC

Posted: 06 Apr 2021 13:34
by Pinoco
A new youtube.luac file has just been released which resolves the youtube consent issue.

Copy the code from here:

Code: Select all

https://github.com/videolan/vlc/blob/master/share/lua/playlist/youtube.lua#L1

To create a new youtube.luac file follow my instructions here: https://forum.videolan.org/viewtopic.ph ... 26#p483226
The post dates from December 2018, but the link has been updated automatically to the current file which comprises of 633 lines of code.

Thank you Hitchhiker! Youtube videos are now working again. :)

Re: Youtube videos on VLC

Posted: 06 Apr 2021 13:43
by blacknoise
also from me a big big thank u! after re-installing 3.0.12 it works with your mentioned workaround.....
hope there will be soon a new version!

Re: Youtube videos on VLC

Posted: 23 Jun 2021 00:10
by Stef_An
I had the same problem, and was able to authenticate by installing the "desktop" Authy application (https://authy.com/download/) on a computer. You can then use the alphanumeric "code" from code.videolan.org instead of the QR code, but you have to create an account with Authy and it's quite cumbersome.

If you want to avoid the two-step authentification, you can create an account with GitLab.com (https://gitlab.com/users/sign_up) and use that account to log in to code.videolan.org. I ended up deleting my code.videolan.org account and using a GitLab.com account instead. Getting that done was even more cumbersome. I think it might have asked for a two-step authentification initially, but since then (which was yesterday) I have been able to log on to code.videolan.org without one.
I know, that this is a workaround, but it works: I successfully used oathtool in Linux to create a 6 digit PIN from the long code on the 2FA setup page. The whole article about it is here:

https://www.cyberciti.biz/faq/use-oatht ... ation-2fa/

At the end, all you need is a command like oathtool -b --totp 'N3V3R G0nn4 G1v3 Y0u Up' and it generates your PIN. The only problem - it works just for the current session. So after logoff, on the next logon, one have to repeat the PIN generation. But on the bright side: one don't have to install some extra software on the phone or somewhere else.

On Windows, WinAuth should do the trick.

Re: Youtube videos on VLC

Posted: 23 Jun 2021 21:03
by Vampiros
At the end, all you need is a command like oathtool -b --totp 'N3V3R G0nn4 G1v3 Y0u Up' and it generates your PIN. The only problem - it works just for the current session. So after logoff, on the next logon, one have to repeat the PIN generation. But on the bright side: one don't have to install some extra software on the phone or somewhere else.

On Windows, WinAuth should do the trick.

The very concept of "two-factor" authentication is to use a just-generated code or PIN every time you log on to make it harder for hackers to get access to your account. If you can't or won't install some software on your phone to do it, oathtool or WinAuth should enable you to do so using a computer. Thanks for the tips!

Re: Youtube videos on VLC

Posted: 06 Jul 2021 14:34
by Stef_An
The very concept of "two-factor" authentication is to use a just-generated code or PIN every time you log on to make it harder for hackers to get access to your account. If you can't or won't install some software on your phone to do it, oathtool or WinAuth should enable you to do so using a computer. Thanks for the tips!
Afterwards, I found this solution on the wiki.

So now one has 3 possibilities:
  1. As in the wiki, just save the long code from the right of the QR code and use it with oathtool to manually generate the PIN every time one needs it.
  2. Use some full-GUI solution like OTPClient on Linux or WinAuth on Windows or Linux (here with wine). One can create a local saved database and let the PIN be generated every time one needs it. There is no need to install some extra software on the PC or smartphone and sign-up for another account on another service. And the data is saved locally, not in some cloud. One has to, on the other side, setup such database on every device, where one likes to log in into the GitLab of the VLC.
  3. As a deviation from the both other scenarios: one just deactivates 2FA every time before one logs off on the GitLab. This way, next time after the log-in, one would be asked to set up the 2FA again and would be once again shown the long code to create a PIN. There is no need to save any information locally. One just uses some program, GUI or not, to generate the PIN as in the set-up step. But: don't forget to deactivate the 2FA, if you don't save the code(s)!
In any scenario: save the recovery codes, for the case you lose the code or need them otherwise. And: either save the code right to the QR code in some file/program database or on the paper, or don't forget to deactivate the 2FA before logout.

Re: Youtube videos on VLC

Posted: 06 Jul 2021 22:22
by Vampiros
Afterwards, I found this solution on the wiki.

A good find, at least they understand that 2FA is preventing some unsmartphonised people from contributing. As stated above, another solution is to create an account at https://gitlab.com/users/sign_up and then use that account to sign in. Gitlab.com does not currently require 2FA, so this avoids the problem completely. However, they may start requiring 2FA at some point in the future.

Re: Youtube videos on VLC

Posted: 08 Jul 2021 17:20
by RĂ©mi Denis-Courmont
You don't need a smartphone for 2FA in the first place. There are also "desktop" applications available.

Re: Youtube videos on VLC

Posted: 08 Jul 2021 18:48
by Vampiros
You don't need a smartphone for 2FA in the first place. There are also "desktop" applications available.

Yes, that is exactly what we have been discussing. The message on https://code.videolan.org informing the would-be contributor that 2FA is required lists mostly smartphone-only "apps", only hinting at the existence of "desktop" programs which one must go hunting for. Hence, the desire to provide solutions in order to facilitate the hunt.

Re: Youtube videos on VLC

Posted: 28 Jul 2021 23:59
by Stef_An
Yes, that is exactly what we have been discussing. The message on https://code.videolan.org informing the would-be contributor that 2FA is required lists mostly smartphone-only "apps", only hinting at the existence of "desktop" programs which one must go hunting for. Hence, the desire to provide solutions in order to facilitate the hunt.
This is mostly not the videolan fault. The whole help of the code is just provided by Gitlab. So they need to contact the Gitlab guys, so they would address this and extend the list with some desktop programs.

Re: Youtube videos on VLC

Posted: 29 Jul 2021 19:26
by Vampiros
This is mostly not the videolan fault. The whole help of the code is just provided by Gitlab. So they need to contact the Gitlab guys, so they would address this and extend the list with some desktop programs.

Thanks for the clarification! A good suggestion. :)

Re: Youtube videos on VLC

Posted: 06 Aug 2021 18:19
by blacknoise
sorry, but this problem occurs since today morning anew: suddenly VLC doesnt play any Youtube-videos anymore:
first couple times it came some report, that vlc could not open the url, then somewhat later, one see only a not-reacting vlc (only something like a short light up on the time line) VLC is 3.0.16

the old trick with "youtube.luac" does not help anymore!!!

DOEs something changed?
thanks in advance!

[cant attach no file]

Re: Youtube videos on VLC

Posted: 07 Aug 2021 11:04
by Hitchhiker
sorry, but this problem occurs since today morning anew: suddenly VLC doesnt play any Youtube-videos anymore:
first couple times it came some report, that vlc could not open the url, then somewhat later, one see only a not-reacting vlc (only something like a short light up on the time line) VLC is 3.0.16

the old trick with "youtube.luac" does not help anymore!!!

DOEs something changed?
thanks in advance!

[cant attach no file]

No problem here.

Image
(click to image)

Please post the link to the youtube video you want to watch.

Re: Youtube videos on VLC

Posted: 07 Aug 2021 17:29
by blacknoise
sorry, thats really strange: today, tried it once again, and now, it works again! absolutely no idea, what this was yesterday... and no changes are made!
it seems to be a false alarme, sorry for that!

Re: Youtube videos on VLC

Posted: 09 Aug 2021 10:06
by jayR
If some goes wrong, try rebooting your system!

Re: Youtube videos on VLC

Posted: 09 Aug 2021 14:09
by blacknoise
already done, but forgotten to mention here, pardon!