VLC - YouTube videos won't play anymore
Emily Wong
I would like to play youtube videos on VLC. I am newbie (one of mac os re, but can fallow instructions :) when i enter address on network stream nothing happens it is on the playlist but nothing happens it is not playing. I have a firewall if it helps :)
Problem solved thanks to your help!!
2 Answers
I assume you entered the URL correctly (no https but http, and only the v=... part, like )?
Open the Extras menu and click on Messages. Now click play again and see what message's there.
My guess is it's
lua error: Couldn't extract youtube video URL, please check for updates to this scriptVLC parses YouTube's HTML source code to look for the video, but sometimes, YouTube changes its way it outputs the HTML, so VLC is unable to find the video URL.
Possible workarounds
- Go to and enable html5 there to play the video in your browser without flash
- Install
minitubeand try to play the video there - Wait for an update of VLC (or update the lua script yourself - not so easy, see Updating the VLC YouTube parser)
- Install the package
youtube-dland download the video to your harddisk. It's a command line utility though
Updating the VLC YouTube parser
Update just the Lua script for YouTube parsing to the latest version from VLC:
Open the Terminal application and enter these commands:
Make sure curl is installed, we need this to download the new file
sudo apt-get install curlGet rid of the old, non-working scripts
sudo rm /usr/lib/vlc/lua/playlist/youtube.*Download the current ones (use the whole command line, yes, it's quite long):
sudo curl "" -o /usr/lib/vlc/lua/playlist/youtube.luaSee if it works.
12You can run the latest Lua script for extracting YouTube streams by downloading the appropriate file into your home directory. There's no need to delete or modify system-level files. This works just fine:
mkdir -p ~/.local/share/vlc/lua/playlist/
curl ' -o ~/.local/share/vlc/lua/playlist/youtube.luaor with wget:
mkdir -p ~/.local/share/vlc/lua/playlist/
wget -q -O - ' > ~/.local/share/vlc/lua/playlist/youtube.luaVLC will use local scripts instead of the system level Lua file here:
/usr/lib/x86_64-linux-gnu/vlc/lua/playlist/youtube.luacBy using a local file in your home directory, you don't have to worry about the file being overwritten when the VLC package is upgraded with apt upgrade or similar.
Relevant links:
1