[mythtv-users] Quadro NVS 140M and VDPAU - not working

Tortise tortise at paradise.net.nz
Sun May 2 07:42:16 UTC 2010


OK I've made significant progress here.

The short answer is in the following:

*  - ensure the composite extension is disabled in your xorg.conf        *  (Allows it to play!)
*  - use the Qt Paint Engine (Setup->Appearance)                         *     (Drops a CPU Core from ~100%  to ~90%!)

If you don't have an xorg.conf file, then create one using

sudo nvidia-settings
and save the file which will write a default file.
Edit it adding the composite bit.
QT as above.

It still hogs more CPU than I was expecting however plays acceptably now.




Long answer in order of working this up:

Trying mplayer on the same file on the frontend HDD:

$ mplayer -cache 8196 -vo vdpau -vc ffh264vdpau House\ -\ Private\ Lives.mpg..mpg
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
bt_audio_service_open: connect() failed: Connection refused (111)
MPlayer UNKNOWN-4.4.3 (C) 2000-2010 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing House - Private Lives.mpg..mpg.
Cache fill:  0.00% (0 bytes)
TS file format detected.
VIDEO H264(pid=450) AUDIO A52(pid=410) NO SUBS (yet)!  PROGRAM N. 1
FPS seems to be: 25.000000
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 H.264 VDPAU acceleration
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[h264_vdpau @ 0xc32ee0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264_vdpau @ 0xc32ee0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264_vdpau @ 0xc32ee0]number of reference frames exceeds max (probably corrupt input), discarding one
[h264_vdpau @ 0xc32ee0]number of reference frames exceeds max (probably corrupt input), discarding one

So it plays, but the video is about half speed with the audio....so I guess my mplayer command (actually something else!) needs a 
tickle up.




$ mythfrontend
2010-05-02 18:41:39.227 mythfrontend version: branches/release-0-22-fixes [24035] www.mythtv.org
2010-05-02 18:41:39.242 AudioPulseUtil: Suspend Success
2010-05-02 18:41:39.243 Using runtime prefix = /usr
2010-05-02 18:41:39.243 Using configuration directory = /home/david/.mythtv
2010-05-02 18:41:40.162 Empty LocalHostName.
2010-05-02 18:41:40.162 Using localhost value of mythtv9
2010-05-02 18:41:40.162 Testing network connectivity to '10.119.30.230'
2010-05-02 18:41:40.182 New DB connection, total: 1
2010-05-02 18:41:40.186 Connected to database 'mythconverg' at host: 10.119.30.230
2010-05-02 18:41:40.187 Closing DB connection named 'DBManager0'
2010-05-02 18:41:40.221 ScreenSaverX11Private: XScreenSaver support enabled
2010-05-02 18:41:40.221 ScreenSaverX11Private: Gnome screen saver support enabled
2010-05-02 18:41:40.223 DPMS is disabled.
2010-05-02 18:41:40.226 Primary screen: 0.
2010-05-02 18:41:40.228 Connected to database 'mythconverg' at host: 10.119.30.230
2010-05-02 18:41:40.231 Using screen 0, 1920x1200 at 0,0
2010-05-02 18:41:40.267 MythUI Image Cache size set to 20971520 bytes
2010-05-02 18:41:40.267 Enabled verbose msgs:  important general
2010-05-02 18:41:40.283 Primary screen: 0.
2010-05-02 18:41:40.285 Using screen 0, 1920x1200 at 0,0
2010-05-02 18:41:40.286 Using theme base resolution of 1280x720
2010-05-02 18:41:40.308 LIRC, Error: Failed to connect to Unix socket '/var/run/lirc/lircd'
                        eno: No such file or directory (2)
2010-05-02 18:41:40.309 JoystickMenuThread Error: Joystick disabled - Failed to read /home/david/.mythtv/joystickmenurc
2010-05-02 18:41:40.595 Using the OpenGL painter
2010-05-02 18:41:40.682 Loaded base theme from /usr/share/mythtv/themes/MythCenter-wide/base.xml
2010-05-02 18:41:40.803 Loaded base theme from /usr/share/mythtv/themes/default-wide/base.xml
2010-05-02 18:41:40.876 Loaded base theme from /usr/share/mythtv/themes/default/base.xml
2010-05-02 18:41:40.931 Current MythTV Schema Version (DBSchemaVer): 1244
2010-05-02 18:41:41.791 Registering Internal as a media playback plugin.
2010-05-02 18:41:41.938 MMUnix::AddDevice() Error: failed to stat /dev/bdi,
                        eno: No such file or directory (2)
2010-05-02 18:41:41.949 MMUnix::AddDevice() Error: failed to stat /dev/power,
                        eno: No such file or directory (2)
2010-05-02 18:41:41.960 MMUnix::AddDevice() Error: failed to stat /dev/trace,
                        eno: No such file or directory (2)
