[mythtv] XvMC works in MPlayer--not in myth

Dylan Semler dylan.semler at gmail.com
Tue Sep 19 02:14:19 UTC 2006


I've been on the users list a lot with this problem and I think I've
exhausted our collective knowledge on the subject so I'd like to get
some more learned feedback to see if this is a possible myth bug.  The
original thread can be found at
http://www.gossamer-threads.com/lists/mythtv/users/224112.  Bottom
line--XvMC works perfectly with mplayer but not with myth.  I've tried
this with several versions of myth (pre-0.20 SVN, current SVN, current
atrpms) and several new installs (FC4, FC5, FC6T3).  I've been playing
with system and myth settings for a while and nothing seems to make
any difference.  I've re-installed several times and it's working well
with mplayer so I don't think it's a system configuration problem.
I've obviously gone through the myth settings trying various
combinations but nothing seems to make any difference.

Symptoms:
Any attempt to watch LiveTV with XvMC (HD or SD) results in a few
prebuffering pauses, followed by rapid picture deterioration.  The
picture deterioration seems to begin when the OSD fades away but I
haven't rigorously correlated the two.  The deterioration starts off
rather minor, but quickly progress to most of the screen.  It
sometimes resets to a clean picture for a few moments after a
significant scene change.  The OSD is black and white.  For HD
channels, myth uses about 60% CPU and X uses another 10%.  For SD,
myth uses about 30% CPU.  Without XvMC myth is up at about 95% CPU.

In mplayer, HD recordings play smoothly with XvMC and processor load
is down to ~50%.  Without XvMC in mplayer video is very choppy and
processor load is ~95%.

When watching HD recordings with XvMC in myth, I do not get any
picture deterioration--only many quick prebuffering pauses.  I saw
prebuffering pauses of this style when I first attempted to get XvMC
working when I had a GeForce 4200 back with 0.18.1.  The fact that I
don't get the deterioration while watching recordings nor with mplayer
leads me to believe that perhaps it's a problem with using the capture
card and XvMC at the same time--but I really don't know.

See the bottom of this email for the frontend errors.



Current Configuration:
--MythTV from atrpms
--Combined BE/FE
--atrpms 8774 Nvidia drivers
--Vblank settings in nvidia-config are unchecked
--Extra audio buffering is checked
--openGL Vsync is NOT checked
--Tried with no deinterlacing and with BOB deinterlacing
--/etc/X11/XvMCConfig contains one line,
"/usr/lib/nvidia-graphics-1.0-8774/libXvMCNVIDIA_dynamic.so.1"
--TwinView setup (have tried with singlehead through each of the ports
on my GPU)

Current System:
P4 2.26 GHz
1024 RDRAM
Nvidia GeForce 6200
pcHDTV-3000

The 6200 is a new upgrade.  A few weeks ago I was running this system
with a GeForce 4200 and having the picture deterioration problem (this
is what prompted me to upgrade graphics cards).  I was using the
latest SVN at the time which was pre 0.20 release.  I did not see the
picture deterioration (just rapid prebuffering pauses) the last time I
was playing with XvMC in late April 2006 (using the latest SVN at that
time).

The 4200 was used with FC4.  After plugging in the 6200 into this
instillation and seeing the same symptoms, I hoped the new card was
mis-configured and so reformatted and installed FC6T3, then reformated
and downgraded to FC5.  All have shown the same signs described above.



Frontend log:
22006-09-14 23:42:09.968 TV: Attempting to change from None to WatchingLiveTV
2006-09-14 23:42:09.969 Using protocol version 30
2006-09-14 23:42:10.855 DPMS Deactivated
006-09-14 23:42:11.067 NVP: Disabling Audio, params(-1,2,44100)
2006-09-14 23:42:11.138 VideoOutputXv: XvMCTex: Init failed
2006-09-14 23:42:11.139 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode:  141
  Minor opcode:  14
  Resource id:  0x1dc
2006-09-14 23:42:16.762 TV: Changing from None to WatchingLiveTV
2006-09-14 23:42:17.043 New DB connection, total: 3
2006-09-14 23:42:17.044 New DB connection, total: 4
2006-09-14 23:42:17.319 Connected to database 'mythconverg' at host:
192.168.1.105
2006-09-14 23:42:17.397 Connected to database 'mythconverg' at host:
192.168.1.105
2006-09-14 23:42:17.399 Realtime priority would require SUID as root.
2006-09-14 23:42:17.579 Video timing method: USleep with busy wait
2006-09-14 23:42:18.539 VideoOutputXv: XvMCTex: Init failed
2006-09-14 23:42:18.540 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video Texture'
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode:  141
  Minor opcode:  14
  Resource id:  0x1dc
2006-09-14 23:42:20.215 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:20.215 VideoOutputXv: ProcessFrameXvMC: Called without frame
2006-09-14 23:42:20.263 AFD: Opened codec 0xd1305e0,
id(MPEG2VIDEO_XVMC) type(Video)
2006-09-14 23:42:20.400 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:20.400 VideoOutputXv: ProcessFrameXvMC: Called without frame
2006-09-14 23:42:20.489 AFD: Opened codec 0xddcf640, id(AC3) type(Audio)
2006-09-14 23:42:20.502 AFD: Opened codec 0xddcf990, id(AC3) type(Audio)
2006-09-14 23:42:20.588 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:20.588 VideoOutputXv: ProcessFrameXvMC: Called without frame
2006-09-14 23:42:20.634 Opening OSS audio device '/dev/dsp'.
2006-09-14 23:42:20.641 NVP: Enabling Audio
2006-09-14 23:42:20.768 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:20.768 VideoOutputXv: ProcessFrameXvMC: Called without frame
2006-09-14 23:42:20.948 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:20.948 VideoOutputXv: ProcessFrameXvMC: Called without frame
2006-09-14 23:42:21.128 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:21.128 VideoOutputXv: ProcessFrameXvMC: Called without frame
2006-09-14 23:42:21.268 NVP: Prebuffer wait timed out 10 times.
2006-09-14 23:42:21.310 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:21.310 VideoOutputXv: ProcessFrameXvMC: Called without frame
2006-09-14 23:42:21.493 VideoOutputXv: ProcessFrameXvMC: Tried to
reuse frame but failed
2006-09-14 23:42:21.493 VideoOutputXv: ProcessFrameXvMC: Called without frame
XvMC: picture structure FRAME
2006-09-14 23:42:22.756 NVP: Prebuffer wait timed out 10 times.
2006-09-14 23:42:25.702 NVP: prebuffering pause
2006-09-14 23:42:26.134 NVP: prebuffering pause
2006-09-14 23:42:26.334 NVP: prebuffering pause
[mpegvideo_xvmc @ 0x193b304]00 motion_type at 63 64
[mpegvideo_xvmc @ 0x193b304]ac-tex damaged at 65 66
[mpegvideo_xvmc @ 0x193b304]Warning MVs not available

and the rest is filled with prebuffering pauses and mpegvideo_xvmc errors




-- 
Dylan

Compute better.  Type faster.  Use Dvorak:
http://dvzine.org


More information about the mythtv-dev mailing list