[FFmpeg-devel] [PATCH] Dynamic plugins loading

Jason Garrett-Glaser darkshikari
Wed Nov 3 10:07:03 CET 2010

On Wed, Nov 3, 2010 at 12:24 AM, Reimar D?ffinger
<Reimar.Doeffinger at gmx.de> wrote:
> 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.

That last doesn't seem too bad, considering that x264 *does* have
symbol versioning already...

Dark Shikari

More information about the ffmpeg-devel mailing list