PDA

View Full Version : 8.4+aiglx/compiz video flickering


Nicolas
04-17-2008, 08:11 AM
Hi...

I've been using compiz since yesterday with the release of 8.4 but I can't seem to find the solution to play videos decently. I can either get a black window or severe flickering depending on the combination of configurations I try.

I'm able to play fullscreen correctly but I would like to be able to play windowed.

Does anyone have a solution for this? (Besides disabling aiglx?).

Thanks!

Mobility X700 128MB (R300)

bridgman
04-17-2008, 09:17 AM
When you say "disabling aiglx" do you mean "disabling compiz" ?

Nicolas
04-17-2008, 09:26 AM
Hmm, how can I leave AIGLX enabled without Compiz?

If I disable the effects on Ubuntu configuration without setting AIGLX "false" on xorg.conf, does it mean AIGLX is enabled (without Compiz)?

I can try this later...

Melcar
04-17-2008, 09:37 AM
Use X11 to render videos.

Nicolas
04-17-2008, 10:34 AM
Section "Device"
Identifier "ATI Technologies Inc Radeon Mobility X700 (PCIE)"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "off"
Option "XAANoOffscreenPixmaps" "true"
Option "AllowGLXWithComposite" "true"
# Option "DisableGLXRootCLipping" "true"
# Option "TexturedVideoSync" "on"
Option "EnableMonitor" "tmds1"
# Option "EnableMonitor" "tmds1,lvds"
Option "DesktopSetup" "single"
BusID "PCI:1:0:0"
EndSection


