[FFmpeg-devel] [PATCH 3/3] avdevice: use av_gettime_relative() for timestamps

Nicolas George george at nsup.org
Sun Feb 7 18:28:52 EET 2021


Kieran Kunhya (12021-02-07):
> You do care because different sources generated either by a PC or different
> physical cameras will drift. E.g at 25fps after one hour you might get
> 90000 frames from one and 90002 or whatever frames from another etc. And of
> course the timestamps will drift slowly. Unfortunately you seem to share
> the same fundamental misunderstandings as the kernel developers.

Your reasoning is backwards: different time bases is precisely the
reason we need the option of timestamps with a common reference frame.

With the situation you describe, the application that captures the two
cameras can detect that one is faster than the other and duplicate or
skip frames as necessary. Without a common timestamp, it is not
possible.

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-devel/attachments/20210207/b3eb4834/attachment.sig>


More information about the ffmpeg-devel mailing list