[FFmpeg-devel] [RFC] Moving edit list handling out of demuxers
Nicolas George
george at nsup.org
Wed Jun 18 10:17:22 EEST 2025
Tomas Härdin (HE12025-06-17):
> The present hack doesn't handle this kind of stuff correctly anyway,
> because it cannot cut audio except on frame boundaries.
Oh, the fallacious argument “if it is not perfect it is worthless”!
It is true that the current hacks cannot deliver perfect accuracy. It is
entirely false and hypocritical to pretend they do not provide valuable
service. In a lot of use cases, the small inaccuracy they impose is
perfectly negligible. This is in particular true for simple players,
whose A-V sync code will just smooth over the inaccuracy.
And before you reply that a proper API will do that without the
inaccuracy, please take the time to reflect that a new proper API will
not magically bring the features to existing applications. Applications
need to be updated to make use of the API.
What we should have is both a proper API to expose the information to
high-level applications and the current hacks to bring the feature
transparently if not perfectly to existing applications.
--
Nicolas George
More information about the ffmpeg-devel
mailing list