lavfi: port mp test source
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user