Overclock.net banner

x11 Video playback pauses

903 Views 21 Replies 7 Participants Last post by  DesertFox
Okay. I know that the x11 codec for video playback makes your processor do the work rather than your GPU. I rely on the codec because ATI drivers suck some hardcore nuts.

But even with my quad core @3.30 GHz, my AVI video playback occasionally pauses for a half second, as if my processor cant process the data fast enough. I've watched my processor % per core, and never does one core get maxed, even when it pauses.

any clues on how to fix this?
1 - 20 of 22 Posts
Check your drives and also make sure your caching enough of the video. Sometimes the defaults are too low. Also sometimes the default driver isn't the best one. If you can use dri then don't use the X11 codec. Use OpenGL or something else. Try all you have and see which one performs the best.

Which media player are you using?
It could be your sound. Pulseaudio does this sort of thing to me all the time, but if I switch to using ALSA directly everything works fine.
I've had quite a few issues with PulseAudio, video playback was one of them. Open up a terminal and type:

sudo killall pulseaudio

See if that helps.
x11 isn't a codec, its a video driver. Mplayer can use a bunch of different drivers. Do

Code:
Code:
mplayer -vo help
to see what ones are availiable, then select one and do

Code:
Code:
mplayer -vo [I]selection[/I]
to use it. gl/gl2 (OpenGL) may work, you could also try xv.
Quote:

Originally Posted by DigitalSonata View Post
x11 isn't a codec, its a video driver. Mplayer can use a bunch of different drivers. Do

Code:

Code:
mplayer -vo help
to see what ones are availiable, then select one and do

Code:

Code:
mplayer -vo [I]selection[/I]
to use it. gl/gl2 (OpenGL) may work, you could also try xv.
the problem with xv is that because ATI linux drivers suck, while I have compiz enabled, my playback flashes really fast between the video feed and a white box. I looked around and saw that the easiest fix short of disabling compiz was to swap to the x11 driver, but it has short pauses in the playback every so often.

I'll give OpenGL a shot, but I think it has the same issues as xv.
See less See more
Opengl will flicker even more. The newer ATI drivers (9.2) resolve the flickering with video playback and Xv (beware that it sometimes crashes X).
well, the new ATI drivers cause my system to not display anything at all past the Ubuntu splash. I had to disable gnome so I could get into the text only interface, install envyng-core and let that install the drivers for me.

The drivers just dont like my 3870 X2 I guess lol
Like I said Radeon doesn't get along well with Linux. Get a chip nVidia card and you will be amazed how easy and nice it is
First: It's silly to recommend him to switch cards given that ATI hardware is well supported in Linux.

Second: I haven't been paying attention to Linux Crossfire support so I had no idea the HD3870X2 was even supported; given that you already had the driver working it's obvious that it is.

Third: It's best to install the driver "manually", meaning run the ATI installer. Just remember to initialize the module at the end;

Code:
Code:
sudo aticonfig --initial
Everyone I know who used ATI in Linux said it was nothing but problems. That's what he's having, so the easy way is to swap in a nVidia card which always work great in Linux. It's an OC forum, ain't it? If you can't swap cards on this forum, then where can ya?
See less See more
I remember when I was in your shoes, back with my HD4850. Great for gaming, terrible for Linux.
See less See more
Thank you, counselor Redmist.....the prosecution rests! The verdict: use nVidia on Linux!
See less See more
I never had anything but trouble with ATI's drivers on Linux, with their higher end cards. Interestingly, they seem to work better with onboard GPUs (e.g. laptops). So I have nvidia.
Well, I know that ATI driver support for Linux sucks. I also know that I'm not swapping to nVidia until I get the spare cash to drop on a card that will be an upgrade from my 3870 X2.

But, here's my understanding:

the x11 driver makes your CPU render whatever is being displayed, right?

If that is true, then why am I getting intermittent pauses while playing avi files? My CPU has more than enough umph behind it to render a 2d display. Is there some option I need to enable to fix it?
Not sure if that is correct or not about the x11 driver. Maybe it's just native Linux facility still driven by your graphics card. Have a link?

What media player are you using? How much cache? What about the stuff I asked at the beginning?
Quote:

Originally Posted by DesertFox View Post
Not sure if that is correct or not about the x11 driver. Maybe it's just native Linux facility still driven by your graphics card. Have a link?

What media player are you using? How much cache? What about the stuff I asked at the beginning?
Media Player is SMplayer

the default cache for file playback was 4000 KB, which I increased to 10000 KB inside SMplayer.
See less See more
I never heard of SMplayer. Do you have another player (mplayer, VLC) to compare it to?
X11 uses the CPU to render. If video is choppy it's something else and not the GPU. Did you try killing Pulseaudio (or switch to using ALSA directly)?
2
Quote:


Originally Posted by DesertFox
View Post

I never heard of SMplayer. Do you have another player (mplayer, VLC) to compare it to?

its a front-end for Mplayer, so they're pretty much the same thing.

Quote:


Originally Posted by Melcar
View Post

X11 uses the CPU to render. If video is choppy it's something else and not the GPU. Did you try killing Pulseaudio (or switch to using ALSA directly)?

I've typed "sudo killall pulseaudio" in terminal and I still get pauses. How does one change to ALSA?
See less See more
1 - 20 of 22 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top