aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-08 14:41:22 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-11 16:19:48 +0200
commit1a5e63f924ce6f4e5e10ec859e0cbcdbf839344f (patch)
tree2e67fb6a180117e4db1283b19aff9eeeece4d9de /doc/filters.texi
parent961e8f31cfd2fdebf6709bc43cb38440911eb70c (diff)
downloadffmpeg-1a5e63f924ce6f4e5e10ec859e0cbcdbf839344f.tar.gz
lavfi: port mp test source
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi57
1 files changed, 57 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 803b8c080c..50d933f904 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -2034,6 +2034,63 @@ movie=/dev/video0:f=video4linux2, scale=180:-1, setpts=PTS-STARTPTS [movie];
@end example
+@section mptestsrc
+
+Generate various test patterns, as generated by the MPlayer test filter.
+
+The size of the generated video is fixed, and is 256x256.
+This source is useful in particular for testing encoding features.
+
+This source accepts an optional sequence of @var{key}=@var{value} pairs,
+separated by ":". The description of the accepted options follows.
+
+@table @option
+
+@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".
+
+@item duration, d
+Set the video duration of the sourced video. The accepted syntax is:
+@example
+[-]HH[:MM[:SS[.m...]]]
+[-]S+[.m...]
+@end example
+See also the function @code{av_parse_time()}.
+
+If not specified, or the expressed duration is negative, the video is
+supposed to be generated forever.
+
+@item test, t
+
+Set the number or the name of the test to perform. Supported tests are:
+@table @option
+@item dc_luma
+@item dc_chroma
+@item freq_luma
+@item freq_chroma
+@item amp_luma
+@item amp_chroma
+@item cbp
+@item mv
+@item ring1
+@item ring2
+@item all
+@end table
+
+Default value is "all", which will cycle through the list of all tests.
+@end table
+
+For example the following:
+@example
+testsrc=t=dc_luma
+@end example
+
+will generate a "dc_luma" test pattern.
+
@section nullsrc
Null video source, never return images. It is mainly useful as a