aboutsummaryrefslogtreecommitdiffhomepage
path: root/TOOLS/lua
Commit message (Collapse)AuthorAge
* TOOLS/autoload: Fixed broken "disabled" optionGravatar Andreas Wennerberg2018-06-23
| | | | `--script-opts=autoload-disabled=yes` now properly stops the script from running.
* TOOLS/autoload: be more robust with slow directory listingsGravatar Ricardo Constantino2018-03-10
| | | | | | | | | | Overall, just shuffled code around and added a few debugging messages for future issues. The issue could be reproduced easily by quickly navigating through the playlist inside a network mount. Closes #5618
* TOOLS/autoload.lua: update extensionsGravatar Ckat2017-12-03
| | | | | * duplicated 'ogv' renamed to 'ogm' * 'ogg' and 'opus' added as common audio file extensions
* command: drop "audio-out-detected-device" propertyGravatar wm42017-10-09
| | | | | | Coreaudio stopped setting it a few releases ago (66a958bb4fa). There is not much of a user- or API-visible change, so remove it without deprecation.
* TOOLS/lua/autodeint: update to lavfi-bridgeGravatar Ricardo Constantino2017-08-21
| | | | | Also use lavfi setfield instead of removed field-dominance. Remove missing remainder of field-dominance in docs.
* TOOLS/autocrop.lua: fix cropdetect black limit for 10-bit videosGravatar Ricardo Constantino2017-08-17
| | | | | Also update to use newer lavfi-bridges for the relevant filters to shut up warnings about deprecated crop filter.
* TOOLS/autoload.lua: implement natural sortingGravatar Ricardo Constantino2017-08-16
|
* acompressor.lua: Convert to use mp.options and lavfi filter bridgeGravatar Jan Janssen2017-08-07
|
* TOOLS/lua/status-line: improve and updateGravatar Rostislav Pehlivanov2017-08-04
| | | | | | | Updates the line once per second rather than once per frame, saving quite a bit of CPU. Also completely stops the script while paused. That aside, fixes the swapped checks for video and audio-only files and adds bitrate printing.
* TOOLS/lua/autoload.lua: ignores all files starting with "."Gravatar Yue Zhu2017-05-20
|
* TOOLS/lua/autoload.lua: actually sort files case insensitiveGravatar Ricardo Constantino2017-05-04
| | | | | Regression since 8996f79edbf. Closes #4398
* TOOLS: add lua script for runtime acompressor ffmpeg filter controlGravatar Jan Janssen2017-03-25
|
* af_drc: removeGravatar Jan Janssen2017-03-25
| | | | | | | | | | | | | | | | Remove low quality drc filter. Anyone whishing to have dynamic range compression should use the much more powerful acompressor ffmpeg filter: mpv --af=lavfi=[acompressor] INPUT Or with parameters: mpv --af=lavfi=[acompressor=threshold=-25dB:ratio=3:makeup=8dB] INPUT Refer to https://ffmpeg.org/ffmpeg-filters.html#acompressor for a full list of supported parameters. Signed-off-by: wm4 <wm4@nowhere>
* TOOLS/autoload: allow disabling through script-optsGravatar Ricardo Constantino2016-12-05
| | | | | | | | | | | This allows leaving autoload in auto-loaded scripts and to be used in a special profile like "pseudo-gui" without being troublesome to disable the behavior in profiles that get applied after pseudo-gui. Ex: [someprofile] script-opts=autoload-disabled=yes
* TOOLS/lua/observe-all: explicitly observe all optionsGravatar wm42016-09-23
|
* Use - as command-name separator everywhereGravatar Timotej Lazar2016-07-14
| | | | | | | Old-style commands using _ as separator (e.g. show_progress) were still used in some places, including documentation and configuration files. This commit updates all such instances to the new style (show-progress) so that commands are easier to find in the manual.
* TOOLS/lua/README: link to list of user scripts on wikiGravatar wm42016-03-18
|
* TOOLS/lua/zones.lua: RemoveGravatar Ricardo Constantino2016-03-08
| | | | Check wiki/User-Scripts for more up-to-date version.
* TOOLS/lua/autoload.lua: remove the extension prior to sortGravatar Alexis Nootens2016-02-02
| | | | | | When the directory contains files named such as xx-14.ext and xx-14.5.ext, remove the extension to sort the table to load the 14 before the 14.5.
* TOOLS/lua/ao-null-reload.lua: send ao-reload on audio-device-list changeGravatar Kevin Mitchell2016-01-28
| | | | | | | Only triggers if ao=null. This is required for ao=wasapi to recover from periods with no available devices. fixes #2738
* TOOLS/autoload: avoid throwing an error when playing e.g. youtubeGravatar bitingsock2015-10-20
| | | | Signed-off-by: wm4 <wm4@nowhere>
* TOOLS/lua/autoload: fix adding more files at end of auto-playlistGravatar Ricardo Constantino2015-08-20
| | | | | | | | | Fixes regression in dfd8a5f that made autoload not add more files at the end of the current playlist if playlist was made by the script. This still prevents loading the script if more than one (media or playlist) file was manually added.
* TOOLS/lua/autoload: add all files on startGravatar wm42015-08-20
| | | | | | Or almost. I don't know or care. Fixes #2219 (maybe, I don't know or care).
* TOOLS/lua/autoload: don't run if playlist is loadedGravatar Ricardo Constantino2015-08-10
|
* TOOLS/lua: Add zones.luaGravatar Ricardo Constantino2015-08-09
| | | | | | | | | | | | | | | | | Lua script that enables handling of certain commands depending on where the mouse pointer is. Mostly useful for mouse-wheel handling via input.conf. Example: MOUSE_BTN3 script-message-to zones commands "*-left: add volume +5" "default: seek +10" MOUSE_BTN4 script-message-to zones commands "*-left: add volume -5" "default: seek -10" Will changes behavior of Mouse Wheel Up/Down to alter volume if mouse is in the left zone of the window, but re-adds the default to seek if wheel is used on other parts.
* TOOLS: remove youtube-starttime.luaGravatar wm42015-07-29
| | | | Obsolete due to native youtube-dl start time support.
* TOOLS: make autodeint detect telecine in parallelGravatar Kevin Mitchell2015-07-16
| | | | This avoids having to rewind the video for a second telecine detection pass.
* TOOLS/lua/status-bar: update use of a deprecated propertyGravatar wm42015-05-25
| | | | | Also mention that this code does not reflect the status line of current mpv.
* Remove trailing whitespacesGravatar Michael Vetter2015-05-15
|
* TOOLS/autoload: load only files that make senseGravatar Marcin Kurczewski2015-04-21
|
* TOOLS/autoload: add blank lines for readabilityGravatar Marcin Kurczewski2015-04-21
|
* TOOLS: autoload.lua: sort files case insensitiveGravatar wm42015-04-18
| | | | | Suggested by a user. The suggested code which was added her comes from PIL.
* TOOLS: add a lua scripts for extracting and setting starttime with ytdlGravatar Patrick Hipp2015-03-23
| | | | Signed-off-by: wm4 <wm4@nowhere>
* TOOLS: add a lua script for a -stay on top only during playback- modeGravatar Patrick Hipp2015-03-23
| | | | Signed-off-by: wm4 <wm4@nowhere>
* w32_common: support the "window-minimized" propertyGravatar James Ross-Gowan2015-03-09
|
* cocoa: support the "window-minimized" propertyGravatar Jaime Marquínez Ferrándiz2015-03-08
| | | | Signed-off-by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
* ao_coreaudio: add support for hotplug notificationsGravatar Stefano Pigozzi2015-02-14
| | | | | | | | | | This commit adds notifications for hot plugging of devices. It also extends the old behaviour of the `audio-out-detected-device` property which is now backed by the hotplugging code. This allows clients to be notified when the actual audio output device changes. Maybe hotplugging should be supported for ao_coreaudio_exclusive too, but it's device selection code is a bit fragile.
* audio: add device change notification for hotpluggingGravatar wm42015-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Not very important for the command line player; but GUI applications will want to know about this. This only adds the internal API; support for specific audio outputs comes later. This reuses the ao struct as context for the hotplug event listener, similar to how the "old" device listing API did. This is probably a bit unclean and confusing. One argument got reusing it is that otherwise rewriting parts of ao_pulse would be required (because the PulseAudio API requires so damn much boilerplate). Another is that --ao-defaults is applied to the hotplug dummy ao struct, which automatically applies such defaults even to the hotplug context. Notification works through the property observation mechanism in the client API. The notification chain is a bit complicated: the AO notifies the player, which in turn notifies the clients, which in turn will actually retrieve the device list. (It still has the advantage that it's slightly cleaner, since the AO stuff doesn't need to know about client API issues.) The weird handling of atomic flags in ao.c is because we still don't require real atomics from the compiler. Otherwise we'd just use atomic bitwise operations.
* TOOLS/lua/observe-all: add a warningGravatar wm42015-01-03
| | | | This is just natural, but it's also not that obvious.
* TOOLS/lua/autoload: fix behavior with network URLsGravatar wm42015-01-03
| | | | | readdir() fails if the directory is an URL, so just exit instead of letting the Lua script fail.
* options: deprecate 'lua' based options/dirs for 'script'Gravatar Avi Halachmi (:avih)2014-12-15
| | | | | | | | | | | | - --lua and --lua-opts change to --script and --script-opts - 'lua' default script dirs change to 'scripts' - DOCS updated - 'lua-settings' dir was _not_ modified The old lua-based names/dirs still work, but display a warning. Signed-off-by: wm4 <wm4@nowhere>
* lua: add a function that formats Lua values as stringsGravatar wm42014-11-29
| | | | | | | | Yep, Lua is so crappy that the stdlib doesn't provide anything like this. Repurposes the undocumented mp.format_table() function and moves it to mp.utils.
* TOOLS/lua: add script that pauses playback when minimizing the windowGravatar wm42014-11-29
| | | | | | Uses functionality that was added a month ago for exactly this purpose. Fixes #1237.
* TOOLS/lua/autoload: fix operation outside of working dirGravatar wm42014-10-26
| | | | Fixes #1222. (This commit is based on a patch posted there.)
* TOOLS/lua/autoload: don't shadow local variableGravatar wm42014-10-26
| | | | "dir" is already used somewhere above. This was ok, but not nice.
* TOOLS/lua: update README.mdGravatar Kevin Mitchell2014-10-21
|
* TOOLS/lua: remove tabs from some lua scriptsGravatar Kevin Mitchell2014-10-21
|
* TOOLS/lua: add autodeint.luaGravatar Kevin Mitchell2014-10-21
| | | | | | | This isn't quite as robust as idet.sh as the default detection interval is only 4 seconds vs 35 for idet.sh. idet.sh can have such a large sample time since it turns off the vo and uses --untimed, which is currently not possible from lua.
* Move status-line.luaGravatar wm42014-08-11
| | | | | Looks like TOOLS/lua/ is now established as dumping ground for random Lua scripts, so DOCS/lua_examples/ is not needed anymore.
* TOOLS: add test script for property change notificationsGravatar wm42014-08-02
|