[FFmpeg-devel] [PATCH 18/24] fftools/ffmpeg: add thread-aware transcode scheduling infrastructure

Anton Khirnov anton at khirnov.net
Thu Nov 9 13:39:01 EET 2023


Quoting Michael Niedermayer (2023-11-04 19:44:09)
> On Sat, Nov 04, 2023 at 08:56:27AM +0100, Anton Khirnov wrote:
> > See the comment block at the top of fftools/ffmpeg_sched.h for more
> > details on what this scheduler is for.
> > 
> > This commit adds the scheduling code itself, along with minimal
> > integration with the rest of the program:
> > * allocating and freeing the scheduler
> > * passing it throughout the call stack in order to register the
> >   individual components (demuxers/decoders/filtergraphs/encoders/muxers)
> >   with the scheduler
> > 
> > The scheduler is not actually used as of this commit, so it should not
> > result in any change in behavior. That will change in future commits.
> > ---
> >  fftools/Makefile          |    1 +
> >  fftools/ffmpeg.c          |   18 +-
> >  fftools/ffmpeg.h          |   24 +-
> >  fftools/ffmpeg_dec.c      |   10 +-
> >  fftools/ffmpeg_demux.c    |   46 +-
> >  fftools/ffmpeg_enc.c      |   13 +-
> >  fftools/ffmpeg_filter.c   |   37 +-
> >  fftools/ffmpeg_mux.c      |   17 +-
> >  fftools/ffmpeg_mux.h      |   11 +
> >  fftools/ffmpeg_mux_init.c |   82 +-
> >  fftools/ffmpeg_opt.c      |   22 +-
> >  fftools/ffmpeg_sched.c    | 2072 +++++++++++++++++++++++++++++++++++++
> >  fftools/ffmpeg_sched.h    |  461 +++++++++
> >  13 files changed, 2758 insertions(+), 56 deletions(-)
> >  create mode 100644 fftools/ffmpeg_sched.c
> >  create mode 100644 fftools/ffmpeg_sched.h
> 
> Is fate intended to pass for each point in the patchset ?

19-24 will be squashed on push, so 19-23 are not supposed to pass fate,
work at all, or even build. All other points are supposed to pass fate.

> 
> make -j32 fate-h264-skip-nointra
> seems to fail after this

fixed

Thanks,
-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list