aboutsummaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-08-23 11:52:45 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-08-24 12:54:45 +0200
commitc45178cf5bf94189c7d275be7a99d9e4f8f16009 (patch)
tree2b2d369c3b853c267f8050b2d497142e36ae4bc4 /doc/filters.texi
parent0043db29676fee12290e70e0097810292d3bc40c (diff)
downloadffmpeg-c45178cf5bf94189c7d275be7a99d9e4f8f16009.tar.gz
doc/filters: itemize examples for *setpts filters
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi32
1 files changed, 25 insertions, 7 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 534526cfd6..c2b65a9fad 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -4147,27 +4147,45 @@ previous output PTS
@end table
-Some examples follow:
+@subsection Examples
+@itemize
+@item
+Start counting PTS from zero
@example
-# start counting PTS from zero
setpts=PTS-STARTPTS
+@end example
-# fast motion
+@item
+Apply fast motion effect:
+@example
setpts=0.5*PTS
+@end example
-# slow motion
+@item
+Apply slow motion effect:
+@example
setpts=2.0*PTS
+@end example
-# fixed rate 25 fps
+@item
+Set fixed rate of 25 frames per second:
+@example
setpts=N/(25*TB)
+@end example
-# fixed rate 25 fps with some jitter
+@item
+Set fixed rate 25 fps with some jitter:
+@example
setpts='1/(25*TB) * (N + 0.05 * sin(N*2*PI/25))'
+@end example
-# apply an offset of 10 seconds to the input PTS
+@item
+Apply an offset of 10 seconds to the input PTS:
+@example
setpts=PTS+10/TB
@end example
+@end itemize
@section settb, asettb