libavifile problem

Georg Seidel <[email protected]>
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After updating my debian unstable a few days ago, loading avi files
with gephex does not work anymore.

Here is the error message that I get when I load an avi with the
frbinmodule:
|>

~  <codec keeper> : WARNING: plugin /usr/lib/avifile-0.7/ffmpeg.so could
~   not be opened: /usr/lib/avifile-0.7/ffmpeg.so: undefined symbol:
~     _ZN3avm18PluginGetAttrFloatERKNS_9CodecInfoEPKcPf
~   <codec keeper> : CreateVideoDecoder(): Unknown codec 0x58564944 =
~      "DIVX"
~   @error@ [mod_frbinmodule]:> Could not load file

<<

Here is my current understanding of the situation:

~  * /usr/lib/avifile-0.7/ffmpeg.so does not contain the definition
~    of the symbol (avm::PluginGetAttrFloat).

~  * /usr/lib/libaviplay.so does contain the definitions

~  * ffmpeg.so is dynamically opened with dlopen() in libaviplay.so
~    (in lib/codeckeeper.cpp of the avifile source)

~  * the authors of libavifile seem to assume that the plugins
~    (and with them ffmpeg) can access the symbols of the
~    library that dlopens them

~  * frbinmodule is linked dynamically to libaviplay.so
~    (via the run-time linker)

~  * frbinmodule is dynamically opened inside gephex-engine with
~    dlopen()


It seems that because of this complicated setup, the symbol
avm::PluginGetAttrFloat can not be resolved.
I tried various things without success:

~  * compiled the original libavifile release (had to patch some
~    things to make it work)

~  * created the debian packages from the debian source package

~  * added -export-dynamic to the LDFLAGS of gephex-engine and
~    frbinmodule

~  * tried to open all modules in gephex with RTLD_GLOBAL
~   (gephex crashes)


The thing I don't understand is why it worked before!
What changed in the new debian package? I don't know, the
changelog does not mention anything substantial.

Does anybody experience similar problems?
I would be very thankful wether loading avis works for other
people (also on different distributions/platforms).

Thanks,

Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAyGwr/rP0cdKF/ToRAiLyAJ0U5eG4sDWt1UnHcpPE01Fmwv0SqACfRtfD
VcT5afEPt+ZSiYMTibVwRMM=
=j92r
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.