summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2020-06-25 20:45:53 +0200
committerNicolas George <george@nsup.org>2020-09-08 14:39:43 +0200
commitddba05afe4d325bf8e545b8f1777d6010cc25e93 (patch)
tree08d5854de52ecb9be08ff7143f49391316db6dd9 /doc
parente6d625d008df9392dc34cf5493c21768d002f827 (diff)
lavfi/vsrc_testsrc: switch to activate.
Allow to set the EOF timestamp. Also: doc/filters/testsrc*: specify the rounding of the duration option. The changes in the ref files are right. For filter-fps-down, the graph is testsrc2=r=7:d=3.5,fps=3. 3.5=24.5/7, so the EOF of testsrc2 will have PTS 25/7. 25/7=(10+5/7)/3, so the EOF PTS for fps should be 11/7, and the output should contain a frame at PTS 10. For filter-fps-up, the graph is testsrc2=r=3:d=2,fps=7, for filter-fps-up-round-down and filter-fps-up-round-up it is the same with explicit rounding options. But there is no rounding: testsrc2 produces exactly 6 frames and 2 seconds, fps converts it into exactly 14 frames. The tests should probably be adjusted to restore them to a useful coverage.
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index d0ff3d470f..cbb16f22b2 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -22979,6 +22979,10 @@ for the accepted syntax.
If not specified, or the expressed duration is negative, the video is
supposed to be generated forever.
+Since the frame rate is used as time base, all frames including the last one
+will have their full duration. If the specified duration is not a multiple
+of the frame duration, it will be rounded up.
+
@item sar
Set the sample aspect ratio of the sourced video.