1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00
mpv/TOOLS/lua
wm4 6f20d6b74e lua: fix compilation with lua 5.2
Commit e2e450f9 started making use of luaL_register(), but OF COURSE
this function disappeared in Lua 5.2, and was replaced with a 5.2-only
alternative, slightly different mechanism.

So just NIH our own function. This is actually slightly more correct,
since it forces the user to call "require" to actually make the module
visible for builtin C-only modules other than "mp". Fix autoload.lua
accordingly.
2014-05-26 21:59:29 +02:00
..
autocrop.lua TOOLS/lua: conform to whitespace coding-style 2014-05-06 09:59:59 -07:00
autoload.lua lua: fix compilation with lua 5.2 2014-05-26 21:59:29 +02:00
cycle-deinterlace-pullup.lua TOOLS/lua: add cycle-deinterlace-pullup script 2014-05-06 10:02:41 -07:00
drc-control.lua TOOLS/lua: conform to whitespace coding-style 2014-05-06 09:59:59 -07:00
README.md TOOLS: better documentation of lua scripts 2014-04-29 08:31:44 -07:00

mpv lua scripts

The lua scripts in this folder can be loaded on a one-time basis by adding the option

--lua=/path/to/script.lua

to mpv's command line.

Unless otherwise specified, they are also suitable for inclusion in the ~/.mpv/lua directory where they will be loaded every time mpv starts, obviating the need to load them with the above --lua=... argument. This is acceptable as they do only basic argument parsing and key-binding registration, until those bound keys are actually pressed. They should therefore not interfere with normal playback (unless you have a conflicting user-defined key-binding, in which case, you may want to modify either the mp.add_key_binding() calls in the scripts, or your keybinding).