Author |
Message |
grante
|
Posted: Sat Sep 29, 2007 8:24 pm |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
grante wrote: I'm trying to get HD playback to work using a 3GHz P4 and a band-new PCI FX5200 on an R5F27 system using "latest" nvidia drivers (1.0.9755-1). No matter what I do, I can't get rid of the "NVP: prebuffering" messages and corresponding audio stutter.
With chroma-key OSD enabled, it's better: playback runs smoothly at 50-60% CPU usage with occasional bursts of "NVP: prebuffering messages" and some barely noticeable audio stutter. When the OSD comes up (in color), playback continues with 100% CPU usage and mild stuttering. After the OSD goes away, the high cpu-usage and stuttering continues for a few seconds and then goes back to 50-60% with bursts of "NVP: prebuffering"
I think I've figured out the reason why chroma-key OSD helps:
It f*&ks up the horizontal scaling so that the picture is
streatched horizontally so that only about 70% of it is
on-screen (it's the left-hand 70%). Throwing away 30% of the
pixels apparenlty makes things work a lot more smoothly.
It looks like the only way I can get the video scaled correctly
is to disable chroma-key OSD by enabling XvmcUsesTextures.
Methinks it's time to try some older NVidia drivers.
_________________ Grant
|
|
Top |
|
 |
grante
|
Posted: Sat Sep 29, 2007 9:01 pm |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
grante wrote: With chroma-key OSD enabled, it's better: playback runs smoothly at 50-60% CPU usage with occasional bursts of "NVP: prebuffering messages" and some barely noticeable audio stutter. When the OSD comes up (in color), playback continues with 100% CPU usage and mild stuttering. After the OSD goes away, the high cpu-usage and stuttering continues for a few seconds and then goes back to 50-60% with bursts of "NVP: prebuffering" It's not the actual chroma-key OSD that helps with stuttering an OSD-related problems, it's disabling XvmcUsesTextures. With that disabled, the horizontal video scaling is screwed up and about 20% of the picture is off-screen (to the right). Apparently, throwing away 20% of the picture helps. With XvmcUsesTextures disabled, I get the same results whether chroma-key OSD is enabled or not. With XvmcUsesTextures enabled, the video scaling is correct, but anytime the OSD is on (even if it's completely static), CPU usage goes to 100%, video playback drops to about 2 frames per second, and audio drops out completely. There seems to be something very broken about the OSD implementation. After the OSD goes away, video playback resumes and the audio will come back after some period of time ranging from a few seconds to a few minutes. Quote: Would upgrading from 512MB to 1GB help?
It doesn't really look like it would help. As-is, only 34K of
swap is used and almost 300MB of RAM is being used as
disk-block cache. That means only 200MB of RAM is being used
for resident program pages.
_________________ Grant
|
|
Top |
|
 |
grante
|
Posted: Sat Sep 29, 2007 10:39 pm |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
grante wrote: Methinks it's time to try some older NVidia drivers.
I've tried nvidia driver versions 9361 and 7185 with identical
results. If I enable XvmcUsesTextures, I get good HD playback
with rather high CPU usage of 60-70% and no "prebuffering"
messages nor any video or audio artifacts.
However, as soon as the OSD display _anything_, playback falls
down hard: video drops to a couple frames per second and audio
stops after a burst of NVP: prebuffering messages. When the OSD
goes away, smooth video playback resumes immediately but audio
is broken. Sometimes the audio comes back in a few seconds but
continues to spew prebuffering messages. Sometimes it takes
several minutes for the audio to come back on.
Can anybody point me to documenation on what the "NVP:
prebuffering pause" message actually _means_? That question
has come up several times in the mythtv mailing list, but it
never seems to get answered. Gotta love those cryptic log
messages...
_________________ Grant
|
|
Top |
|
 |
jzigmyth
|
Posted: Sun Sep 30, 2007 7:23 am |
|
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location:
middleton wi usa atsc
|
Just FYI I turned on UseChromaKeyOSD and set XvmcUsesTextures to false and it didn't change my horizontal scaling at all. My OSD is now in color with Xvmc.
When you disabled UseChromaKeyOSD, how did you unpoke this line from the SQL database? Code: INSERT INTO settings SET value='UseChromaKeyOSD',data='1',hostname='yourhost';
|
|
Top |
|
 |
tjc
|
Posted: Sun Sep 30, 2007 8:52 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
This should do it.
Code: update settings set data='0' where value='UseChromaKeyOSD' Note that I've left off the hostname so it does all of them. To be more fine grained: Code: update settings set data='0' where value='UseChromaKeyOSD' and hostname='yourhost'
You could also do a delete, but turning it off should do the trick and it's convenient to keep it around.
|
|
Top |
|
 |
jzigmyth
|
Posted: Sun Sep 30, 2007 9:52 am |
|
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location:
middleton wi usa atsc
|
Thanks tjc! I always like to be able to undo what I've done, just in case...
|
|
Top |
|
 |
