vlc can't play this youtube video
vlc can't play this youtube video: https://www.youtube.com/watch?v=y4pHyqiK4u4
Steps to reproduce:
- start VLC from the console $ vlc Now vlc starts
- Choose Media->open network stream -> network, paste this URL: https://www.youtube.com/watch?v=y4pHyqiK4u4
- Click Play. Now the video does not play, and these messages appear in the console:
[mp3 @ 0x7f7e9803f740] Failed to read frame size: Could not seek to 3372.
[00007f7e7063b670] lua stream error: Couldn't extract youtube video URL, please check for updates to this script
My versions:
VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2)
$ uname -a
Linux cedric 6.3.1-arch2-1 #1 SMP PREEMPT_DYNAMIC Wed, 10 May 2023 08:54:47 +0000 x86_64 GNU/Linux
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- cdwijs changed the description
changed the description
I think it happens with all youtube videos.
- Maintainer
As per the error message, you need to use the latest version from git.
- Rémi Denis-Courmont closed
closed
- Rémi Denis-Courmont added Component::LUA scripts label
added Component::LUA scripts label
- Developer
Thanks for your report. The video you linked works fine for me. Please make sure you use the latest version of the
youtube.lua
script, available at https://code.videolan.org/videolan/vlc/-/raw/master/share/lua/playlist/youtube.lua?inline=false If the problem still persist after that, please attach full verbose logs to allow us to diagnose the issue. [root@cedric cedric]# cd /usr/ [root@cedric usr]# find -iname youtube.lua ./share/doc/vlc/lua/playlist/youtube.lua [root@cedric usr]# cp ./share/doc/vlc/lua/playlist/youtube.lua ./share/doc/vlc/lua/playlist/youtube.lua-bu [root@cedric usr]# cp /home/cedric/Downloads/youtube.lua ./share/doc/vlc/lua/playlist/youtube.lua $ vlc VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2) [0000561445069550] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00007f83980b2d10] lua stream error: Couldn't extract youtube video URL, please check for updates to this script $ vlc --verbose 2 <snip messages about playlist> [00007fb4e4009170] main tls client debug: resolving www.youtube.com ... [00007fb4e4009170] gnutls tls client debug: TLS handshake: Resource temporarily unavailable, try again. [00007fb4e4009170] gnutls tls client debug: TLS handshake: Resource temporarily unavailable, try again. [00007fb4e4009170] gnutls tls client debug: TLS handshake: Resource temporarily unavailable, try again. [00007fb4e4009170] gnutls tls client debug: TLS handshake: Resource temporarily unavailable, try again. [00007fb4e4009170] gnutls tls client debug: TLS handshake: Success. [00007fb4e40063b0] http stream debug: out SETTINGS (0x04) frame of 30 bytes, flags 0x00, global [00007fb4e40063b0] http stream debug: out HEADERS (0x01) frame of 285 bytes, flags 0x05, stream 1 [00007fb4e40063b0] http stream debug: in SETTINGS (0x04) frame of 18 bytes, flags 0x00, global [00007fb4e40063b0] http stream debug: setting: Concurrent streams (0x0003): 100 [00007fb4e40063b0] http stream debug: setting: Initial window size (0x0004): 1048576 [00007fb4e40063b0] http stream debug: setting: Header list size (0x0006): 65536 [00007fb4e40063b0] http stream debug: out SETTINGS (0x04) frame of 0 bytes, flags 0x01, global [00007fb4e40063b0] http stream debug: in WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global [00007fb4e40063b0] http stream debug: in SETTINGS (0x04) frame of 0 bytes, flags 0x01, global [00007fb4e40063b0] http stream debug: in HEADERS (0x01) frame of 1075 bytes, flags 0x04, stream 1 [00007fb4e40063b0] http stream debug: stream 1 19 headers: [00007fb4e40063b0] http stream debug: :status: "200" [00007fb4e40063b0] http stream debug: content-type: "text/html; charset=utf-8" [00007fb4e40063b0] http stream debug: x-content-type-options: "nosniff" [00007fb4e40063b0] http stream debug: cache-control: "no-cache, no-store, max-age=0, must-revalidate" [00007fb4e40063b0] http stream debug: pragma: "no-cache" [00007fb4e40063b0] http stream debug: expires: "Mon, 01 Jan 1990 00:00:00 GMT" [00007fb4e40063b0] http stream debug: date: "Sat, 20 May 2023 12:09:33 GMT" [00007fb4e40063b0] http stream debug: strict-transport-security: "max-age=31536000" [00007fb4e40063b0] http stream debug: x-frame-options: "SAMEORIGIN" [00007fb4e40063b0] http stream debug: origin-trial: "AvC9UlR6RDk2crliDsFl66RWLnTbHrDbp+DiY6AYz/PNQ4G4tdUTjrHYr2sghbkhGQAVxb7jaPTHpEVBz0uzQwkAAAB4eyJvcmlnaW4iOiJodHRwczovL3lvdXR1YmUuY29tOjQ0MyIsImZlYXR1cmUiOiJXZWJWaWV3WFJlcXVlc3RlZFdpdGhEZXByZWNhdGlvbiIsImV4cGlyeSI6MTcxOTUzMjc5OSwiaXNTdWJkb21haW4iOnRydWV9" [00007fb4e40063b0] http stream debug: permissions-policy: "ch-ua-arch=*, ch-ua-bitness=*, ch-ua-full-version=*, ch-ua-full-version-list=*, ch-ua-model=*, ch-ua-wow64=*, ch-ua-form-factor=*, ch-ua-platform=*, ch-ua-platform-version=*" [00007fb4e40063b0] http stream debug: cross-origin-opener-policy-report-only: "same-origin-allow-popups; report-to="youtube_main"" [00007fb4e40063b0] http stream debug: report-to: "{"group":"youtube_main","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/youtube_main"}]}" [00007fb4e40063b0] http stream debug: p3p: "CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more info."" [00007fb4e40063b0] http stream debug: server: "ESF" [00007fb4e40063b0] http stream debug: x-xss-protection: "0" [00007fb4e40063b0] http stream debug: set-cookie: "VISITOR_INFO1_LIVE=; Domain=.youtube.com; Expires=Sun, 23-Aug-2020 12:09:33 GMT; Path=/; Secure; HttpOnly; SameSite=none" [00007fb4e40063b0] http stream debug: set-cookie: "__Secure-YEC=Cgt0OVJ3R3FfZUdzZyj98KKjBg%3D%3D; Domain=.youtube.com; Expires=Tue, 18-Jun-2024 12:09:13 GMT; Path=/; Secure; HttpOnly; SameSite=lax" [00007fb4e40063b0] http stream debug: alt-svc: "h3=":443"; ma=2592000,h3-29=":443"; ma=2592000" [00007fb4e40063b0] main stream debug: using access module "access" [00007fb4e400a670] main stream debug: looking for stream_filter module matching "prefetch,cache_block": 27 candidates [00007fb4e400a670] prefetch stream debug: using 16777216 bytes buffer, 16777216 bytes read [00007fb4e400a670] main stream debug: using stream_filter module "prefetch" [00007fb4e407e7e0] main stream debug: looking for stream_filter module matching "any": 27 candidates [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 8255 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: out (priority) WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global [00007fb4e407e7e0] lua stream debug: Trying Lua scripts in /home/cedric/.local/share/vlc/lua/playlist [00007fb4e407e7e0] lua stream debug: Trying Lua scripts in /usr/lib/vlc/lua/playlist [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/anevia_streams.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/anevia_xml.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/appletrailers.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/bbc_co_uk.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/cue.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/dailymotion.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/jamendo.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/koreus.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/liveleak.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/newgrounds.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/rockbox_fm_presets.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/soundcloud.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/twitch.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/vimeo.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/vocaroo.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/youtube.luac [00007fb4e407e7e0] lua stream debug: Lua playlist script /usr/lib/vlc/lua/playlist/youtube.luac's probe() function was successful [00007fb4e407e7e0] main stream debug: using stream_filter module "lua" [00007fb4e407e7e0] main stream debug: stream filter added to 0x7fb4e400a670 [00007fb4e4095d90] main stream debug: looking for stream_filter module matching "any": 27 candidates [00007fb4e4095d90] main stream debug: no stream_filter modules matched [00007fb4e40998d0] main stream_directory debug: looking for stream_directory module matching "any": 1 candidates [00007fb4e40998d0] main stream_directory debug: no stream_directory modules matched [00007fb4e4000df0] main input source debug: attachment of directory-extractor failed for https://www.youtube.com/watch?v=y4pHyqiK4u4 [00007fb4e4095d90] main stream debug: looking for stream_filter module matching "record": 27 candidates [00007fb4e4095d90] main stream debug: using stream_filter module "record" [00007fb4e4000df0] main input source debug: creating demux: access='https' demux='any' location='www.youtube.com/watch?v=y4pHyqiK4u4' file='(null)' [00007fb4e400a4e0] main demux debug: looking for demux module matching "any": 54 candidates [00007fb4e400a4e0] es demux debug: cannot peek [00007fb4e400a4e0] es demux debug: cannot peek [00007fb4e400a4e0] es demux debug: cannot peek [00007fb4e400a4e0] es demux debug: cannot peek [00007fb4e400a4e0] es demux debug: cannot peek [00007fb4e400a4e0] main demux debug: using demux module "directory" [00007fb4e4050510] main demux meta debug: looking for meta reader module matching "any": 2 candidates [00007fb4e4050510] lua demux meta debug: Trying Lua scripts in /home/cedric/.local/share/vlc/lua/meta/reader [00007fb4e4050510] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [00007fb4e4050510] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [00007fb4e4050510] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [00007fb4e4050510] main demux meta debug: no meta reader modules matched [00007fb48c002e40] main input debug: `https://www.youtube.com/watch?v=y4pHyqiK4u4' successfully opened [00007fb4e407e7e0] lua stream debug: Detected new YouTube HTML code layout [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16378 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 8 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 4517 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 400 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: out (priority) WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, global [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 11331 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 5037 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16368 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 14222 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 8474 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16378 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 7895 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16378 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 7868 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 162 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16378 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16368 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: out WINDOW_UPDATE (0x08) frame of 4 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16368 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16384 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 16376 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 4933 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: in DATA (0x00) frame of 0 bytes, flags 0x01, stream 1 [00007fb4e40063b0] http stream debug: stream 1 closed by peer [00007fb4e40063b0] http stream debug: in PING (0x06) frame of 8 bytes, flags 0x00, global [00007fb4e40063b0] http stream debug: out (priority) PING (0x06) frame of 8 bytes, flags 0x01, global [00007fb4e400a670] prefetch stream debug: end of stream [00007fb4e407e7e0] lua stream error: Couldn't extract youtube video URL, please check for updates to this script [00005567944644a0] main playlist debug: deleting item `watch?v=y4pHyqiK4u4' [00007fb48c002e40] main input debug: EOF reached [00007fb4e400a4e0] main demux debug: removing module "directory" [00007fb4e4095d90] main stream debug: removing module "record" [00007fb4e407e7e0] main stream debug: removing module "lua" [00007fb4e400a670] main stream debug: removing module "prefetch" [00007fb4e40063b0] main stream debug: removing module "access" [00007fb4e40063b0] http stream debug: local stream 1 shut down [00007fb4e40063b0] http stream debug: out RST_STREAM (0x03) frame of 4 bytes, flags 0x00, stream 1 [00007fb4e40063b0] http stream debug: local shutdown [00007fb4e40063b0] http stream debug: out GOAWAY (0x07) frame of 8 bytes, flags 0x00, global [00005567944644a0] main playlist debug: dead input [00005567944644a0] main playlist debug: changing item without a request (current 0/0) [00005567944644a0] main playlist debug: rebuilding array of current - root Playlist [00005567944644a0] main playlist debug: rebuild done - 0 items, index -1 [00005567944644a0] main playlist debug: nothing to play [00005567944af0f0] qt interface debug: IM: Deleting the input [00005567944af0f0] qt interface debug: video widget is orphaned [00005567943cc550] main libvlc debug: exiting [00005567943cc550] main libvlc debug: exiting [00005567943cc550] main libvlc debug: removing all interfaces [00005567944af0f0] main interface debug: removing module "qt" [00005567944644a0] main playlist debug: deactivating the playlist [0000556794596d00] main audio output debug: removing module "pulse" [00005567944af0f0] qt interface debug: requesting exit... [00005567944af0f0] qt interface debug: waiting for UI thread... [00005567944af0f0] qt interface debug: QApp exec() finished [00005567944af0f0] qt interface debug: video widget is orphaned [00005567944af0f0] qt interface debug: Killing extension dialog provider [00005567944af0f0] qt interface debug: ExtensionsDialogProvider is quitting... [00007fb4d8204820] main generic debug: removing module "lua" [000055679456c8a0] main interface debug: removing module "xcb_hotkeys" [00005567945828e0] main interface debug: removing module "hotkeys" [0000556794582f00] main interface debug: removing module "dbus" [00005567944644a0] main playlist debug: destroying [00005567944ad270] main playlist export debug: saving media library to file /home/cedric/.local/share/vlc/ml.xspf.tmp90479 [00005567944ad270] main playlist export debug: looking for playlist export module matching "export-xspf": 4 candidates [00005567944ad270] main playlist export debug: using playlist export module "export" [00005567944ad270] main playlist export debug: removing module "export" <snip messages about playlist>
Edited by cdwijs- cdwijs reopened
reopened
- Maintainer
Would you mind actually following the instructions before reopening a bug?
Your URL https://www.youtube.com/watch?v=y4pHyqiK4u4 (which you helpfully didn't even provide) works fine.
Edited by Rémi Denis-Courmont - Rémi Denis-Courmont closed
closed
- Rémi Denis-Courmont added Status::works for me label
added Status::works for me label
My previous message was the result of actually following these instructions: Please make sure you use the latest version of the
youtube.lua
script, available at https://code.videolan.org/videolan/vlc/-/raw/master/share/lua/playlist/youtube.lua?inline=false If the problem still persist after that, please attach full verbose logs to allow us to diagnose the issue.I have retested the instructions, just to confirm the problem is actually still there, and to obtain the desired logfile. Here's what I did:
1) Download the latest version of the `youtube.lua` script [cedric@cedric ~]$ mkdir vlc-lua [cedric@cedric ~]$ cd vlc-lua/ [cedric@cedric vlc-lua]$ wget https://code.videolan.org/videolan/vlc/-/raw/master/share/lua/playlist/youtube.lua --2023-05-20 15:11:52-- https://code.videolan.org/videolan/vlc/-/raw/master/share/lua/playlist/youtube.lua Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving code.videolan.org (code.videolan.org)... 213.36.253.9, 2a01:e0d:1:3:58bf:fa02:c0de:70 Connecting to code.videolan.org (code.videolan.org)|213.36.253.9|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 45858 (45K) [text/plain] Saving to: ‘youtube.lua’ youtube.lua 100%[==================================================================================================================================================>] 44.78K --.-KB/s in 0.04s 2023-05-20 15:11:52 (1018 KB/s) - ‘youtube.lua’ saved [45858/45858] [cedric@cedric vlc-lua]$ sha512sum youtube.lua 718aef68267a82bf16d9aecc5a6c38aac4d30aea049e55c12cd629f3d89e42607071cf83e97b2d889b44ae3a36e17ba743086db7603168e2fa8a3cc87b30dda4 youtube.lua
- Find the target location of the lua script:
[root@cedric cedric]# cd /usr/ [root@cedric usr]# find -iname youtube.lu* ./share/doc/vlc/lua/playlist/youtube.lua ./share/doc/vlc/lua/playlist/youtube.lua-bu ./lib/vlc/lua/playlist/youtube.luac
- Remove the .lua-bu, and replace the .lua file with the one downloaded in step 1:
[root@cedric usr]# rm /usr/share/doc/vlc/lua/playlist/youtube.lua-bu [root@cedric usr]# cp /home/cedric/vlc-lua/youtube.lua /usr/share/doc/vlc/lua/playlist/youtube.lua
- Confirm youtube.lua is actually the one downloaded by comparing the sha512sum:
[root@cedric usr]# sha512sum /usr/share/doc/vlc/lua/playlist/youtube.lua 718aef68267a82bf16d9aecc5a6c38aac4d30aea049e55c12cd629f3d89e42607071cf83e97b2d889b44ae3a36e17ba743086db7603168e2fa8a3cc87b30dda4 /usr/share/doc/vlc/lua/playlist/youtube.lua
- Start vlc in verbose mode, and logging to vlc.log:
[cedric@cedric vlc-lua]$ vlc --verbose 2 2>&1 | tee vlc.log
-
Choose Media->open network stream -> network, paste this URL: https://www.youtube.com/watch?v=y4pHyqiK4u4 (This is the same URL as in the original bug report.)
-
Click Play. Observe the video really does not start playing.
-
Choose Media->quit. Observe vlc does shut down.
-
Attach vlc.log to the bug report. vlc.log
-
Reopen the bug, as the problem is not fixed. (At least not on my PC).
Please let me know if further testing is required on my PC to reproduce and to fix the bug.
Collapse replies - Maintainer
Your log file clearly states that the outdated
/usr/lib/vlc/lua/playlist/youtube.luac
is used. Thank you for wasting volunteers' time. We have established that I replaced the wrong file, by correctly following the wrong instructions.
Now I wonder were to get/generate the correct file (youtube.luac), so VLC actually plays the file on my PC.
This directory only contains .lua files: https://code.videolan.org/videolan/vlc/-/tree/master/share/lua/playlist
This link contains the instructions of compiling a .lua file into a luac file: https://github.com/videolan/vlc/blob/master/share/lua/intf/luac.lua
So now I can run this command to convert the .lua file into the required .luac file:
[cedric@cedric vlc-lua]$ vlc -I luaintf --lua-intf luac --lua-config 'luac={input="youtube.lua",output="youtube.luac"}' VLC media player 3.0.18 Vetinari (revision 3.0.13-8-g41878ff4f2) [000055f819d20220] [luac] lua interface: About to compile lua file [000055f819d20220] [luac] lua interface: Input is 'youtube.lua' [000055f819d20220] [luac] lua interface: Output is 'youtube.luac'
Now replace the .luac file:
[root@cedric usr]# cp /home/cedric/vlc-lua/youtube.luac /usr/lib/vlc/lua/playlist/youtube.luac
And retry to play the video:
- Choose Media->open network stream -> network, paste this URL: https://www.youtube.com/watch?v=y4pHyqiK4u4
- Click Play. Now the video does play correctly.
It was my pleasure to turn the above conversation into a complete solution for my PC, and for other users with the same problem. I don't see that as a waste of time, although it took me some time to figure out the difference between .lua and .luac files, and howto convert between them.
- Developer
Please no pointless arguing in bug reports. This is a very common issue already well documented on the web.
From your logs:
[00007fb4e407e7e0] lua stream debug: Trying Lua scripts in /home/cedric/.local/share/vlc/lua/playlist [00007fb4e407e7e0] lua stream debug: Trying Lua scripts in /usr/lib/vlc/lua/playlist [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/anevia_streams.luac ... [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/vocaroo.luac [00007fb4e407e7e0] lua stream debug: Trying Lua playlist script /usr/lib/vlc/lua/playlist/youtube.luac [00007fb4e407e7e0] lua stream debug: Lua playlist script /usr/lib/vlc/lua/playlist/youtube.luac's probe() function was successful
Compiling a
.lua
file into a.luac
one like you did is one solution. You could also delete the outdatedyoutube.luac
to ensure thatyoutube.lua
gets selected instead. Or even better, you could just not mess with your distribution's files and simply dropyoutube.lua
into/home/cedric/.local/share/vlc/lua/playlist/
(create it if it doesn't exist) where it will take precedence anyway. - Please register or sign in to reply
- cdwijs reopened
reopened
- Rémi Denis-Courmont closed
closed