summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2019-05-13 21:58:19 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2019-05-13 21:58:19 +0530
commit21832b93d53312fa43b40de73d44805bdacaab26 (patch)
treec1ff48363b57ba2462090e6b16730289a38fb930 /doc
parent9d269301f017657c3ae2e95a411317640acd39a8 (diff)
doc/filters: add scale2ref example for proportional scaling
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index d231387d59..0683f7bff5 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -15316,6 +15316,12 @@ Scale a subtitle stream (b) to match the main video (a) in size before overlayin
@example
'scale2ref[b][a];[a][b]overlay'
@end example
+
+@item
+Scale a logo to 1/10th the height of a video, while preserving its display aspect ratio.
+@example
+[logo-in][video-in]scale2ref=w=oh*mdar:h=ih/10[logo-out][video-out]
+@end example
@end itemize
@anchor{selectivecolor}