[FFmpeg-devel] [PATCH] Dynamic plugins loading

Reimar Döffinger Reimar.Doeffinger
Wed Nov 3 08:24:00 CET 2010

On Tue, Nov 02, 2010 at 11:54:48PM -0700, Jason Garrett-Glaser wrote:
> >>> Would the project accept patches to dlopen() these three libraries at
> >>> runtime? Then I could (finally) drop ffmpeg-extra.
> >>
> >> i have no objection if the respective maintainers agree
> >
> > Okay, since AFAIUI you maintain mp3lame.c and xvid, I take this as
> > agreement for these codecs.
> >
> > Jason? Would you accept something like that for the x264 wrapper?
> How exactly does dlopen work?  Can it figure out the right version of
> x264 to load, or will it just blindly load the latest and then fail,
> like GNU's braindead linker does?

Well, you could make it search for a library with a matching
symbol, however I think the code might become quite messy.
Well, actually if x264 is careful enough you probably could
even load any and all x264 libs you can grab and then just
look for the correctly versioned symbol, but that approach
seems ... scary to me.

More information about the ffmpeg-devel mailing list