2010-05-02 18:41:41.972 MonitorRegisterExtensions(0x100, gif,jpg,png)
2010-05-02 18:41:42.000 Current MythMusic Schema Version (MusicDBSchemaVer): 1017
2010-05-02 18:41:42.116 MonitorRegisterExtensions(0x40, 
mp3,mp2,ogg,oga,flac,wma,wav,ac3,oma,omg,atp,ra,dts,aac,m4a,aa3,tta,mka,aiff,swa,wv)
2010-05-02 18:41:42.154 Current MythVideo Schema Version (mythvideo.DBSchemaVer): 1028
2010-05-02 18:41:42.338 NetworkControl: Listening for remote connections on port 6546
2010-05-02 18:41:42.342 Loading window theme from /usr/share/mythtv/themes/MythCenter-wide/menu-ui.xml
2010-05-02 18:41:42.454 Loading menu theme from /usr/share/mythtv/themes/defaultmenu//mainmenu.xml
2010-05-02 18:41:42.457 Found mainmenu.xml for theme 'MythCenter-wide'
2010-05-02 18:41:42.644 Using NV NPOT texture extension
2010-05-02 18:41:42.716 MythContext: Connecting to backend server: 10.119.30.230:6543 (try 1 of 1)
2010-05-02 18:41:42.757 Using protocol version 50
2010-05-02 18:41:53.205 Loading menu theme from /usr/share/mythtv/themes/defaultmenu//library.xml
2010-05-02 18:41:53.754 New DB connection, total: 2
2010-05-02 18:41:53.758 Connected to database 'mythconverg' at host: 10.119.30.230
2010-05-02 18:41:53.762 Loading window theme from /usr/share/mythtv/themes/MythCenter-wide/recordings-ui.xml
2010-05-02 18:41:53.762 Loading window theme from /usr/share/mythtv/themes/default-wide/recordings-ui.xml
2010-05-02 18:42:05.289 TV: Attempting to change from None to Watching WatchingPreRecorded
2010-05-02 18:42:05.713 TV: StartPlayer(0, Watching WatchingPreRecorded, main) -- begin
2010-05-02 18:42:05.840 [h264 @ 0x7f3459d3b880]number of reference frames exceeds max (probably corrupt input), discarding one
2010-05-02 18:42:05.840 [h264 @ 0x7f3459d3b880]number of reference frames exceeds max (probably corrupt input), discarding one
2010-05-02 18:42:05.862 [h264 @ 0x7f3459d3b880]number of reference frames exceeds max (probably corrupt input), discarding one
................Delete out Zillions of repeated lines here......
2010-05-02 18:42:05.862 [h264 @ 0x7f3459d3b880]number of reference frames exceeds max (probably corrupt input), discarding one
2010-05-02 18:42:05.862 [h264 @ 0x7f3459d3b880]number of reference frames exceeds max (probably corrupt input), discarding one
2010-05-02 18:42:05.892 [h264 @ 0x7f3459d3b880]mmco: unref short failure
2010-05-02 18:42:06.541 AFD: Opened codec 0x6f0fd00, id(H264) type(Video)
2010-05-02 18:42:06.541 AFD: codec AAC/LATM has 2 channels
2010-05-02 18:42:06.541 AFD: Opened codec 0x3b04b40, id(AAC/LATM) type(Audio)
2010-05-02 18:42:06.541 AFD: codec AC3 has 6 channels
2010-05-02 18:42:06.543 AFD: Opened codec 0x3af9cb0, id(AC3) type(Audio)
2010-05-02 18:42:06.624 Opening audio device 'default'. ch 2(2) sr 48000 (reenc 0)
2010-05-02 18:42:06.625 Opening ALSA audio device 'default'.
2010-05-02 18:42:06.701 mixer unable to find control Master 1
2010-05-02 18:42:07.068 VDPAU Error: Error at util-vdpau.cpp:634 (#23, The system does not have enough resources to complete the 
requested operation at this time.)
2010-05-02 18:42:07.068 VDPAU: WARNING - please read the following carefully:-

* The VDPAU device has reported that you have run out of video memory.   *
* MythTV requires at least 512Mb of video memory for full functionality. *
* If you are using an integrated GPU, please ensure you have allocated   *
* the maximum amount of shared memory in the BIOS settings.              *
* Systems with only 256Mb of video memory are not supported.             *

* If this message continues to appear and you have at least 512Mb of     *
* video memory:-                                                         *
*  - reduce the number of VDPAU video buffers by adding                  *
*    'vdpaubuffersize=X' to your Playback Profile custom filter entry,   *
*    where X is a value between 6 (minimum) and 17 (default). Playback   *
*    of certain H.264 streams will fail with a reduced buffer size.      *
*  - disable any VDPAU options (e.g. deinterlacing, sharpen and denoise) *
*  - ensure the composite extension is disabled in your xorg.conf        *
*  - disable the use of OpenGL Vsync (Setup->TV Settings->Playback)      *
*  - use the Qt Paint Engine (Setup->Appearance)                         *
*  - switch to a 'lightweight' theme such as MythCenter                  *
*  - run MythTV at a lower screen resolution                             *

