totem/gstreamer/ffmpeg issues

Ralf Corsepius rc040203 at freenet.de
Wed Nov 5 03:24:25 CET 2008


On Tue, 2008-11-04 at 21:04 +0100, Hans de Goede wrote:
> Ralf Corsepius wrote:
> > Hi,
> > 
> > I don't know what has changed (and whose fault it might be), but today's
> > rpmfusion/rawhide update broke totem video play back badly for me 
> > on an F10/rawhide + rpmfusion-free + rpmfusion-nonfree system.
> > 
> > E.g. I am observing 
> > * selinux alerts related toten-video-thumbnailer and totem itself having
> > selinux problems with libavformat
> > * playback of many (all?) *.flv's and *.mp4's has stopped working (So
> > far, I haven't found any file for which it works).
> > ...
> > 
> > All I can say: rpmfusion things used to work when I tried last weekend,
> > and now don't do so anymore.
> > 
> 
> This is most likely caused by the new ffmpeg which has cpu specific 
> optimalizations turned on for the first time, try manualy removing the version 
> under /usr/lib[64]/sse2, that should make you fallback to the old no cpu 
> specific optimalizations version.

The initial sealert is on sse2/libavcodec.so.51.71.0.

Manually removing /usr/lib/sse2/libavcodec.so.51.71.0 triggers a similar
sealert on /usr/lib/sse2/libavutil.so.49.10.0

Removing both
/usr/lib/sse2/libavcodec.so.51.71.0
/usr/lib/sse2/libavutil.so.49.10.0
brings totem back into business.

> Also try turning of selinux (setenforce 0) to see if that fixes things,
This also helps ;)

Another observation:
# ls -Z libavutil.so.49.10.0 sse2/libavutil.so.49.10.0 \
libavcodec.so.51.71.0 sse2/libavcodec.so.51.71.0 

-rwxr-xr-x  root root system_u:object_r:textrel_shlib_t:s0
libavcodec.so.51.71.0
-rwxr-xr-x  root root system_u:object_r:textrel_shlib_t:s0
libavutil.so.49.10.0
-rwxr-xr-x  root root system_u:object_r:lib_t:s0
sse2/libavcodec.so.51.71.0
-rwxr-xr-x  root root system_u:object_r:lib_t:s0
sse2/libavutil.so.49.10.0

=> This seems inconsistent to me. I would suspect something is wrong
with these libraries' SELinux setup.

The sealerts recommend to
chcon -t textrel_shlib_t /usr/lib/sse2/libavcodec.so.51.71.0
chcon -t textrel_shlib_t /usr/lib/sse2/libavutil.so.49.10.0

and to
semanage fcontext -a -t \
textrel_shlib_t /usr/lib/sse2/libavcodec.so.51.71.0
semanage fcontext -a -t \
textrel_shlib_t /usr/lib/sse2/libavutil.so.49.10.0 

which also seem to remedy the issue.

=> The SELinux rules for these library need to be extended.

> I'm not advocating this as a fix, merely suggesting doing this as a way to 
> debug this.
Well, my opinion on SELinux ... it causes more collateral damage than it
helps ;)

Ralf





More information about the rpmfusion-developers mailing list