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

Nicolas George george at nsup.org
Sun Feb 7 15:21:38 EET 2021


Marton Balint (12021-02-07):
> av_gettime_relative() is using the monotonic clock therefore more suitable as a
> timestamp source and for relative time calculations.
> 
> Probably fixes ticket #9089.

Not ok.

This is a user-visible change of behavior, we cannot do it just like
that.

Furthermore, for devices, timestamps are not only needed to synchronize
between devices within the same computer, they may be needed to
synchronize between devices connected to different computers, or between
devices and other network streams (IP webcams are the obvious example).

The best course of action is to generalize what was done with v4l: make
it an option.

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/3d376a6d/attachment.sig>


More information about the ffmpeg-devel mailing list