2010-05-02 18:42:07.068 VDPAU: Failed to add buffer 2 of 17
2010-05-02 18:42:07.068 VidOutVDPAU Error: Unable to create VDPAU buffers
2010-05-02 18:42:07.068 VideoBuffers::DiscardFrames(): ERROR, A not in available, pause, or displayed
2010-05-02 18:42:07.068 VideoBuffers::DiscardFrames(): ERROR, B not in available, pause, or displayed A
2010-05-02 18:42:07.068 VideoBuffers::DiscardFrames(): ERROR, C not in available, pause, or displayed AA
2010-05-02 18:42:07.068 VideoBuffers::DiscardFrames(): ERROR, D not in available, pause, or displayed AAA
2010-05-02 18:42:07.068 VideoBuffers::DiscardFrames(): ERROR, E not in available, pause, or displayed AAAA
2010-05-02 18:42:07.068 VideoBuffers::DiscardFrames(): ERROR, F not in available, pause, or displayed AAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, G not in available, pause, or displayed AAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, H not in available, pause, or displayed AAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, a not in available, pause, or displayed AAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, b not in available, pause, or displayed AAAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, c not in available, pause, or displayed AAAAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, d not in available, pause, or displayed AAAAAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, e not in available, pause, or displayed AAAAAAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, f not in available, pause, or displayed AAAAAAAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, g not in available, pause, or displayed AAAAAAAAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, h not in available, pause, or displayed AAAAAAAAAAAAAAA
2010-05-02 18:42:07.069 VideoBuffers::DiscardFrames(): ERROR, 0 not in available, pause, or displayed AAAAAAAAAAAAAAAA
2010-05-02 18:42:07.084 VideoBuffers::DiscardFrames(): ERROR, A not in available, pause, or displayed
2010-05-02 18:42:07.084 VideoBuffers::DiscardFrames(): ERROR, B not in available, pause, or displayed A
2010-05-02 18:42:07.084 VideoBuffers::DiscardFrames(): ERROR, C not in available, pause, or displayed AA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, D not in available, pause, or displayed AAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, E not in available, pause, or displayed AAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, F not in available, pause, or displayed AAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, G not in available, pause, or displayed AAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, H not in available, pause, or displayed AAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, a not in available, pause, or displayed AAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, b not in available, pause, or displayed AAAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, c not in available, pause, or displayed AAAAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, d not in available, pause, or displayed AAAAAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, e not in available, pause, or displayed AAAAAAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, f not in available, pause, or displayed AAAAAAAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, g not in available, pause, or displayed AAAAAAAAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, h not in available, pause, or displayed AAAAAAAAAAAAAAA
2010-05-02 18:42:07.085 VideoBuffers::DiscardFrames(): ERROR, 0 not in available, pause, or displayed AAAAAAAAAAAAAAAA
2010-05-02 18:42:07.085 VideoOutput, Error: Not compiled with any useable video output method.
2010-05-02 18:42:07.085 NVP(0), Error: Couldn't create VideoOutput instance. Exiting..
2010-05-02 18:42:07.085 Unable to initialize video.
2010-05-02 18:42:26.810 playCtx, Error: StartDecoderThread() Failed to startdecoder
2010-05-02 18:42:26.811 TV: StartPlayer(0, Watching WatchingPreRecorded, main) -- end error
^C


The answer lies in the error found when playing mythfrontend in a command window:  (Thank you to the dev(s) who coded this message)


* The VDPAU device has reported that you have run out of video memory.   *
* MythTV requires at least 512Mb of video memory for full functionality. *
* If you are using an integrated GPU, please ensure you have allocated   *
* the maximum amount of shared memory in the BIOS settings.              *
* Systems with only 256Mb of video memory are not supported.             *

* If this message continues to appear and you have at least 512Mb of     *
* video memory:-                                                         *
*  - reduce the number of VDPAU video buffers by adding                  *
*    'vdpaubuffersize=X' to your Playback Profile custom filter entry,   *
*    where X is a value between 6 (minimum) and 17 (default). Playback   *
*    of certain H.264 streams will fail with a reduced buffer size.      *    <<<<<<<<<<<<<<<<<<< Not tried yet, might help further, 
might create other problems?


*  - disable any VDPAU options (e.g. deinterlacing, sharpen and denoise) *    <<<<<<<<<<<<<<< Not tried yet
*  - ensure the composite extension is disabled in your xorg.conf        *           <<<<<<<<<<<<<<<<DONE and VERY HELPFUL
*  - disable the use of OpenGL Vsync (Setup->TV Settings->Playback)      *  <<< Is by default it seems
*  - use the Qt Paint Engine (Setup->Appearance)                         *            <<< Is by default I think however I had 
changed it trying to fix a different issue
*  - switch to a 'lightweight' theme such as MythCenter                  *              <<<<< Themes might also be an issue....
*  - run MythTV at a lower screen resolution                             *               <<<< Not a very popular option! 



More information about the mythtv-users mailing list