summaryrefslogtreecommitdiffstats
path: root/DOCS/man/vf.rst
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-08-10 20:15:04 -0500
committerDudemanguy <random342@airmail.cc>2023-08-13 19:58:20 +0000
commita177fb6188e735da3536109105ec55a51b3b863c (patch)
tree3e0951b5e031056b16db31d942ee461d980293ea /DOCS/man/vf.rst
parentc62b45ec2ab020dad04a95aff3c85aab631b1f32 (diff)
downloadmpv-a177fb6188e735da3536109105ec55a51b3b863c.tar.bz2
mpv-a177fb6188e735da3536109105ec55a51b3b863c.tar.xz
vf_vapoursynth: save display resolution as a variable
mpv has a generic method for getting the display resolution, so we can save it in vf_vapoursynth without too much trouble. Unfortunately, the resolution won't actually be available in many cases (like my own) because the windowing backend doesn't actually know it yet. It looks like at least windows always returns the default monitor (maybe we should do something similar for x11 and wayland), so there's at least some value. Of course, this still has a bunch of pitfalls like not being able to cope with multi monitor setups at all but so does display_fps. As an aside, the vapoursynth API this uses apparently requires R26 (an ancient version anyway), so bump the build to compensate for this. Fixes #11510
Diffstat (limited to 'DOCS/man/vf.rst')
-rw-r--r--DOCS/man/vf.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/vf.rst b/DOCS/man/vf.rst
index f6842490cd..bd3254e557 100644
--- a/DOCS/man/vf.rst
+++ b/DOCS/man/vf.rst
@@ -583,6 +583,12 @@ Available mpv-only filters are:
``display_fps``
Refresh rate of the current display. Note that this value can be 0.
+ ``display_res``
+ Resolution of the current display. This is an integer array with the
+ first entry corresponding to the width and the second entry coresponding
+ to the height. These values can be 0. Note that this will not respond to
+ monitor changes and may not work on all platforms.
+
``vavpp``
VA-API video post processing. Requires the system to support VA-API,
i.e. Linux/BSD only. Works with ``--vo=vaapi`` and ``--vo=gpu`` only.