diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2015-06-13 15:09:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-14 01:04:14 +0200 |
commit | f17d973413ec9a1e4d08ad409e64262c252e9ac2 (patch) | |
tree | cec8cd303fc040238f4d57ff62b741ef5aee96df /doc/filters.texi | |
parent | 4aebaed0e17b396bd9d18acb8e58a4700c7559df (diff) | |
download | ffmpeg-f17d973413ec9a1e4d08ad409e64262c252e9ac2.tar.gz |
avfilter/vf_colorkey: Add colorkey video filter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 54b34644c4..6437c0c6c8 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -3029,6 +3029,45 @@ colorbalance=rs=.3 @end example @end itemize +@section colorkey +RGB colorspace color keying. + +The filter accepts the following options: + +@table @option +@item color +The color which will be replaced with transparency. + +@item similarity +Similarity percentage with the key color. + +0.01 matches only the exact key color, while 1.0 matches everything. + +@item blend +Blend percentage. + +0.0 makes pixels either fully transparent, or not transparent at all. + +Higher values result in semi-transparent pixels, with a higher transparency +the more similar the pixels color is to the key color. +@end table + +@subsection Examples + +@itemize +@item +Make every green pixel in the input image transparent: +@example +ffmpeg -i input.png -vf colorkey=green out.png +@end example + +@item +Overlay a greenscreen-video on top of a static background image. +@example +ffmpeg -i background.png -i video.mp4 -filter_complex "[1:v]colorkey=0x3BBD1E:0.3:0.2[ckout];[0:v][ckout]overlay[out]" -map "[out]" output.flv +@end example +@end itemize + @section colorlevels Adjust video input frames using levels. |