diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2023-03-26 19:32:17 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2023-03-29 00:15:19 +0200 |
commit | 5c1330798978cee5b4d7926bea611820b1019804 (patch) | |
tree | b8470b2101743ffe76a80fb0901806d9b3a7a6a4 /doc | |
parent | 7792f53e5e66eb3a340e93af12ab80c4a197e6b7 (diff) | |
download | ffmpeg-5c1330798978cee5b4d7926bea611820b1019804.tar.gz |
doc/filters: mentions that whitespaces are ignored in the filtergraph specification
Also provide example showing how to use this feature to improve filtergraph
readability.
Address issue:
http://trac.ffmpeg.org/ticket/8115
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 1c9d523340..889de8b11a 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -214,6 +214,23 @@ In a complete filterchain all the unlabelled filter input and output pads must be connected. A filtergraph is considered valid if all the filter input and output pads of all the filterchains are connected. +Leading and trailing whitespaces (space, tabs, or line feeds) separating tokens +in the filtergraph specification are ignored. This means that the filtergraph +can be expressed using empty lines and spaces to improve redability. + +For example, the filtergraph: +@example +testsrc,split[L1],hflip[L2];[L1][L2] hstack +@end example + +can be represented as: +@example +testsrc, +split [L1], hflip [L2]; + +[L1][L2] hstack +@end example + Libavfilter will automatically insert @ref{scale} filters where format conversion is required. It is possible to specify swscale flags for those automatically inserted scalers by prepending |