summaryrefslogtreecommitdiffstats
path: root/doc/filters.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 22:29:17 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-02 22:29:17 +0000
commita532bb390f92528f4624d7fe57f696df78944111 (patch)
treee678e24219ccbf2f4daaee38dee36a7774996086 /doc/filters.texi
parent6f84cd127947394e53a6621e9ed077517df5a6d2 (diff)
downloadffmpeg-streaming-a532bb390f92528f4624d7fe57f696df78944111.zip
ffmpeg-streaming-a532bb390f92528f4624d7fe57f696df78944111.tar.gz
Add setpts filter, ported from the libavfilter soc repo.
Originally committed as revision 25655 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc/filters.texi')
-rw-r--r--doc/filters.texi60
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 2abe099..e090a04 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -502,6 +502,66 @@ settb=2*intb
settb=AVTB
@end example
+@section setpts
+
+Change the PTS (presentation timestamp) of the input video frames.
+
+Accept in input an expression evaluated through the eval API, which
+can contain the following constants:
+
+@table @option
+@item PTS
+the presentation timestamp in input
+
+@item PI
+Greek PI
+
+@item PHI
+golden ratio
+
+@item E
+Euler number
+
+@item N
+the count of the input frame, starting from 0.
+
+@item STARTPTS
+the PTS of the first video frame
+
+@item INTERLACED
+tell if the current frame is interlaced
+
+@item POS
+original position in the file of the frame, or undefined if undefined
+for the current frame
+
+@item PREV_INPTS
+previous input PTS
+
+@item PREV_OUTPTS
+previous output PTS
+
+@end table
+
+Some examples follow:
+
+@example
+# start counting PTS from zero
+setpts=PTS-STARTPTS
+
+# fast motion
+setpts=0.5*PTS
+
+# slow motion
+setpts=2.0*PTS
+
+# fixed rate 25 fps
+setpts=N/(25*TB)
+
+# fixed rate 25 fps with some jitter
+setpts='1/(25*TB) * (N + 0.05 * sin(N*2*PI/25))'
+@end example
+
@section slicify
Pass the images of input video on to next video filter as multiple
OpenPOWER on IntegriCloud