Youtube videos on VLC

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 05 Apr 2021 12:03

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!
Last edited by blacknoise on 05 Apr 2021 12:07, edited 1 time in total.

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: Youtube videos on VLC

Postby Hitchhiker » 05 Apr 2021 12:06

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/

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 05 Apr 2021 12:10

Maybe he's trying to play a playlist using a vlc youtube parser?
me?? but only completely unknowingly! what is a parser??

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 05 Apr 2021 12:14

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???)

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: Youtube videos on VLC

Postby Hitchhiker » 05 Apr 2021 12:15

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

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 05 Apr 2021 13:23

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...

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: Youtube videos on VLC

Postby Hitchhiker » 05 Apr 2021 16:34

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

Vampiros
Blank Cone
Blank Cone
Posts: 29
Joined: 01 Feb 2021 16:29
VLC version: 3.0.16
Operating System: Windows XP

Re: Youtube videos on VLC

Postby Vampiros » 05 Apr 2021 20:35

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:

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 06 Apr 2021 00:22

Why make things easy when you can make them difficult!
isnt it possible, to tell them, when there Galaxy drift away?

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: Youtube videos on VLC

Postby Hitchhiker » 06 Apr 2021 12:07

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.

Pinoco
New Cone
New Cone
Posts: 7
Joined: 22 Mar 2021 08:12

Re: Youtube videos on VLC

Postby Pinoco » 06 Apr 2021 13:34

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. :)

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 06 Apr 2021 13:43

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!

Stef_An
Blank Cone
Blank Cone
Posts: 38
Joined: 13 Apr 2018 23:50

Re: Youtube videos on VLC

Postby Stef_An » 23 Jun 2021 00:10

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.

Vampiros
Blank Cone
Blank Cone
Posts: 29
Joined: 01 Feb 2021 16:29
VLC version: 3.0.16
Operating System: Windows XP

Re: Youtube videos on VLC

Postby Vampiros » 23 Jun 2021 21:03

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!

Stef_An
Blank Cone
Blank Cone
Posts: 38
Joined: 13 Apr 2018 23:50

Re: Youtube videos on VLC

Postby Stef_An » 06 Jul 2021 14:34

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.

Vampiros
Blank Cone
Blank Cone
Posts: 29
Joined: 01 Feb 2021 16:29
VLC version: 3.0.16
Operating System: Windows XP

Re: Youtube videos on VLC

Postby Vampiros » 06 Jul 2021 22:22

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Youtube videos on VLC

Postby Rémi Denis-Courmont » 08 Jul 2021 17:20

You don't need a smartphone for 2FA in the first place. There are also "desktop" applications available.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Vampiros
Blank Cone
Blank Cone
Posts: 29
Joined: 01 Feb 2021 16:29
VLC version: 3.0.16
Operating System: Windows XP

Re: Youtube videos on VLC

Postby Vampiros » 08 Jul 2021 18:48

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.

Stef_An
Blank Cone
Blank Cone
Posts: 38
Joined: 13 Apr 2018 23:50

Re: Youtube videos on VLC

Postby Stef_An » 28 Jul 2021 23:59

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.

Vampiros
Blank Cone
Blank Cone
Posts: 29
Joined: 01 Feb 2021 16:29
VLC version: 3.0.16
Operating System: Windows XP

Re: Youtube videos on VLC

Postby Vampiros » 29 Jul 2021 19:26

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. :)

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 06 Aug 2021 18:19

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]

Hitchhiker
Big Cone-huna
Big Cone-huna
Posts: 2203
Joined: 29 Jun 2018 11:40
VLC version: 3.0.17.4
Operating System: Windows 8.1
Location: The Netherlands

Re: Youtube videos on VLC

Postby Hitchhiker » 07 Aug 2021 11:04

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.

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 07 Aug 2021 17:29

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!

jayR
Cone that earned his stripes
Cone that earned his stripes
Posts: 330
Joined: 21 Feb 2016 08:57

Re: Youtube videos on VLC

Postby jayR » 09 Aug 2021 10:06

If some goes wrong, try rebooting your system!

blacknoise
Blank Cone
Blank Cone
Posts: 55
Joined: 07 Jan 2017 11:22

Re: Youtube videos on VLC

Postby blacknoise » 09 Aug 2021 14:09

already done, but forgotten to mention here, pardon!


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 51 guests