Topic: vlc and lua playlists
Hello,
I read that vlc can generate playlists on the fly using some Lua scripts :
http://wiki.videolan.org/Documentation:
st_Scripts
On my statler, I have plenty of lua scripts in /usr/lib/vlc/lua/playlist/ (in fact luac scripts, compiled scripts I guess), but I think vlc doesn't load them even if I copy the scripts in /usr/share/vlc/lua/playlist/ or ~/.local/share/vlc/lua/playlist/
Why ?! Or maybe I miss something ! I except to have the scripts adding some contents to my playlist but I see nothing :-( !
The scripts present in /usr/share/vlc/lua/playlist/ are
-rw-r--r-- 1 root root 2670 22 sept. 21:16 anevia_streams.luac
-rw-r--r-- 1 root root 2737 22 sept. 21:16 anevia_xml.luac
-rw-r--r-- 1 root root 2580 22 sept. 21:16 appletrailers.luac
-rw-r--r-- 1 root root 1183 22 sept. 21:16 bbc_co_uk.luac
-rw-r--r-- 1 root root 1997 22 sept. 21:16 break.luac
-rw-r--r-- 1 root root 3284 22 sept. 21:16 canalplus.luac
-rw-r--r-- 1 root root 5029 22 sept. 21:16 cue.luac
-rw-r--r-- 1 root root 1920 22 sept. 21:16 dailymotion.luac
-rw-r--r-- 1 root root 2145 22 sept. 21:16 france2.luac
-rw-r--r-- 1 root root 3151 22 sept. 21:16 googlevideo.luac
-rw-r--r-- 1 root root 3011 22 sept. 21:16 jamendo.luac
-rw-r--r-- 1 root root 1313 22 sept. 21:16 joox.luac
-rw-r--r-- 1 root root 2296 22 sept. 21:16 katsomo.luac
-rw-r--r-- 1 root root 1837 22 sept. 21:16 koreus.luac
-rw-r--r-- 1 root root 1802 22 sept. 21:16 lelombrik.luac
-rw-r--r-- 1 root root 2327 22 sept. 21:16 megavideo.luac
-rw-r--r-- 1 root root 2071 22 sept. 21:16 metacafe.luac
-rw-r--r-- 1 root root 2603 22 sept. 21:16 mpora.luac
-rw-r--r-- 1 root root 1922 22 sept. 21:16 pinkbike.luac
-rw-r--r-- 1 root root 1596 22 sept. 21:16 rockbox_fm_presets.luac
-rw-r--r-- 1 root root 1898 22 sept. 21:16 youtube_homepage.luac
-rw-r--r-- 1 root root 6826 22 sept. 21:16 youtube.luacthis is the output :
$ vlc -vvv
VLC media player 1.1.3 The Luggage (revision exported)
[0x728120] main libvlc debug: VLC media player - 1.1.3 The Luggage
[0x728120] main libvlc debug: Copyright © 1996-2010 the VideoLAN team
[0x728120] main libvlc debug: revision exported
[0x728120] main libvlc debug: configured with ./configure '--build=x86_64-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--sysconfdir=/etc' '--with-binary-version=1' '--enable-a52' '--enable-aa' '--enable-bonjour' '--enable-caca' '--enable-dca' '--enable-dirac' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-ggi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/' '--with-mozilla-pkg=libxul' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-libva' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--disable-x264' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-pvr' '--enable-udev' '--enable-v4l' '--enable-v4l2' '--enable-svgalib' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'
[0x728120] main libvlc debug: translation test: code is "FR"
[0x728120] main libvlc debug: checking plugin modules
[0x728120] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-7e8.dat
[0x728120] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x728120] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-7e8.dat
[0x728120] main libvlc debug: module bank initialized (393 modules)
[0x728120] main libvlc debug: opening config file (/home/ll/.config/vlc/vlcrc)
[0x728120] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 FPU
[0x728120] main libvlc debug: looking for memcpy module: 3 candidates
[0x728120] main libvlc debug: using memcpy module "memcpymmxext"
[0x811e80] main input debug: Creating an input for 'Bibliothèque'
[0x811e80] main input debug: Input is a meta file: disabling unneeded options
[0x811e80] main input debug: using timeshift granularity of 50 MiB
[0x811e80] main input debug: using timeshift path '/tmp'
[0x811e80] main input debug: `file/xspf-open:///home/ll/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/ll/.local/share/vlc/ml.xspf'
[0x811e80] main input debug: creating demux: access='file' demux='xspf-open' path='/home/ll/.local/share/vlc/ml.xspf'
[0x818a40] main demux debug: looking for access_demux module: 2 candidates
[0x818a40] main demux debug: no access_demux module matching "file" could be loaded
[0x818a40] main demux debug: TIMER module_need() : 0.428 ms - Total 0.428 ms / 1 intvls (Avg 0.428 ms)
[0x811e80] main input debug: creating access 'file' path='/home/ll/.local/share/vlc/ml.xspf'
[0x81bcd0] main access debug: looking for access module: 2 candidates
[0x81bcd0] filesystem access debug: opening file `/home/ll/.local/share/vlc/ml.xspf'
[0x81bcd0] main access debug: using access module "filesystem"
[0x81bcd0] main access debug: TIMER module_need() : 0.200 ms - Total 0.200 ms / 1 intvls (Avg 0.200 ms)
[0x82a990] main stream debug: Using AStream*Stream
[0x82a990] main stream debug: pre buffering
[0x82a990] main stream debug: received first data after 0 ms
[0x82a990] main stream debug: pre-buffering done 296 bytes in 0s - 32118 KiB/s
[0x81a4a0] main stream debug: looking for stream_filter module: 5 candidates
[0x81a4a0] main stream debug: no stream_filter module matching "any" could be loaded
[0x81a4a0] main stream debug: TIMER module_need() : 0.294 ms - Total 0.294 ms / 1 intvls (Avg 0.294 ms)
[0x81a4a0] main stream debug: looking for stream_filter module: 1 candidate
[0x81a4a0] main stream debug: using stream_filter module "stream_filter_record"
[0x81a4a0] main stream debug: TIMER module_need() : 0.121 ms - Total 0.121 ms / 1 intvls (Avg 0.121 ms)
[0x811e80] main input debug: creating demux: access='file' demux='xspf-open' path='/home/ll/.local/share/vlc/ml.xspf'
[0x829ae0] main demux debug: looking for demux module: 1 candidate
[0x829ae0] playlist demux debug: using XSPF playlist reader
[0x829ae0] main demux debug: using demux module "playlist"
[0x829ae0] main demux debug: TIMER module_need() : 0.166 ms - Total 0.166 ms / 1 intvls (Avg 0.166 ms)
[0x82e570] main demux meta debug: looking for meta reader module: 2 candidates
[0x82e570] lua demux meta debug: Trying Lua scripts in /home/ll/.local/share/vlc/lua/meta/reader
[0x82e570] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x82e570] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x82e570] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x82e570] main demux meta debug: no meta reader module matching "any" could be loaded
[0x82e570] main demux meta debug: TIMER module_need() : 2.753 ms - Total 2.753 ms / 1 intvls (Avg 2.753 ms)
[0x811e80] main input debug: `file/xspf-open:///home/ll/.local/share/vlc/ml.xspf' successfully opened
[0x82e570] main xml debug: looking for xml module: 2 candidates
[0x82e570] main xml debug: using xml module "xml"
[0x82e570] main xml debug: TIMER module_need() : 0.433 ms - Total 0.433 ms / 1 intvls (Avg 0.433 ms)
[0x829ae0] playlist demux debug: parsed 0 tracks successfully
[0x82e570] main xml debug: removing module "xml"
[0x811e80] main input debug: EOF reached
[0x829ae0] main demux debug: removing module "playlist"
[0x81a4a0] main stream debug: removing module "stream_filter_record"
[0x81bcd0] main access debug: removing module "filesystem"
[0x811e80] main input debug: TIMER input launching for 'Bibliothèque' : 4.359 ms - Total 4.359 ms / 1 intvls (Avg 4.359 ms)
[0x817f00] main interface debug: looking for interface module: 1 candidate
[0x817f00] main interface debug: using interface module "hotkeys"
[0x817f00] main interface debug: TIMER module_need() : 0.163 ms - Total 0.163 ms / 1 intvls (Avg 0.163 ms)
[0x818630] main interface debug: looking for interface module: 1 candidate
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
Warning: call to signal(13, 0x1)
[0x825700] main playlist debug: Activated
[0x818630] main interface debug: using interface module "inhibit"
[0x825700] main playlist debug: rebuilding array of current - root Liste de lecture
[0x818630] main interface debug: TIMER module_need() : 0.822 ms - Total 0.822 ms / 1 intvls (Avg 0.822 ms)
[0x825700] main playlist debug: rebuild done - 0 items, index -1
[0x817ca0] main interface debug: looking for interface module: 1 candidate
[0x817ca0] main interface debug: using interface module "signals"
[0x817ca0] main interface debug: TIMER module_need() : 0.194 ms - Total 0.194 ms / 1 intvls (Avg 0.194 ms)
[0x8145d0] main interface debug: looking for interface module: 1 candidate
[0x8145d0] main interface debug: using interface module "globalhotkeys"
[0x8145d0] main interface debug: TIMER module_need() : 0.657 ms - Total 0.657 ms / 1 intvls (Avg 0.657 ms)
[0x728120] main libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface.
[0x83a710] main interface debug: looking for interface module: 5 candidates
Blocked: call to setlocale(6, "")
Blocked: call to sigaction(17, 0x7f3bdb942b50, 0x7f3bdb942ab0)
Warning: call to signal(13, 0x1)
Warning: call to srand(1285170461)
Warning: call to rand()
Blocked: call to setlocale(6, "")
(process:13592): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Warning: call to signal(13, 0x1)
[0xb36cd0] main generic debug: looking for extension module: 1 candidate
[0xb36cd0] lua generic debug: Opening EXPERIMENTAL Lua Extension module
[0xb36cd0] lua generic debug: Trying Lua scripts in /home/ll/.local/share/vlc/lua/extensions
[0xb36cd0] lua generic debug: Trying Lua scripts in /usr/lib/vlc/lua/extensions
[0xb36cd0] lua generic debug: Trying Lua playlist script /usr/lib/vlc/lua/extensions/allocine-fr.luac
[0xb36cd0] lua generic debug: Scanning Lua script /usr/lib/vlc/lua/extensions/allocine-fr.luac
[0xb36cd0] lua generic debug: Script /usr/lib/vlc/lua/extensions/allocine-fr.luac has the following capability flags: 0xc
[0xb36cd0] lua generic debug: Trying Lua scripts in /usr/share/vlc/lua/extensions
[0xb36cd0] main generic debug: using extension module "lua"
[0xb36cd0] main generic debug: TIMER module_need() : 0.476 ms - Total 0.476 ms / 1 intvls (Avg 0.476 ms)
[0xb7cf00] main probe debug: looking for services probe module: 9 candidates
[0xb7cf00] main probe debug: no services probe module matching "any" could be loaded
[0xb7cf00] main probe debug: TIMER module_need() : 13.610 ms - Total 13.610 ms / 1 intvls (Avg 13.610 ms)
[0x83a710] main interface debug: using interface module "qt4"
[0x83a710] main interface debug: TIMER module_need() : 233.978 ms - Total 233.978 ms / 1 intvls (Avg 233.978 ms)
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
^C[0x817ca0] signals interface error: Caught Interrompre signal, exiting...
[0x728120] main libvlc debug: deactivating the playlist
[0x825700] main playlist debug: Deactivate
[0xb4d2b0] main playlist export debug: saving Bibliothèque to file /home/ll/.local/share/vlc/ml.xspf
[0xb4d2b0] main playlist export debug: looking for playlist export module: 1 candidate
[0xb4d2b0] main playlist export debug: using playlist export module "export"
[0xb4d2b0] main playlist export debug: TIMER module_need() : 0.359 ms - Total 0.359 ms / 1 intvls (Avg 0.359 ms)
[0xb4d2b0] main playlist export debug: removing module "export"
[0x825700] main playlist debug: Deactivated
[0x728120] main libvlc debug: removing all services discovery tasks
[0x728120] main libvlc debug: removing all interfaces
[0x83a710] qt4 interface debug: Killing extension dialog provider
[0x83a710] qt4 interface debug: ExtensionsDialogProvider is quitting...
[0xb36cd0] lua generic debug: Deactivating all loaded extensions
[0xb36cd0] lua generic debug: All extensions are now deactivated
[0xb36cd0] main generic debug: removing module "lua"
[0x83a710] qt4 interface debug: Playlist Destroyed
[0x83a710] main interface debug: removing module "qt4"
[0x8145d0] main interface debug: removing module "globalhotkeys"
[0x817ca0] main interface debug: removing module "signals"
[0x818630] main interface debug: removing module "inhibit"
[0x817f00] main interface debug: removing module "hotkeys"
[0x825700] main playlist debug: destroying
[0x728120] main libvlc debug: TIMER ML Load : Total 5.049 ms / 1 intvls (Avg 5.049 ms)
[0x728120] main libvlc debug: TIMER Items array build : Total 0.044 ms / 1 intvls (Avg 0.044 ms)
[0x728120] main libvlc debug: TIMER ML Dump : Total 0.476 ms / 1 intvls (Avg 0.476 ms)
[0x728120] main libvlc debug: removing stats
[0x728120] main libvlc debug: removing module "memcpymmxext"Thanks for any help ![]()