Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389471 - gst-plugins-ffmpeg fails to load due to TEXTRELs
Summary: gst-plugins-ffmpeg fails to load due to TEXTRELs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal critical (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 04:36 UTC by onox
Modified: 2011-11-04 09:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description onox 2011-11-04 04:36:35 UTC
First of all, I _have_ installed a boatload of gst-plugins-*, including -ffmpeg, -xvid, -x264, -vp8:

[I] media-plugins/gst-plugins-ffmpeg (0.10.12(0.10)
[I] media-plugins/gst-plugins-vp8 (0.10.22(0.10)
[I] media-plugins/gst-plugins-x264 (0.10.18(0.10)
[I] media-plugins/gst-plugins-xvid (0.10.22(0.10)

Problem is that when I use gst-launch-0.10 or totem, it cannot display xvid and h264 video's. webm video's _are_ displayed.

For example, for h264, Totem says:

** Message: Missing plugin: gstreamer|0.10|totem|H.264 decoder|decoder-video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)2.1, profile=(string)baseline (H.264 decoder)

Rebuilding (once again) gst-plugins-ffmpeg, gives:

 * TEXTREL usr/lib/gstreamer-0.10/libgstffmpeg.so
 * TEXTREL usr/lib/gstreamer-0.10/libgstpostproc.so
 * TEXTREL usr/lib/gstreamer-0.10/libgstffmpegscale.so

Furthermore, gst-inspect-0.10 ffmpeg gives:

No such element or plugin 'ffmpeg'

So maybe gst-plugins-ffmpeg is broken. GStreamer used to work long long time (could easily be 2 years) ago. (This bug made me switch to mplayer some years ago) Maybe it's a configuration issue that GStreamer don't know how to lookup some plugins or something (system is a couple of years old; did original stage3 install some years ago) (I don't even whether GStreamer has some configuration files)

Portage 2.1.10.11 (hardened/linux/x86, gcc-4.4.5, unavailable, 2.6.39-hardened-r8 i686)
=================================================================
System uname: Linux-2.6.39-hardened-r8-i686-Intel-R-_Pentium-R-_M_processor_1600MHz-with-gentoo-2.0.2
Timestamp of tree: Wed, 02 Nov 2011 23:15:01 +0000
app-shells/bash:          4.0_p37
dev-lang/python:          2.6.7, 3.2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         1.6-r2
sys-devel/autoconf:       2.13::<unknown repository>, 2.68
sys-devel/automake:       1.10.1, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo desktop-effects gnome hardened-dev x11 x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=i686 -O2 -pipe -fforce-addr -msse2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=i686 -O2 -pipe -fforce-addr -msse2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs candy collision-protect distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"

Reproducible: Always
Comment 1 Arun Raghavan (RETIRED) gentoo-dev 2011-11-04 06:36:04 UTC
After some debugging on IRC, the problem is that the user is running a hardened system and the textrels disallow any gst-ffmpeg bits from being loaded.
Comment 2 onox 2011-11-04 06:38:38 UTC
When I do:

rm .gstreamer-0.10/registry.i686.bin
gst-launch-0.10 playbin2 uri=file:///path/to/super/top/secret/file

(gst-plugin-scanner:17420): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstpostproc.so': /usr/lib/gstreamer-0.10/libgstpostproc.so: cannot make segment writable for relocation: Permission denied

(gst-plugin-scanner:17420): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstffmpeg.so': /usr/lib/gstreamer-0.10/libgstffmpeg.so: cannot make segment writable for relocation: Permission denied

(gst-plugin-scanner:17420): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstffmpegscale.so': /usr/lib/gstreamer-0.10/libgstffmpegscale.so: cannot make segment writable for relocation: Permission denied

I even recompiled gst-plugins-ffmpeg with vanilla compiler. Doesn't fix it.
Comment 3 Arun Raghavan (RETIRED) gentoo-dev 2011-11-04 09:43:51 UTC
Fixed in 0.10.13-r1.