[FFmpeg-devel] [RFC] Moving edit list handling out of demuxers

Tomas Härdin git at haerdin.se
Wed Jun 18 00:33:33 EEST 2025


fre 2025-06-13 klockan 20:07 +0530 skrev Gyan Doshi:
> 
> 
> On 2025-06-13 04:25 pm, Tomas Härdin wrote:
> > The present level of
> > edit list support could be reimplemented by just fiddling with the
> > -ss
> > and -t options. That is, the ffmpeg CLI could automatically derive
> > -ss
> > and -t from the edit list extracted by lavf.
> 
> In mov.c, edit lists are per-track and can compose their edited
> tracks 
> differently. So if the stream index/tables are to be no longer 
> reconstituted within mov,c, -ss and -t may not return synchronized 
> packets (as per the intended elst) from all streams.

The present hack doesn't handle this kind of stuff correctly anyway,
because it cannot cut audio except on frame boundaries.

/Tomas


More information about the ffmpeg-devel mailing list