Page 1 of 1

vlc does not play youtube videos

Posted: 01 Apr 2021 18:07
by Ferreira
Hello

For a long time I used VLC to play instructional ( railway modelling) youtube videos.
Suddenly today the 1 -April -2021 my VLC player stopped working and I can not play even a small video like this one for instance https://www.youtube.com/watch?v=bG8saJ_GZpQ
I am very disapointed with this situation as VLC was of great help to me in order to learn the many techniques of modelling.
I installed the latest version of VLC tried several suggestions that I saw in the web but nothing works.
I think its something related with the chrome web browser because I get a message error (Refused to display 'https://accounts.google.com/' in a frame because it set 'X-Frame-Options' to 'deny'.) when I press the f12 but I can not be sure. Thanks in advance for any help that someone can send. in spite that I think that this might be a quite difficult situation to solve.

Best Regards

Ferreira
P. S. can someone tell me how to attach a picture to a post? Thanks.

Re: vlc does not play youtube videos

Posted: 01 Apr 2021 19:19
by mederi

Re: vlc does not play youtube videos

Posted: 01 Apr 2021 19:43
by Hitchhiker
There's a workaround here: https://forum.videolan.org/viewtopic.ph ... 71#p515971

If you live in the Netherlands you can use the existing URL in the code field by just replacing the link in the video with your own. That's because the link contains Geo Location data.

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 01:07
by Ferreira
Hello
Thank you very very much for the persons who tried to help me! I am a regular VLC user so I did not understood very well the explanation that Hitchhiker send; I am located in Portugal. The solution presented by mederi was for me also quite difficult to follow, but thanks anyway. I can see that another user Vincerooney is having an equal problem with VLC. Does this means that it is a problem with the latest version of VLC?
I am a bit confused now because I do not know if it is a problem of VLC or if it is a problem related with the configuration of my computers.
I managed to create a log and I will be very gratefull ( I don't mind to pay some € if someone can give me the right solution for this problem).
I will try to make a post with th VLC message log.

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 01:15
by Ferreira
VLC message log PART ONE 1
main debug: processing request item: watch?v=JD7W-UDFm-E, node: Lista de reprodução, skip: 0
main debug: rebuilding array of current - root Lista de reprodução
main debug: rebuild done - 2 items, index 1
main debug: starting playback of new item
main debug: resyncing on watch?v=JD7W-UDFm-E
main debug: watch?v=JD7W-UDFm-E is at 1
main debug: creating new input thread
main debug: Creating an input for 'watch?v=JD7W-UDFm-E'
main debug: requesting art for new input thread
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\minte\AppData\Roaming\vlc\lua\meta\fetcher
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path: C:\Users\minte\AppData\Local\Temp
main debug: `https://www.youtube.com/watch?v=JD7W-UDFm-E' gives access `https' demux `any' path `www.youtube.com/watch?v=JD7W-UDFm-E'
main debug: creating demux: access='https' demux='any' location='www.youtube.com/watch?v=JD7W-UDFm-E' file='\\www.youtube.com\watch'
main debug: looking for access_demux module matching "https": 15 candidates
main debug: no access_demux modules matched
main debug: creating access: https://www.youtube.com/watch?v=JD7W-UDFm-E
main debug: (path: \\www.youtube.com\watch)
main debug: looking for access module matching "https": 27 candidates
main debug: looking for tls client module matching "any": 1 candidates
gnutls debug: using GnuTLS version 3.6.15
gnutls debug: loaded 101 trusted CAs from system
main debug: using tls client module "gnutls"
main debug: resolving www.youtube.com ...
gnutls debug: TLS handshake: Resource temporarily unavailable, try again.
gnutls debug: TLS handshake: Success.
http debug: out SETTINGS (0x04) frame of 30 bytes, flags 0x00, global
http debug: out HEADERS (0x01) frame of 200 bytes, flags 0x05, stream 1
http debug: in SETTINGS (0x04) frame of 18 bytes, flags 0x00, global
http debug: setting: Concurrent streams (0x0003): 100
http debug: setting: Initial window size (0x0004): 1048576
http debug: setting: Header list size (0x0006): 16384
http debug: out SETTINGS (0x04) frame of 0 bytes, flags 0x01, global
http debug: in WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global
http debug: in SETTINGS (0x04) frame of 0 bytes, flags 0x01, global
http debug: in HEADERS (0x01) frame of 449 bytes, flags 0x04, stream 1
http debug: stream 1 14 headers:
http debug: :status: "302"
http debug: content-type: "application/binary"
http debug: x-content-type-options: "nosniff"
http debug: cache-control: "no-cache, no-store, max-age=0, must-revalidate"
http debug: pragma: "no-cache"
http debug: expires: "Mon, 01 Jan 1990 00:00:00 GMT"
http debug: date: "Thu, 01 Apr 2021 21:57:37 GMT"
http debug: location: "https://consent.youtube.com/m?continue= ... t-PT&src=1"
http debug: x-frame-options: "SAMEORIGIN"
http debug: strict-transport-security: "max-age=31536000"
http debug: server: "ESF"
http debug: content-length: "0"
http debug: x-xss-protection: "0"
http debug: alt-svc: "h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
http debug: in DATA (0x00) frame of 0 bytes, flags 0x01, stream 1
http debug: out (priority) WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global
http debug: stream 1 closed by peer
http debug: in PING (0x06) frame of 8 bytes, flags 0x00, global
http debug: out (priority) PING (0x06) frame of 8 bytes, flags 0x01, global
http error: local stream 1 error: Cancellation (0x8)
http debug: out RST_STREAM (0x03) frame of 4 bytes, flags 0x00, stream 1
http debug: local shutdown
http debug: out GOAWAY (0x07) frame of 8 bytes, flags 0x00, global
main debug: no access modules matched
main debug: redirecting to: https://consent.youtube.com/m?continue= ... t-PT&src=1
main debug: creating access: https://consent.youtube.com/m?continue= ... t-PT&src=1
main debug: (path: \\consent.youtube.com\m)
main debug: looking for access module matching "https": 27 candidates
main debug: looking for tls client module matching "any": 1 candidates
gnutls debug: using GnuTLS version 3.6.15
gnutls debug: loaded 101 trusted CAs from system
main debug: using tls client module "gnutls"
main debug: resolving consent.youtube.com ...
gnutls debug: TLS handshake: Resource temporarily unavailable, try again.
gnutls debug: TLS handshake: Success.
http debug: out SETTINGS (0x04) frame of 30 bytes, flags 0x00, global
http debug: out HEADERS (0x01) frame of 295 bytes, flags 0x05, stream 1
http debug: in SETTINGS (0x04) frame of 18 bytes, flags 0x00, global
http debug: setting: Concurrent streams (0x0003): 100
http debug: setting: Initial window size (0x0004): 1048576
http debug: setting: Header list size (0x0006): 16384
http debug: out SETTINGS (0x04) frame of 0 bytes, flags 0x01, global
http debug: in WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global
http debug: in SETTINGS (0x04) frame of 0 bytes, flags 0x01, global
http debug: in HEADERS (0x01) frame of 620 bytes, flags 0x04, stream 1
http debug: stream 1 16 headers:
http debug: :status: "302"

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 01:19
by Ferreira
VLC Message Log Part Two 2
http debug: content-type: "application/binary"
http debug: x-content-type-options: "nosniff"
http debug: cache-control: "no-cache, no-store, max-age=0, must-revalidate"
http debug: pragma: "no-cache"

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 01:21
by Ferreira
VLC log part three 3
http debug: expires: "Mon, 01 Jan 1990 00:00:00 GMT"
http debug: date: "Thu, 01 Apr 2021 21:57:37 GMT"
http debug: location: "https://consent.youtube.com/ml?continue ... 3172&src=1"
http debug: content-security-policy: "script-src 'nonce-vFy5phn19w9aUT+cNyJFkA' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /_/ConsentUi/cspreport;worker-src 'self'"
http debug: cross-origin-resource-policy: "same-site"
http debug: server: "ESF"
http debug: content-length: "0"
http debug: x-xss-protection: "0"
http debug: x-frame-options: "SAMEORIGIN"
http debug: x-content-type-options: "nosniff"
http debug: alt-svc: "h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
http debug: in DATA (0x00) frame of 0 bytes, flags 0x01, stream 1
http debug: out (priority) WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global
http debug: stream 1 closed by peer
http debug: in PING (0x06) frame of 8 bytes, flags 0x00, global
http debug: out (priority) PING (0x06) frame of 8 bytes, flags 0x01, global
http error: local stream 1 error: Cancellation (0x8)
http debug: out RST_STREAM (0x03) frame of 4 bytes, flags 0x00, stream 1
http debug: local shutdown
http debug: out GOAWAY (0x07) frame of 8 bytes, flags 0x00, global
main debug: no access modules matched
main debug: redirecting to: https://consent.youtube.com/ml?continue ... 3172&src=1
main debug: creating access: https://consent.youtube.com/ml?continue ... 3172&src=1
main debug: (path: \\consent.youtube.com\ml)
main debug: looking for access module matching "https": 27 candidates
main debug: looking for tls client module matching "any": 1 candidates
gnutls debug: using GnuTLS version 3.6.15
gnutls debug: loaded 101 trusted CAs from system
main debug: using tls client module "gnutls"
main debug: resolving consent.youtube.com ...
gnutls debug: TLS handshake: Resource temporarily unavailable, try again.
gnutls debug: TLS handshake: Success.
http debug: out SETTINGS (0x04) frame of 30 bytes, flags 0x00, global
http debug: out HEADERS (0x01) frame of 282 bytes, flags 0x05, stream 1
http debug: in SETTINGS (0x04) frame of 18 bytes, flags 0x00, global
http debug: setting: Concurrent streams (0x0003): 100
http debug: setting: Initial window size (0x0004): 1048576
http debug: setting: Header list size (0x0006): 16384
http debug: out SETTINGS (0x04) frame of 0 bytes, flags 0x01, global
http debug: in WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global
http debug: in SETTINGS (0x04) frame of 0 bytes, flags 0x01, global
http debug: in HEADERS (0x01) frame of 525 bytes, flags 0x04, stream 1
http debug: stream 1 14 headers:
http debug: :status: "200"
http debug: content-type: "text/html; charset=utf-8"
http debug: vary: "Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site"
http debug: cache-control: "no-cache, no-store, max-age=0, must-revalidate"
http debug: pragma: "no-cache"
http debug: expires: "Mon, 01 Jan 1990 00:00:00 GMT"
http debug: date: "Thu, 01 Apr 2021 21:57:37 GMT"
http debug: cross-origin-resource-policy: "same-site"
http debug: content-security-policy: "script-src 'nonce-sIBB/+rHkJYLl6E/MiUOnA' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /_/ConsentHttp/cspreport;worker-src 'self'"
http debug: server: "ESF"
http debug: x-xss-protection: "0"
http debug: x-frame-options: "SAMEORIGIN"
http debug: x-content-type-options: "nosniff"
http debug: alt-svc: "h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43""
main debug: using access module "access"
main debug: looking for stream_filter module matching "prefetch,cache_block": 24 candidates
http debug: in DATA (0x00) frame of 6541 bytes, flags 0x00, stream 1
http debug: out (priority) WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global
prefetch debug: using 16777216 bytes buffer, 16777216 bytes read
main debug: using stream_filter module "prefetch"
main debug: looking for stream_filter module matching "any": 24 candidates
http debug: in DATA (0x00) frame of 3942 bytes, flags 0x00, stream 1
http debug: in DATA (0x00) frame of 0 bytes, flags 0x01, stream 1
http debug: stream 1 closed by peer
http debug: in PING (0x06) frame of 8 bytes, flags 0x00, global
http debug: out (priority) PING (0x06) frame of 8 bytes, flags 0x01, global
prefetch debug: end of stream
lua debug: Trying Lua scripts in C:\Users\minte\AppData\Roaming\vlc\lua\playlist
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\playlist
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\anevia_streams.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\anevia_xml.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\appletrailers.luac
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
main debug: no meta fetcher modules matched

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 01:23
by Ferreira
VLC LOG PART FOUR 4
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\minte\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\bbc_co_uk.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\cue.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\dailymotion.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\jamendo.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\koreus.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\liveleak.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\newgrounds.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\rockbox_fm_presets.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\soundcloud.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\twitch.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\vimeo.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\vocaroo.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\playlist\youtube.luac
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching "any": 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for https://consent.youtube.com/ml?continue ... 3172&src=1
main debug: looking for stream_filter module matching "record": 24 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='https' demux='any' location='www.youtube.com/watch?v=JD7W-UDFm-E' file='\\www.youtube.com\watch'
main debug: looking for demux module matching "any": 55 candidates
main debug: looking for xml reader module matching "any": 1 candidates
main debug: using xml reader module "xml"
webvtt debug: subtitle demux discarded
ts debug: TS module discarded (lost sync)
mod debug: MOD validation failed (ext=com\watch)
avcodec debug: trying url: \\www.youtube.com\watch
avcodec debug: CPU flags: 0x000813db
avcodec debug: couldn't guess format
ps warning: this does not look like an MPEG PS stream, continuing anyway
main debug: using demux module "ps"
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\minte\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `https://www.youtube.com/watch?v=JD7W-UDFm-E' successfully opened
ps warning: garbage at input from 509, trying to resync...
main debug: EOF reached
main debug: removing module "ps"
main debug: removing module "record"
main debug: removing module "prefetch"
main debug: removing module "access"
http debug: local stream 1 shut down
http debug: out RST_STREAM (0x03) frame of 4 bytes, flags 0x00, stream 1
http debug: local shutdown
http debug: out GOAWAY (0x07) frame of 8 bytes, flags 0x00, global
qt debug: IM: Setting an input
main debug: dead input
main debug: changing item without a request (current 1/2)
main debug: nothing to play
qt debug: IM: Deleting the input

Thank you very much for your support!

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 10:43
by markostamcar
I found an easier workaround :D Tools -> Preferences -> Show settings: All -> Input/Codecs -> Access modules -> HTTPS -> uncheck Cookies forwarding

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 13:31
by Lotesdelere
I found an easier workaround :D Tools -> Preferences -> Show settings: All -> Input/Codecs -> Access modules -> HTTPS -> uncheck Cookies forwarding

Nice find, works for me :D Image

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 14:04
by Ferreira
Hello

A BIG THANK YOU to Markostamcar for finding the right solution so quickly and so effectivly! VLC is working fine again!

That's because of persons like you that the web can be a great place!

ALL THE BEST

Ferreira

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 15:03
by Hitchhiker
I found an easier workaround :D Tools -> Preferences -> Show settings: All -> Input/Codecs -> Access modules -> HTTPS -> uncheck Cookies forwarding

Disabling cookie forwarding over HTTPS opens your system to a security vulnerability by allowing session cookies to be hijacked by anyone sniffing the network and is inadvisable for that reason.

Re: vlc does not play youtube videos

Posted: 02 Apr 2021 15:28
by markostamcar
In practice, what would the severity be if used on a trusted network as a workaround until a youtube.lua fix comes?
Is there a way to completely disable cookies instead then?

Re: vlc does not play youtube videos

Posted: 03 Apr 2021 18:52
by Hitchhiker