I went ahead and formatted for good measure, reinstalled
Xubuntu and followed the
*Official* Nvidia VDPAU thread again installing the latest Nvidia drivers (
180.27) and the latest mplayer patchset (
mplayer-vdpau-3402051.tar.bz2)
I also figured out why I was having the resolution problems earlier with xorg.conf, X couldn't configure my LCD display panels settings because it is hooked up via a KVM, so all I had to do was edit xorg.conf and add the following to the 'Monitor':
Code:
Section "Monitor"
Identifier "DELL 1905FP"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection
and then I changed 'Screen' like so:
Code:
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "DELL 1905FP"
DefaultDepth 24
Option "VideoOverlay" "on"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Now Nvidia X Settings had no problems finding the correct resolution when set to 'Auto'

I also tested out the patched version of mplayer with the samples from the
blog post, and again playback was flawless with less then 10% cpu usage.

I then built mythtv/mythplugins/myththemes from source [r19887] using "--enable-vdpau --enable-opengl-vsync". It sure does take a long time to build on a P4 2.4Ghz machine (roughly 2hrs). After everything was all setup and configured I tried to watch live TV, :drumroll:...
Same jerky ness and high CPU usage (80+%) problems as earlier with weekly mythbuntu builds.

I also did a test record, and tried to watch the playback of that, same jerkyness high CPU usage

