summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-15 18:38:06 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-17 17:18:01 +0200
commit21566b21d57ec9d8b0a40160e3e19c6970a813f7 (patch)
tree31382004b06736b0ca48010aca04601c7c3eb81c /doc
parent84170d4be053a4c7901965fe1977970b5c5e85e5 (diff)
avfilter: add scale2ref filter
This filter can be used to scale one stream to match another or based on another, useful to scale subtitles or other things to be overlayed Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 2dd7d22355..7b386eff0f 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -9122,6 +9122,23 @@ If the specified expression is not valid, it is kept at its current
value.
@end table
+@section scale2ref
+
+Scale (resize) the input video, based on a reference video.
+
+See the scale filter for available options, scale2ref supports the same but
+uses the reference video instead of the main input as basis.
+
+@subsection Examples
+
+@itemize
+@item
+Scale a subtitle stream to match the main video in size before overlaying
+@example
+'scale2ref[b][a];[a][b]overlay'
+@end example
+@end itemize
+
@section separatefields
The @code{separatefields} takes a frame-based video input and splits