[FFmpeg-devel] Evolution of lavfi's design and API

Nicolas George george at nsup.org
Tue Aug 30 13:00:03 EEST 2016


Le duodi 12 fructidor, an CCXXIV, Paul B Mahol a écrit :
> Nicolas, what is status of this?
> 
> I'm currently interested in frame multithreading in lavfi.

I am currently locked on a patch series to replace the recursive calls to
filter_frames() with a FIFO on each link.

I think this is an absolute necessity before considering inter-filter
multithreading.

Unfortunately, this is very tricky business because the filters'
implementation are not ready for it. Filters must be activated, by actually
calling their filter_frame() methods, when a frame is available, but not
repeatedly so when they can not perform any work, but they often provide no
visible test for that. Plus, the global API for activating a filtergraph was
not designed with that kind of working in mind.

I have made significant progress in the last weeks. I think I have got the
propagating of frames working, and the propagating of EOF conditions on
1-to-1 filters too, but there is still an issue with filters with multiple
inputs.

I could post the whole patch as is at any time, but I do not think it would
do much good as is.

Regards,

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


More information about the ffmpeg-devel mailing list