1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-23 23:56:20 +00:00
mpv/TOOLS/python
8lurry fea5db26bb
python: optimize source, add feature
- lint
- better error message through check_error when mpv api(s) return with an error
- add function hook_add
- add function hook_continue
- add event handler for MPV_EVENT_HOOK
2025-04-09 13:43:16 +06:00
..
acompressor.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
audio-hotplug-test.py
autocrop.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
autodeint.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
command-test.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
cycle-deinterlace-pullup.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
gamma-auto.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
observe-all.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
ontop-playback.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
osd-test.py python: optimize source, add feature 2025-04-09 13:43:16 +06:00
pause-when-minimize.py
README.md

mpv python scripts

The python scripts in this folder are inspired from (/ duplicates of) TOOLS/lua/*.

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

--script=/path/to/script.py

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.)