With these options I get unaccelerated video (XV doesn't work).
Edit: Opengl crashes my aiglx (refreshes no longer happen automatically). Had to comment out AllowGLXWithComposite.

If I enable VideoOverlay, I get flickering, with both video and OpenGL. Also, if I move a window with video or OpenGL content, the content stays on the same place until I set the final window location, with severe flickering.

mancunian
04-17-2008, 11:09 AM
using X11 for video is fine, but not an option if you want to run apps like google earth under compiz. Is there any other way to get rid of the flickering while still running compiz?

Melcar
04-17-2008, 11:15 AM
It's a limitation of the DRI framework. There is a thread on this somewhere around here. Basically you can't have accelerated desktops and accelerated playback on at the same time. Just use X11 to render videos and the flickering will go away, but 3D games (and applications like Google Earth) will still suffer from flickering. If you really want to use Xv/opengl you're going to have to turn Compiz off. DRI2 fixes this issue and I hear it should be coming out soon.

Nicolas
04-17-2008, 12:02 PM
I can't get video without flickering when aiglx/compiz is enabled. No combination of configurations works for me.

DRI2 should be out soon. OK... But when will fglrx support DRI2?

Dandel
04-17-2008, 03:45 PM
Hi...

I've been using compiz since yesterday with the release of 8.4 but I can't seem to find the solution to play videos decently. I can either get a black window or severe flickering depending on the combination of configurations I try.

I'm able to play fullscreen correctly but I would like to be able to play windowed.

Does anyone have a solution for this? (Besides disabling aiglx?).

Thanks!

Mobility X700 128MB (R300)

Which video player are you using, and do you have XVideo enabled?

Nicolas
04-17-2008, 03:59 PM
Which video player are you using, and do you have XVideo enabled?

How do I check if my XVideo is enabled?

I've tried Totem and MPlayer.

Dandel
04-24-2008, 05:23 AM
The easiest way is to run the program:

gstreamer-properties

then under the video tab you should be able to figure out very easily if your using Xvideo or not.

Bigon
04-24-2008, 02:42 PM
DRI2 should be out soon. OK... But when will fglrx support DRI2?

Good question, any idea when fglrx will support DRI2?

TechMage89
04-24-2008, 03:40 PM
DRI2 *just* came out, so it may be a while before fglrx supports it. The open-source driver may even support it first!

Thetargos
04-25-2008, 01:00 AM
How come neither Intel or nVidia drivers needed DRI2 to provide flicker-free video playback, plus flicker-free 3D rendering? What is preventing AMD's fglrx drivers to have the same functionality?

Melcar
04-25-2008, 01:18 AM
How come neither Intel or nVidia drivers needed DRI2 to provide flicker-free video playback, plus flicker-free 3D rendering? What is preventing AMD's fglrx drivers to have the same functionality?

Nvidia binaries use a "tweaked" glx extention. Don't ask me how exactly it works, but it has something to do with bypassing X or something. Not sure about Intel drivers, but I do know that they are the most actively supported, so it should no surprise that they offer the best experience out of all the available drivers.

karthikrg
04-25-2008, 01:24 AM
Is it something to do with Nvidia implementing it's own brand of AIGLX? I read about this somewhere online

heng
04-25-2008, 06:55 AM
Hi...
I'm able to play fullscreen correctly but I would like to be able to play windowed.

Does anyone have a solution for this? (Besides disabling aiglx?).

Thanks!

Mobility X700 128MB (R300)

You can recompile mplayer with some funky patches that apply the relevant zen.

http://smspillaz.wordpress.com/2007/10/18/unlocking-the-full-video-potential-of-your-video-card/

Under Ubuntu hardy, I had some problems with the stock release of mplayer, so I patched it with the ubuntu patches and the compiz patches and it all works really nicely - I can even have transparent windows. If you have Hardy, try this deb (http://www.srcf.ucam.org/~whg21/mplayer_1.0rc2~0compiz-1_i386.deb) (it bumps the epoch number so it doesn't get overwritten by the ubuntu mplayer version).

adamk
04-25-2008, 08:07 AM
How come neither Intel or nVidia drivers needed DRI2 to provide flicker-free video playback, plus flicker-free 3D rendering? What is preventing AMD's fglrx drivers to have the same functionality?

nvidia doesn't use Xorg's direct rendering infrastructure. Under compiz the intel driver does suffer from the same flickering video (unless you use textured video, which is still problematic) and flickering 3D applications (unless you use DRI2).

Adam

damentz
04-25-2008, 04:52 PM
Section "Device"
Identifier "ATI Technologies Inc Radeon Mobility X700 (PCIE)"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "off"
Option "XAANoOffscreenPixmaps" "true"
Option "AllowGLXWithComposite" "true"
# Option "DisableGLXRootCLipping" "true"
# Option "TexturedVideoSync" "on"
Option "EnableMonitor" "tmds1"
# Option "EnableMonitor" "tmds1,lvds"
Option "DesktopSetup" "single"
BusID "PCI:1:0:0"
EndSection

You have too many options cluttering your conf... try this.

Section "Device"
Identifier "ATI Technologies Inc Radeon Mobility X700 (PCIE)"
Driver "fglrx"
Option "TexturedVideo" "on"
Option "XAANoOffscreenPixmaps" "true"
Option "DesktopSetup" "single"
BusID "PCI:1:0:0"
EndSection

There's nothing you can do about the flickering besides disabling video acceleration and using software rendering with the x11 output - mplayer and vlc both allow you to configure your output to x11.

Hopefully this is fixed in the next version of fglrx.

pedepy
04-25-2008, 07:57 PM
Use X11 to render videos.


better yet, use compiz video. :)

you'll need a compiz-patched mplayer to render the video - that is, it patches the code to run the 'xv' video driver to point to compiz instead. when that'll all fine & done, run mplayer using 'xv' as the video, and compiz will do the rendering.

result: redirected video, thats higher on the CPU than actual xv but much lower so than x11, and smoother + prettier might I add. that what i use. :eek:

the real fix for this will come when all direct rendered data - that is, xv video & all fashions of opengl apps that draw straight to the framebuffer - gets to be redirected using DRI2, which is still somewhat experimental and for which fglrx support is expected to be somewhere in the long, long term future. unfortunatly. :(

go ati :)