Page 1 of 1

VLC won't stream from Youtube

Posted: 23 Mar 2021 11:33
by OonaMistwalker
Hello. Up until a few days ago I could save Youtube videos to my hard drive by pasting the video address into the network stream, then getting the media location from the Tools menu, pasting that into a browser and downloading the video.
However that stopped working last night and now I get the exact problem this original poster gets:

https://forum.videolan.org/viewtopic.ph ... 13#p499581

Reading through it the thread I realize it seems rather outdated. The 22nd post mentions a video. But I can't get a Youtube video to appear in the Playlist like in the video. This only started happening last night.

Earlier posts mention finding and replacing a youtube.luac file but i'm not sure where to find it or exactly how to do that. I'm not even sure if that advice is outdated. I'm willing to learn, though!

I would be very grateful for advice, because I'm downloading instructional videos on nursing to play back when I can't access the internet.

Re: VLC won't stream from Youtube

Posted: 23 Mar 2021 12:42
by pinoobz
Hello

I have the same issue here.
I would precise that.
I tried on windows 7 and 10.

- i tried with last version of VLC + lua file > fail
- tried with previous versions ( 3.0, 2.2.6, etc...) + different lua files > fail
- i tried to rename lua in luac > fail
- tried some custom versions of the code i fous here and there > fail
- i tried to change the dkjason file > fail

i also tried this:
1) delete the file "youtube.luac" in [Vlc directory]/lua/playlist directory (ex: c:Program FilesVideoLANVLCluaplaylistyoutube.luac)
2) get the latest version of thr "youtube" script from here:
https://raw.githubusercontent.com/video ... outube.lua
3) place the file in the directory [Vlc directory]/lua/playlist (where "youtube.luac" was) > also fail

i kinda tried everything around the net ...

https://www.maketecheasier.com/play-you ... ylist-vlc/
https://addons.videolan.org/p/1154080/
https://www.wikihow.com/Watch-an-Entire ... ist-in-VLC
and so on...

NOTHING WORKS
I can watch a video from youtube but not a playlist ... nothing opens...

Maybe someone that have a working version could share a zip version of his folder ?

Re: VLC won't stream from Youtube

Posted: 23 Mar 2021 13:13
by pinoobz
i just also tried this
installed vlc 3.0.8

* This was for Windows10 Pro 64 bit Version 1903
* VLC 3.0.8 downloaded and installed on 2019-11-08 into C:\Program Files\VideoLAN\VLC
* vlc-4.0.0-20200128-0835-dev-win64.zip from
http://nightlies.videolan.org/build/win64

those who have the 32 bit version of VLC installed in C:\Program Files (x86)\VideoLAN\VLC
will want to get the 32 bit version of youtube.luac included in the nightly build:
* vlc-4.0.0-20200128-0249-dev-win32.zip from
* http://nightlies.videolan.org/build/win32


i tried with 32 bit and 64 bit versions and both failed

Re: VLC won't stream from Youtube

Posted: 23 Mar 2021 20:08
by Hitchhiker
Instructions to create a youtube.luac file: https://forum.videolan.org/viewtopic.ph ... 26#p483226
You need to make sure you include all 620 lines of code. The last update took place on November 12 last year.

Noteworthy: "lua" is a scripting language. ".luac" is a file created using the lua scripting language. Placing a file called youtube.lua in the vlc playlist directory will do zilch. It has to be called youtube.luac.

If you're not running the latest version of vlc which is 3.0.12 download it from here: https://www.videolan.org/

If you're still experiencing problems please post the URL to the video so that we can check it out here.

Re: VLC won't stream from Youtube

Posted: 23 Mar 2021 23:19
by pinoobz
thanks for your answer !

So i tried exactly what you said
clean uninstal of vlc
installed version 3.0.12
transfered youtube.luac file (from your link) and replaced the original youtube.luac and ...
it's worse ^^ i can't even read a single video