I am however able to playback the recording using the patched version of mplayer like so:
Code:
./mplayer -vo vdpau -vc ffmpeg12vdpau ~/mythtv-storage/1071_20090131153000.mpg
And it plays perfectly, no jerkyness and ~5% cpu usage, so this proves that it isn't an issue with my HDHomeRun, and leads me to believe that MythTV isn't using VDPAU, but how could it not, I built from source and I used the "--enable-vdpau --enable-opengl-vsync" options?
I did notice a few items that might help troubleshoot.
- While watching live or recorded TV, I get the following error messages in terminal of 'mythfrontend':
Code:
NVP(0): prebuffering pause
WriteAudio: buffer underrun
After some googling I believe this is related to audio, but I am not quite sure how to fix.
Any idea's?
- Here is the full output of 'mythfrontend' when trying to watch a recorded show:
Code:
mythfrontend
2009-01-31 18:43:10.432 mythfrontend version: trunk [19887] www.mythtv.org
2009-01-31 18:43:10.433 Using runtime prefix = /usr/local
2009-01-31 18:43:10.795 Empty LocalHostName.
2009-01-31 18:43:10.796 Using localhost value of mythical1
2009-01-31 18:43:10.805 New DB connection, total: 1
2009-01-31 18:43:10.816 Connected to database 'mythconverg' at host: localhost
2009-01-31 18:43:10.818 Closing DB connection named 'DBManager0'
2009-01-31 18:43:10.840 ScreenSaverX11Private: Gnome screen saver support enabled
2009-01-31 18:43:10.842 DPMS is active.
2009-01-31 18:43:10.845 Primary screen: 0.
2009-01-31 18:43:10.846 Connected to database 'mythconverg' at host: localhost
2009-01-31 18:43:10.848 Using screen 0, 1024x768 at 0,0
2009-01-31 18:43:10.886 MythUI Image Cache size set to 20971520 bytes
2009-01-31 18:43:10.888 Enabled verbose msgs: important general
2009-01-31 18:43:11.528 Primary screen: 0.
2009-01-31 18:43:11.530 Using screen 0, 1024x768 at 0,0
2009-01-31 18:43:11.532 Using theme base resolution of 800x600
2009-01-31 18:43:11.553 LIRC, Error: Failed to connect to Unix socket '/dev/lircd'
eno: No such file or directory (2)
2009-01-31 18:43:11.554 JoystickMenuThread Error: Joystick disabled - Failed to read /home/chris/.mythtv/joystickmenurc
2009-01-31 18:43:11.767 Using the Qt painter
2009-01-31 18:43:12.107 Loading base theme from /usr/local/share/mythtv/themes/G.A.N.T/base.xml
2009-01-31 18:43:12.983 Loading base theme from /usr/local/share/mythtv/themes/default/base.xml
2009-01-31 18:43:13.319 Current Schema Version: 1228
2009-01-31 18:43:13.332 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2009-01-31 18:43:13.338 Using protocol version 43
2009-01-31 18:43:13.492 Registering Internal as a media playback plugin.
2009-01-31 18:43:13.649 MonitorRegisterExtensions(0x100, gif,jpg,png)
2009-01-31 18:43:13.877 MythMusic adding CD-Writer: 1,0,0 -- CD-ROM LTN486S
2009-01-31 18:43:13.968 MonitorRegisterExtensions(0x40, ogg,mp3,aac,flac)
2009-01-31 18:43:17.145 Loading window theme from /usr/local/share/mythtv/themes/G.A.N.T/menu-ui.xml
2009-01-31 18:43:19.271 Found mainmenu.xml for theme 'G.A.N.T'
2009-01-31 18:43:27.871 New DB connection, total: 2
2009-01-31 18:43:27.872 Connected to database 'mythconverg' at host: localhost
2009-01-31 18:43:28.068 Loading window theme from /usr/local/share/mythtv/themes/default/recordings-ui.xml
2009-01-31 18:43:28.324 New DB connection, total: 3
2009-01-31 18:43:28.326 Connected to database 'mythconverg' at host: localhost
2009-01-31 18:43:28.329 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2009-01-31 18:43:28.353 Using protocol version 43
2009-01-31 18:43:28.374 Preview Error: Remote Preview failed, reason given: ERROR_UNKNOWN
2009-01-31 18:43:28.375 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2009-01-31 18:43:28.376 Using protocol version 43
2009-01-31 18:43:28.399 Preview Error: Remote Preview failed, reason given: ERROR_UNKNOWN
2009-01-31 18:43:28.433 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2009-01-31 18:43:28.434 Using protocol version 43
2009-01-31 18:43:28.447 Preview Error: Remote Preview failed, reason given: ERROR_UNKNOWN
2009-01-31 18:43:29.559 TV: Attempting to change from None to WatchingPreRecorded
2009-01-31 18:43:29.561 TV: StartPlayer(0, WatchingPreRecorded, main) -- begin
2009-01-31 18:43:29.882 VideoOutputXv Error: XvMC output requested, but is not supported by display.
Xlib: extension "XVideo-MotionCompensation" missing on display ":0.0".
Xlib: extension "XVideo-MotionCompensation" missing on display ":0.0".
/usr/lib/libXvMC.so.1: undefined symbol: XvMCCreateContext
2009-01-31 18:43:29.894 AFD: Opened codec 0xccb1290, id(MPEG2VIDEO) type(Video)
2009-01-31 18:43:29.900 AFD: codec AC3 has 6 channels
2009-01-31 18:43:29.901 AFD: Opened codec 0xccb17c0, id(AC3) type(Audio)
2009-01-31 18:43:29.907 Opening audio device 'default'. ch 2(2) sr 48000
2009-01-31 18:43:29.908 Opening ALSA audio device 'default'.
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL /dev/mixer
2009-01-31 18:43:29.932 AudioOutput Warning: Mixer attach error -2: No such file or directory
Check Mixer Name in Setup: '/dev/mixer'
2009-01-31 18:43:30.130 VideoOutputXv Warning: GLContextCreatedWait: Waited 38 ms
2009-01-31 18:43:30.216 VideoOutputXv: Desired video renderer 'xvmc-blit' not available.
codec 'MPEG2' makes 'xv-blit,opengl,xshm,vdpau,xlib,' available, using 'xv-blit' instead.
2009-01-31 18:43:30.222 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'
2009-01-31 18:43:30.527 OSD Theme Dimensions W: 640 H: 480
2009-01-31 18:43:31.030 TV: StartPlayer(0, WatchingPreRecorded, main) -- end ok
2009-01-31 18:43:31.031 TV: Changing from None to WatchingPreRecorded
2009-01-31 18:43:31.040 Video timing method: USleep with busy wait
2009-01-31 18:43:31.047 Realtime priority would require SUID as root.
2009-01-31 18:43:31.054 ScreenSaverX11Private: DPMS Deactivated 1
2009-01-31 18:43:32.425 NVP(0): prebuffering pause
2009-01-31 18:43:33.407 NVP(0): prebuffering pause
2009-01-31 18:43:34.297 NVP(0): prebuffering pause
2009-01-31 18:43:35.222 NVP(0): prebuffering pause
2009-01-31 18:43:36.245 NVP(0): prebuffering pause
2009-01-31 18:43:37.262 NVP(0): prebuffering pause
2009-01-31 18:43:38.523 NVP(0): prebuffering pause
2009-01-31 18:43:38.525 WriteAudio: buffer underrun
2009-01-31 18:43:39.525 NVP(0): prebuffering pause
2009-01-31 18:43:40.627 NVP(0): prebuffering pause
2009-01-31 18:43:41.601 NVP(0): prebuffering pause
2009-01-31 18:43:42.529 NVP(0): prebuffering pause
2009-01-31 18:43:43.576 NVP(0): prebuffering pause
2009-01-31 18:43:44.578 NVP(0): prebuffering pause
2009-01-31 18:43:45.361 TV: Attempting to change from WatchingPreRecorded to None
2009-01-31 18:43:45.364 TV: Changing from WatchingPreRecorded to None
2009-01-31 18:43:45.452 ScreenSaverX11Private: DPMS Reactivated 1
Quote:
Originally Posted by
mythmaster 
I didn't have to do this for some reason, but you'll probably need to setup a display profile -->
http://www.mythtv.org/wiki/VDPAU#Display_Profiles
Like, I said, I haven't done it, but I know quantumstate had to, so if you run into a snag with that, hopefully he or someone else can clarify it for you.
I looked at the link provided, but I am not sure exactly how to set this up, is this something that needs to be configured in 'mythtv-setup' or do I need to edit a .conf file or something?