[FFmpeg-devel] [PATCH] ffmpeg: apply discontinuity adjustment per-stream

Anton Khirnov anton at khirnov.net
Tue Jan 10 13:02:26 EET 2023


Quoting Gyan Doshi (2023-01-03 11:22:17)
> At present, the offset for discontinuity adjustment is applied per-file but
> the check for discontinuity is intra-stream so the same discontinuity when
> seen in multiple streams with copyts, leads to compounded adjustment of the
> discontinuity offset. This introduces gaps in streams, leading to loss of sync
> or even de facto loss of stream.
> 
> The ts_offset_discont parameter is transferred to InputStream and adjusted
> based on intra-stream gaps.

I never had much use for this feature, but I wonder if adding different
offsets to different streams isn't going against the whole point of
timestamps, which is synchronizing them.

Also, this could REALLY use tests.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list