From f52056b76da180bd3a04365e7da178f15cdb44a7 Mon Sep 17 00:00:00 2001 From: llyyr Date: Fri, 1 Sep 2023 00:46:03 +0530 Subject: Revert "aspect: change --video-pan-x/y to be relative to the destination rect" There are way too many preexisting scripts that rely on this behavior for video panning, like for example scripts that allow you to use mpv as an image viewer. If this behavior is desired then it may be better to add a new option for panning relative to the destination instead. The restriction of video-pan-x/y being clamped to {-3, 3} also results in the video being impossible to pan if it was zoomed in beyond a certain degree. This reverts commit 7d6f9e37397ed57be0f1375afe8fddfc451aa152. --- DOCS/man/options.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'DOCS/man/options.rst') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 7a36e78f79..ebd0882acf 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -1546,7 +1546,9 @@ Video ``--video-pan-x=``, ``--video-pan-y=`` Moves the displayed video rectangle by the given value in the X or Y - direction. The unit is in fractions of the size of the destination rectangle. + direction. The unit is in fractions of the size of the scaled video (the + full size, even if parts of the video are not visible due to panscan or + other options). For example, displaying a video fullscreen on a 1920x1080 screen with ``--video-pan-x=-0.1`` would move the video 192 pixels to the left and -- cgit v1.2.3