[FFmpeg-devel] [PATCH] Dynamic plugins loading
Tue Nov 2 23:15:24 CET 2010
On Tue, Nov 02, 2010 at 10:39:01PM +0100, Nicolas George wrote:
> Le duodi 12 brumaire, an CCXIX, Reimar D?ffinger a ?crit?:
> > You can't do that anyway, unless you use none of the non-public API
> > functions at all (and someone else mentioned why that is highly
> > undesirable, and honestly in my opinion it makes it pointless for that
> > plugin to be implemented "below" ffmpeg instead of a wrapper above it),
> > the internal API can change any time, including for security updates.
> > Unless there's also a stable API for those plugins they are more likely to
> > be a nightmare than an improvement to users.
> The format I have written only uses structures and functions from the
> public, installed headers, and it works quite well as a LD_PRELOADed plugin.
Yes, I actually though it might work somewhat for formats, I don't think
it will for codecs though.
Even for more complex formats there's things like reading or writing
ID3 tags, interleaving, a few other stuff in internal.h that makes it
a good bit less likely to be a good implementation IMO.
More information about the ffmpeg-devel