Page 1 of 1

VLC play Youtube link

Posted: 09 Oct 2019 04:53
by zhuhaixiong
I am newer to VLC and i want to use VLC to paly youtube online video,after i copy the link to VLC network stream a few time,an error occurs.i searched solutions to this issue,and replaced the youtube.luac file by [url]https://github.com/videolan/vlc/blob/master/share/lua/playlist/youtube.lua[/url], and try to open debug when play the youtube link,after a few time it failed and the log file shows:
main debug: `https://www.youtube.com/watch?v=2Xf5ooQIvo0' gives access `https' demux `any' path `www.youtube.com/watch?v=2Xf5ooQIvo0'

lua debug: Trying Lua scripts in C:\Users\leslie\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in D:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
main debug: looking for tls client module matching "any": 1 candidates
lua debug: skipping script (unmatched scope) D:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) D:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) D:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
lua debug: skipping script (unmatched scope) D:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
gnutls debug: using GnuTLS version 3.5.19
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\leslie\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in D:\Program Files\VideoLAN\VLC\lua\meta\fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\leslie\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in D:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script D:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
gnutls debug: loaded 57 trusted CAs from system
main debug: using tls client module "gnutls"
main debug: resolving www.youtube.com ...
qt debug: IM: Setting an input
gnutls debug: TLS handshake: Error in the push function.
gnutls debug: Winsock error 0
gnutls error: TLS handshake error: Error in the push function.
main error: TLS session handshake error
main error: connection error: Connection timed out
gnutls debug: TLS handshake: Error in the push function.
gnutls debug: Winsock error 0
gnutls error: TLS handshake error: Error in the push function.
main error: TLS session handshake error
main error: connection error: Connection timed out
gnutls debug: TLS handshake: Error in the push function.
gnutls debug: Winsock error 0
gnutls error: TLS handshake error: Error in the push function.
main error: TLS session handshake error
main error: connection error: Connection timed out
gnutls debug: TLS handshake: Error in the push function.
gnutls debug: Winsock error 0
gnutls error: TLS handshake error: Error in the push function.
main error: TLS session handshake error
main error: connection error: Connection timed out
gnutls debug: TLS handshake: Error in the push function.
gnutls debug: Winsock error 0
gnutls error: TLS handshake error: Error in the push function.
main error: TLS session handshake error
main error: connection error: Connection timed out
access error: HTTP connection failure
main debug: no access modules matched
main debug: dead input
qt debug: IM: Deleting the input
main debug: changing item without a request (current 0/1)
main debug: nothing to play
the error seems to be the network and i also turn off the firewall on my win10 machine,it still failed to play.anyone who met this mistake?
by the way i can play youtube video on chrome and potplayer

Re: VLC play Youtube link

Posted: 09 Oct 2019 10:32
by unidan
Hi, maybe youtube changed their privateAPI again.

We might need to write a youtube-dl plugin someday to have a more stable solution.

Re: VLC play Youtube link

Posted: 31 Oct 2019 19:22
by frannie
@unidan
maybe youtube changed their privateAPI again
Hardly. I got vlc 3.0.8 @ macOS playing YouTube without problems (after updating youtube.luac file), and the same vlc 3.0.8 on Lubuntu (also, after updating to the same youtube.luac) failing to do this.

Something's interesting going on here :)

Re: VLC play Youtube link

Posted: 01 Nov 2019 21:11
by jayR
On Windows, I don't have problems playing YouTube video. You may need to reinstall.

Re: VLC play Youtube link

Posted: 10 Nov 2019 04:17
by rfrazier
Hello,

I recently posted a 2 part procedure to get vlc to play youtube videos in hi def if available. It's a bit convoluted but maybe it will help.

Link to pt 1

https://forum.videolan.org/viewtopic.php?f=2&t=150085#p497567

Link to pt 2

https://forum.videolan.org/viewtopic.php?f=2&t=150085#p497568

Ron