mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
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.
This commit is contained in:
parent
34e0a212cd
commit
25bd428393
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user