FFmpeg 0.7.17
Since* 0.7
#

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:

PTS

the presentation timestamp in input

PI

Greek PI

PHI

golden ratio

E

Euler number

N

the count of the input frame, starting from 0.

STARTPTS

the PTS of the first video frame

INTERLACED

tell if the current frame is interlaced

POS

original position in the file of the frame, or undefined if undefined for the current frame

PREV_INPTS

previous input PTS

PREV_OUTPTS

previous output PTS

Some examples follow:

# 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))'