[FFmpeg-user] Some questions about PTS

Nicolas George george at nsup.org
Fri Aug 28 12:01:36 EEST 2020


Michael Koch (12020-08-28):
> -- 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.

Looks mostly correct.

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

"Delayed by x frame" is only relevant for a stream with constant frame
per second. Please think first and foremost about timestamps and as
little as possible in terms of number of frames.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200828/dd6a1846/attachment.sig>


More information about the ffmpeg-user mailing list