[FFmpeg-devel] [PATCH 3/3] lavf/utils: add flag to fill unset timestamps from wallclock offset

Nicolas George george at nsup.org
Sun Dec 10 13:40:46 EET 2017


Rodger Combs (2017-12-10):
> The goal is to use this in conjunction with the previous patches in
> the set to deal with live broadcast streams coming off a tuner. The
> first patch sets the CORRUPT flag when the TEI bit is set in a TS
> packet (indicating that the tuner detected uncorrectable errors), the
> second clears the PTS and DTS in response to that flag (since a bit
> flip that causes a too-high timestamp can throw off the whole stream,
> since ffmpeg.c enforces monotonicity), and the third re-generates DTSs
> by interpolating from the previous packet's receipt time.

You did not give enough details to judge, but I will try to extrapolate.

This change would be useful for an application that receives live
broadcast streams, from a source that may be corrupted, but that uses
wallclock timestamps, synchronized with the client application and with
no network delay, and that cannot fiddle with timestamps itself.

It seems awfully specific. Too specific for a change in the core
workings of the library.

> In my target use-case

Stop. We are not speaking of your target use case, we are speaking of a
change in the core components of the library. It should be designed to
be useful for more than your own use case.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171210/cd499d40/attachment.sig>


More information about the ffmpeg-devel mailing list