so with all the methods i tried i managed to launch single videos but not to launch playlists
with your method i cant read neither videos nor playlists ^^ and i have a "vlc stop responding" crash message...
It's not depending on the video url ( they all don't work)

maybe it's because i use a windows 7 ?
Maybe my computer need some other packages to make it work with your solution?

Re: VLC won't stream from Youtube

Posted: 24 Mar 2021 01:35
by pinoobz
after many hours of researsh i finaly found out !!!
The solution is right here (thanks a lot to pegasus !)
i hope it will help many people ^^

get the lua script here
https://gist.github.com/p3g4asus/597050 ... 3fe6545a4f
you also need
JSON.lua (http://regex.info/code/JSON.lua)
and youtube-dl.exe (https://youtube-dl.org/latest)

place the 3 files in the lua/playlist folder

and it works !
i can load a playlist with 960 tracks with no issues !

Re: VLC won't stream from Youtube

Posted: 24 Mar 2021 09:39
by OonaMistwalker
Thank you, Hitchhiker and pinoobz, for your responses.

Hitchhiker, an example of what I'm trying to save is here:
https://www.youtube.com/watch?v=zMi3A0suSMI

I followed pinoobz's tip and copied the lua script from here:
https://gist.github.com/p3g4asus/597050 ... 3fe6545a4f
pasted it into Notepad and saved it as a .luac.
I then downloaded the JSON.lua file and the youtube-dl.exe app.

All of these went into my lua/playlist folder. I can now see Dr. Campbell's video in my playlist, but it won't play. Where have I gone wrong?

Re: VLC won't stream from Youtube

Posted: 24 Mar 2021 10:03
by Hitchhiker
Thank you, Hitchhiker and pinoobz, for your responses.

Hitchhiker, an example of what I'm trying to save is here:
https://www.youtube.com/watch?v=zMi3A0suSMI

I followed pinoobz's tip and copied the lua script from here:
https://gist.github.com/p3g4asus/597050 ... 3fe6545a4f
pasted it into Notepad and saved it as a .luac.
I then downloaded the JSON.lua file and the youtube-dl.exe app.

All of these went into my lua/playlist folder. I can now see Dr. Campbell's video in my playlist, but it won't play. Where have I gone wrong?

You're welcome to try alternative solutions to your problem, but by the same token you need to direct your questions to the site or individual who provided them rather than here.

In any event Dr. Campbell's video plays on my system without any third party scripts. Here's a pix of it.

Image
(click to enlarge)

Re: VLC won't stream from Youtube

Posted: 25 Mar 2021 11:56
by OonaMistwalker
Have I offended you somehow, Hitchhiker? I truly didn't mean to. I work in healthcare and I've been working overtime with no time off since March 2020. Unfortunately, in this state, your post didn't make sense to me.
It directed me to instructions on how to create a .luac file, but didn't specify that this particular one was the one I needed. You said the last update was November 12. The post you directed me to was dated 01 Dec 2018
and the file THAT post directed me to was dated 11 Nov 2021, a day before last update. You said I would need all 620 lines of code, but the file I was directed to has only 598 lines of code.
I'm muddled enough, therefore, to have thought something was mildly haywire somewhere.

However, I followed your instructions exactly tonight and they worked. Dr. Campbell's videos do play now. Thank you very much for your help and your patience with me. In fact, thank you for all you do.

Re: VLC won't stream from Youtube

Posted: 26 Sep 2022 18:28
by raphal_beguin
Hello i've try your tips but it doesn't seem to work, i'm on Windows 10x64 Family 21H1
VLC 3.0.17.4 Vetinari

Image

i made a quick screencast https://youtu.be/M33By7ww7XU

what i have missing?

Re: VLC won't stream from Youtube

Posted: 26 Sep 2022 19:45
by RĂ©mi Denis-Courmont

Re: VLC won't stream from Youtube

Posted: 27 Sep 2022 13:13
by raphal_beguin
Ok thank you