From 25bd428393fd555afb39b830d836ce48a8b75101 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Mon, 7 Feb 2022 21:06:35 +0100 Subject: [PATCH] DOCS/mpv: improve vf=rotate examples We have a few examples with vf=rotate=90, but libavfilter's rotate accepts radians - not degrees, so a value of 90 is valid but misleading because it's not 90 degrees. Change the value of 90 at those examples. Also replace "vf-add=hflip" with "vf add hflip", since that example lists commands, not options, to run. --- DOCS/man/mpv.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index 7a4c0b64d0..341f97924a 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -767,7 +767,7 @@ the following options: [something] profile-restore=copy-equal - vf-add=rotate=90 + vf-add=rotate=PI/2 # rotate by 90 degrees Then running these commands will result in behavior as commented: @@ -775,9 +775,9 @@ the following options: set vf vflip apply-profile something - vf-add=hflip + vf add hflip apply-profile something - # vf == vflip,rotate=90,hflip,rotate=90 + # vf == vflip,rotate=PI/2,hflip,rotate=PI/2 apply-profile something restore # vf == vflip @@ -841,7 +841,7 @@ and unintuitive behavior. profile-desc=Mess up video when entering fullscreen profile-cond=fullscreen profile-restore=copy - vf-add=rotate=90 + vf-add=rotate=PI/2 # rotate by 90 degrees This appends the ``rotate`` filter to the video filter chain when entering fullscreen. When leaving fullscreen, the ``vf`` option is set to the value @@ -854,7 +854,7 @@ and unintuitive behavior. [something] profile-cond=fullscreen - vf-add=@rot:rotate=90 + vf-add=@rot:rotate=PI/2 [something-inv] profile-cond=not fullscreen