X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fbitstream_filters.texi;h=60e729484d7dbe12634ee2342093b96eb52650bb;hb=7b6012efaae549b8e624876dba9550cb003f98b1;hp=8a2f55cc41c8ba1be4acec1b332f8f87f956225b;hpb=2035620b7cc5a3087b4eb632fba188f89af61541;p=ffmpeg diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 8a2f55cc41c..60e729484d7 100644 --- a/doc/bitstream_filters.texi +++ b/doc/bitstream_filters.texi @@ -675,6 +675,63 @@ Remove extradata from all frames. @end table @end table +@section setts +Set PTS and DTS in packets. + +It accepts the following parameters: +@table @option +@item ts +@item pts +@item dts +Set expressions for PTS, DTS or both. +@end table + +The expressions are evaluated through the eval API and can contain the following +constants: + +@table @option +@item N +The count of the input packet. Starting from 0. + +@item TS +The demux timestamp in input in case of @code{ts} or @code{dts} option or presentation +timestamp in case of @code{pts} option. + +@item POS +The original position in the file of the packet, or undefined if undefined +for the current packet + +@item DTS +The demux timestamp in input. + +@item PTS +The presentation timestamp in input. + +@item STARTDTS +The DTS of the first packet. + +@item STARTPTS +The PTS of the first packet. + +@item PREV_INDTS +The previous input DTS. + +@item PREV_INPTS +The previous input PTS. + +@item PREV_OUTDTS +The previous output DTS. + +@item PREV_OUTPTS +The previous output PTS. + +@item TB +The timebase of stream packet belongs. + +@item SR +The sample rate of stream packet belongs. +@end table + @anchor{text2movsub} @section text2movsub