diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-07-31 21:42:59 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-03 16:26:58 +0200 |
commit | 39a8275fdf4f607023b483a58b255600d5f7a9e7 (patch) | |
tree | 557369f658b26c338cf2c7fcf253a056c539513c /doc/filters.texi | |
parent | e39f6a3a5ca2a51360dac65221bcd5e078b98900 (diff) | |
download | ffmpeg-streaming-39a8275fdf4f607023b483a58b255600d5f7a9e7.zip ffmpeg-streaming-39a8275fdf4f607023b483a58b255600d5f7a9e7.tar.gz |
lavfi: move color filter to testsrc, factorize
Diffstat (limited to 'doc/filters.texi')
-rw-r--r-- | doc/filters.texi | 56 |
1 files changed, 16 insertions, 40 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index cb325be..2609065 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -3635,45 +3635,6 @@ cellauto=p='@@@@ @@ @@@@':s=100x400:full=0:rule=18 @end itemize -@section color - -Provide an uniformly colored input. - -This source accepts list of options in the form of -@var{key}=@var{value} pairs separated by ":". - -Follows the description of the accepted parameters. - -@table @option - -@item color, c -Specify the color of the source. It can be the name of a color (case -insensitive match) or a 0xRRGGBB[AA] sequence, possibly followed by an -alpha specifier. The default value is "black". - -@item size, s -Specify the size of the sourced video, it may be a string of the form -@var{width}x@var{height}, or the name of a size abbreviation. The -default value is "320x240". - -@item rate, r -Specify the frame rate of the sourced video, as the number of frames -generated per second. It has to be a string in the format -@var{frame_rate_num}/@var{frame_rate_den}, an integer number, a float -number or a valid video frame rate abbreviation. The default value is -"25". - -@end table - -For example the following graph description will generate a red source -with an opacity of 0.2, with size "qcif" and a frame rate of 10 -frames per second, which will be overlayed over the source connected -to the pad with identifier "in". - -@example -"color=c=red@@0.2:s=qcif:r=10 [color]; [in][color] overlay [out]" -@end example - @section mptestsrc Generate various test patterns, as generated by the MPlayer test filter. @@ -3884,7 +3845,9 @@ ffplay -f lavfi life=s=300x200:mold=10:r=60:ratio=0.1:death_color=#C83232:life_c @end example @end itemize -@section nullsrc, rgbtestsrc, testsrc +@section color, nullsrc, rgbtestsrc, testsrc + +The @code{color} source provides an uniformly colored input. The @code{nullsrc} source returns unprocessed video frames. It is mainly useful to be employed in analysis / debugging tools, or as the @@ -3903,6 +3866,12 @@ separated by ":". The description of the accepted options follows. @table @option +@item color, c +Specify the color of the source, only used in the @code{color} +source. It can be the name of a color (case insensitive match) or a +0xRRGGBB[AA] sequence, possibly followed by an alpha specifier. The +default value is "black". + @item size, s Specify the size of the sourced video, it may be a string of the form @var{width}x@var{height}, or the name of a size abbreviation. The @@ -3946,6 +3915,13 @@ testsrc=duration=5.3:size=qcif:rate=10 will generate a video with a duration of 5.3 seconds, with size 176x144 and a frame rate of 10 frames per second. +The following graph description will generate a red source +with an opacity of 0.2, with size "qcif" and a frame rate of 10 +frames per second. +@example +color=c=red@@0.2:s=qcif:r=10 +@end example + If the input content is to be ignored, @code{nullsrc} can be used. The following command generates noise in the luminance plane by employing the @code{mp=geq} filter: |