[FFmpeg-user] Some questions about PTS

Michael Koch astroelectronic at t-online.de
Fri Aug 28 10:51:24 EEST 2020


Hello all,

please comment if the following is right or wrong:

-- The timebase of a video (TB in setpts filter) is expressed in the 
unit [s] (seconds).
-- The framerate of a video (FR in setpts filter) is expressed in the 
unit [s^-1] (1/seconds).
-- In many cases the timebase is the reciprocal of the framerate, but 
this isn't always the case.
-- If the timebase is the reciprocal of the framerate, a stream can be 
delayed by x frames using setpts=PTS+x
-- In the more general case for arbitrary timebase and framerate, a 
stream can be delayed by x frames using setpts=PTS+x/(FR*TB)

Michael




More information about the ffmpeg-user mailing list