grante
|
Posted: Sun Sep 30, 2007 10:56 am |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
I tried building the latest nvidia driver, but xvmc doesn't
work at all with that because it's incompatible with the xvmc
library in /usr/lib.
None of the instructions I found on building the latest driver
for Knoppmyth mentioned updating the xvmc drivers, and the
nvidia installer log didn't show anything relelvent either.
It looks like I'm screwed.
_________________ Grant
|
|
Top |
|
 |
tjc
|
Posted: Sun Sep 30, 2007 11:39 am |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
|
Top |
|
 |
pilesofspam
|
Posted: Tue Oct 02, 2007 8:50 am |
|
Joined: Tue May 09, 2006 11:50 am
Posts: 102
|
gante,
Have you had any luck with this issue? I've got the same thing happening with my system. HD works considerably better when not using XvMC, even though the CPU is at 92% (compared to 43% with XvMC). I also have loads of the NVP: Prebuffering pause messages.
|
|
Top |
|
 |
grante
|
Posted: Tue Oct 02, 2007 12:59 pm |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
pilesofspam wrote: Have you had any luck with this issue? Nope. No matter what driver version I try or what settings I use, playback collapses when the OSD comes up (unless I disable XvmcUsesTextures, in which case I only see the left-hand 70% of the picture). If you're patient enough and don't mind having no audio for a few minutes after the OSD goes away playback will eventually resume normally and the NVP: prebuffering messages will stop. Quote: I've got the same thing happening with my system. HD works considerably better when not using XvMC, even though the CPU is at 92% (compared to 43% with XvMC). I also have loads of the NVP: Prebuffering pause messages.
And I've still got absolutely no clue what that message means
or what one should do about it. Without XVMC, I get 100% CPU
usage and stuttering video/audio, so that's not really an
option.
I don't think I have much choice other than admit defeat and
build a new box. Probably an Asus M2NPV-VM and low-power AMD
X2 3800+ CPU. People report good results with that board.
But, I don't know whether to try to build a nice little FE box
and leave my current box as a BE, or build a FE/BE box that
completely replaces my current box. And I can't find a case I
really like. Life is tough. So it goes. Poo-tee-wheet.
_________________ Grant
|
|
Top |
|
 |
jaschris
|
Posted: Tue Oct 02, 2007 11:21 pm |
|
Joined: Sat Mar 19, 2005 1:24 pm
Posts: 10
|
Am having the same problem, also have FX5200, have tried lots of different things and although sometimes it plays for several minutes, I still get those NVP: prebuffering pause errors and shuttering every 5-10 minutes or so.
|
|
Top |
|
 |
grante
|
Posted: Wed Oct 03, 2007 8:21 am |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
jaschris wrote: Am having the same problem, also have FX5200, have tried lots of different things and although sometimes it plays for several minutes, I still get those NVP: prebuffering pause errors and shuttering every 5-10 minutes or so.
Yea, I've come to the conclusion that the oft-seen advice that
any old FX5200 or FX6200 board should work is bogus. Some
boards work in some configurations with some motherboards.
You pays your money and you takes your chances.
_________________ Grant
|
|
Top |
|
 |
jaschris
|
Posted: Wed Oct 03, 2007 10:58 am |
|
Joined: Sat Mar 19, 2005 1:24 pm
Posts: 10
|
It worked fine with previous version of myth (the same exact video card/motherboard/memory (1gb)/processor (3.0) , but when I upgraded myth it now has those annoying pauses, seems to have nothing to do with OSD as it does it during normal playback
|
|
Top |
|
 |
jaschris
|
Posted: Thu Oct 04, 2007 9:17 pm |
|
Joined: Sat Mar 19, 2005 1:24 pm
Posts: 10
|
grante,
please try 100.14.19
I tried that tonight and although it wasn't perfect, I did notice less shuttering(pausing)
http://www.nvidia.com/object/unix.html
I used:
# install-nvidia-debian.sh 100.14.19 -force
I want to know if the prebuffering pausing is better for you also, or if its just in my head.
|
|
Top |
|
 |
grante
|
Posted: Fri Oct 05, 2007 9:44 am |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
jaschris wrote: grante,
please try 100.14.19 I did. I wasn't able to get xvmc to work at all with 100.14.19, but I'll try again. Quote: I used: # install-nvidia-debian.sh 100.14.19 -force
That's what I tried, and it didn't actually install anything,
though it did download the installer. Only three of the five
"install-nvidia-debian.sh" commands shown in the wiki actually
installed a working driver for me:
http://www.knoppmythwiki.org/index.php? ... iversR5F27
To get 100.14.19 installed, I had to download the installer
from nvidia and run it by hand after replacing one of the .h
files in the kernel headers:
Code: cd /usr/src/linux-headers-2.6.18-chw-13/include/linux/ /bin/rm -f i2c-id.h wget http://lm-sensors.org/svn/i2c/trunk/kernel/i2c-id.h cd /root wget http://us.download.nvidia.com/XFree86/Linux-x86/100.14.11/NVIDIA-Linux-x86-100.14.19-pkg1.run sh NVIDIA-Linux-x86-100.14.19-pkg1.run
That got me a mostly-working 100.14.19 driver, but I never
could get xvmc to work at all with that version.
_________________ Grant
|
|
Top |
|
 |