summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2022-02-07 21:06:35 +0100
committeravih <avih@users.noreply.github.com>2022-02-07 22:14:51 +0200
commit25bd428393fd555afb39b830d836ce48a8b75101 (patch)
tree3ca6ce1ead81befa0d69eef929ee9eeecf1064c4
parent34e0a212cd2e0a073a3580952549a62ede38c2d6 (diff)
downloadmpv-25bd428393fd555afb39b830d836ce48a8b75101.tar.bz2
mpv-25bd428393fd555afb39b830d836ce48a8b75101.tar.xz
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.
-rw-r--r--DOCS/man/mpv.rst10
1 files 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