mirror of https://github.com/mpv-player/mpv
075154175d
The previous code tried to disable autocrop for cover-art by testing that track-list/$vid/albumart is false, however, $vid is completely unrelated to the track-list index. It only sometimes succeeded to disable for albumart, by accident, e.g. with one audio track and one video track where $vid==1 and track-list/1 happens to be the video (cover art) track. The new code detects the currently-used video track by finding a track with type=="video" and selected==true. Unlike the previous code, it also works in scenarios with many audio/video/sub tracks. Additionally, autocrop is now enabled also with lavfi-complex, which should be considered an improvement. The previous code implicitly disabled it with lavfi-complex because $vid is nil on such case. |
||
---|---|---|
.. | ||
README.md | ||
acompressor.lua | ||
ao-null-reload.lua | ||
audio-hotplug-test.lua | ||
autocrop.lua | ||
autodeint.lua | ||
autoload.lua | ||
command-test.lua | ||
cycle-deinterlace-pullup.lua | ||
nan-test.lua | ||
observe-all.lua | ||
ontop-playback.lua | ||
osd-test.lua | ||
pause-when-minimize.lua | ||
skip-logo.lua | ||
status-line.lua | ||
test-hooks.lua |
README.md
mpv lua scripts
The lua scripts in this folder can be loaded on a one-time basis by adding the option
--script=/path/to/script.lua
to mpv's command line.
Where appropriate, they may also be placed in ~/.config/mpv/scripts/ from where they will be automatically loaded when mpv starts.
This is only a small selection of internally maintained scripts. Some of them are just for testing mpv internals, or serve as examples. An extensive user-edited list of 3rd party scripts is available here:
https://github.com/mpv-player/mpv/wiki/User-Scripts
(Anyone can add their own scripts to that list.)