GNOME Bugzilla – Bug 104208
[PPC]ffmpeg plugin fails to load
Last modified: 2009-08-15 18:40:50 UTC
gstreamer's ffmpeg plugin fails to load: taaz and ds pointed out that it might be the -fPIC flag which doesn't work correctly on PPC's. Here's the output: INFO (28157: 0)gstxmlregistry.c(1624): gst_xml_registry_rebuild: : Plugin /opt/gnome2/lib/gstreamer-0.5/libgstffmpeg.so failed to load: Error loading plugin /opt/gnome2/lib/gstreamer-0.5/libgstffmpeg.so, reason: /opt/gnome2/lib/gstreamer-0.5/libgstffmpeg.so: R_PPC_REL24 relocation at 0x0c9e428c for symbol `fpr_23_x' out of range Plugin /opt/gnome2/lib/gstreamer-0.5/libgstffmpeg.so failed to load The same error occurs in arts, (x)videosink.
First of all, more interested in the more "stable" plugins, ie xvideosink for example. Second, who takes up this bug ?
that's what it says about (x)videosink: DEBUG(24472: 0)gstplugin.c(161): gst_plugin_load_plugin: : attempt to load plugin "/opt/gnome2/lib/gstreamer-0.5/libgstvideosink.so" INFO (24472: 0)gstxmlregistry.c(1624): gst_xml_registry_rebuild: : Plugin /opt/gnome2/lib/gstreamer-0.5/libgstvideosink.so failed to load: Error loading plugin /opt/gnome2/lib/gstreamer-0.5/libgstvideosink.so, reason: /opt/gnome2/lib/gstreamer-0.5/libgstvideosink.so: R_PPC_REL24 relocation at 0x0caf7428 for symbol `element_add_pad' out of range Plugin /opt/gnome2/lib/gstreamer-0.5/libgstvideosink.so failed to load DEBUG(24472: 0)gstplugin.c(161): gst_plugin_load_plugin: : attempt to load plugin "/opt/gnome2/lib/gstreamer-0.5/libgstxvideosink.so" INFO (24472: 0)gstxmlregistry.c(1624): gst_xml_registry_rebuild: : Plugin /opt/gnome2/lib/gstreamer-0.5/libgstxvideosink.so failed to load: Error loading plugin /opt/gnome2/lib/gstreamer-0.5/libgstxvideosink.so, reason: /opt/gnome2/lib/gstreamer-0.5/libgstxvideosink.so: R_PPC_REL24 relocation at 0x0caf7440 for symbol `ist_delete_link' out of range Plugin /opt/gnome2/lib/gstreamer-0.5/libgstxvideosink.so failed to load
I was thinking this is a problem of ffmpeg libs not being built shared. Right now the ffmpeg plugin links to ibavcodec.a and libavformat.a. I think the theory is that we have to change the build so that ffmpeg's configure script is called with --enable-shared. I did this and can provide the patch but I'm not sure it matters. ffmpeg only builds libavcodec.so not libavformat.so. Just fixing one of the libs probably isn't enough. Plus if you look at the ffmpeg build scripts it's not like it even bothers to use the flag to do -fPIC. This is ok on x86 but not many other archs. It looks like the solution may be to work on the ffmpeg build so it uses the BUILD_SHARED flag to use -fPIC and build shared lib for libavformat too. Yuck. Or of course I may be totally misdirected about the whole problem.
I've compiled the latest tarballs, ffmpeg can be loaded now. The arts plugin still doesn't load. I'm going to try out arts1.1 which is shipped with KDE3.1.
Is this still a problem?
No response in over three months--closing. Feel free to reopen if this is still a problem.