[mythtv-users] XvMC configuration issues in 0.20

Joe Doucette doucej at gmail.com
Fri Dec 29 19:00:47 UTC 2006


Hi folks,

I've recently done some upgrading of my myth setup -- gone to
slackware 11 from 10.2, and myth 0.20a from 0.19. I'd had XvMC working
reasonably well under 0.19 -- I seem to have lost the magic in the
shuffle. I end up with slow, choppy playback, and the color OSD clues
me into the lack of XvMC. I've tried various combinations of
deinterlacing and opengl vsync in the frontend setup with no notable
difference in playback speed.

I'd tried upgrading to the latest nvidia driver, but since backed off
to 8756 since that's what the wiki still seems to suggest works.

I can use mplayer to play back my recordings just fine with XvMC, so I
can tell the nvidia xorg driver and XvMC support are at least working
on some level. I've gone through the wiki troubleshooting steps
including editing /etc/X11/XvMCConfig, though on my setup myth seems
to want it at /usr/X11R6/lib/X11/XvMCConfig.

my XvMCConfig contains:
# cat /usr/X11R6/lib/X11/XvMCConfig
/usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1

which points to:
# ls -l /usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1
lrwxrwxrwx 1 root root 25 Dec 28 15:51
/usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 -> libXvMCNVIDIA.so.1.0.8756

Attempting to play back a hd recording in mythfrontend with -v playback
yields:
...
2006-12-28 18:33:08.604 DPMS Deactivated
0: start_time: 7887.014 duration: 329.099
1: start_time: 7886.992 duration: 329.098
stream: start_time: 87633.240 duration: 3656.906 bitrate=15380 kb/s
2006-12-28 18:33:10.265 AFD: Stream #0, has id 0x2112 codec id
MPEG2VIDEO, type Video, bitrate 65000000 at 0x0x83f3b40
2006-12-28 18:33:12.825 Display Rect  left: 0, top: 0, width: 0,
height: 0, aspect: 1.33333
2006-12-28 18:33:12.826 Video Rect    left: 0, top: 0, width: 1920,
height: 1080, aspect: 1.77778
2006-12-28 18:33: 12.826 NVP: ClearAfterSeek(1)
2006-12-28 18:33:12.826 NVP: Exited decoder loop.
2006-12-28 18:33:12.827 ~VideoOutputNull()
2006-12-28 18:33:13.837 VideoOutputXv: XvMC version: 1.1
2006-12-28 18:33:13.863 XvMCSurfaceTypes::find(w 1920, h 1080, chroma
1, vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 244,
2440 <=p, port, surfNum)
2006-12-28 18:33:13.864 Trying XvMC port 244
2006-12-28 18:33:13.936 Found a suitable XvMC surface 0
2006-12-28 18:33: 13.936 VideoOutputXv: @ j=1 Looking for flag[s]:
XvInputMask
2006-12-28 18:33:13.937 VideoOutputXv: Adaptor#0: NV17 Video Overlay
has flag[s]: XvInputMask XvImageMask
2006-12-28 18:33:13.937 XvMCSurfaceTypes::find(w 1920, h 1080, chroma
1, vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 244,
2440 <=p, port, surfNum)
2006-12-28 18:33:13.937 Trying XvMC port 244
2006-12-28 18:33:13.937 Found a suitable XvMC surface 0
2006-12-28 18:33: 13.937 VideoOutputXv: Grabbed xv port 244
2006-12-28 18:33:13.937 VideoOutputXv: XvMC surface found with IDCT
support on port 244
2006-12-28 18:33:13.976 VideoOutputXv: Closing XVideo port 244
2006-12-28 18:33: 13.991 detectInterlace(Detect Scan, Interlaced Scan,
29.97, 1088) ->Interlaced Scan
2006-12-28 18:33:13.991 AFD: Looking for decoder for MPEG2VIDEO_XVMC
2006-12-28 18:33:14.002 AFD: Opened codec 0x850e770,
id(MPEG2VIDEO_XVMC) type(Video)
2006-12-28 18:33:14.002 AFD: Stream #1, has id 0x2113 codec id AC3,
type Audio, bitrate 384000 at 0x0x8442d40
2006-12-28 18:33:14.002 AFD: Looking for decoder for AC3
2006-12-28 18:33: 14.003 AFD: Opened codec 0x850eac0, id(AC3) type(Audio)
2006-12-28 18:33:14.003 RingBuf(/mnt/store/3005_20061221210000.mpg):
CalcReadAheadThresh(65384 KB)
                        -> threshhold(2394 KB) min read(32 KB) blk size(512
KB)
2006-12-28 18:33:14.096 Opening OSS audio device '/dev/dsp'.
2006-12-28 18:33:14.100 Dec: Trying to select track (w/lang)
2006-12-28 18:33:14.101 Dec: Selecting first track
2006-12-28 18:33:14.101 Dec: Selected track #1 in the Unknown language(0)
2006-12-28 18:33:14.110 Resyncing position map. posmapStarted = 0
livetv(0) watchingRec(0)
2006-12-28 18:33:14.533 Position map filled from DB to: 96618
2006-12-28 18:33:14.534 SyncPositionMap prerecorded, from DB: 6626 entries
2006-12-28 18:33:14.535 SyncPositionMap, new totframes: 96618, new
length: 3223, posMap size: 6626
2006-12-28 18:33:14.535 AFD: Position map found
2006-12-28 18:33:14.535 AFD: Successfully opened decoder for file:
"/mnt/store/3005_20061221210000.mpg". novideo(0)
2006-12-28 18:33:14.546 VideoOutputXv: ctor
2006-12-28 18:33:14.547 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
2006-12-28 18:33:14.548 Snapping width to avoid scaling: width: 1920, left:
0
2006-12-28 18:33:14.548 Display Rect  left: 0, top: 135, width: 1920,
height: 810, aspect: 1.33333
2006-12-28 18:33:14.548 Video Rect    left: 0, top: 0, width: 1920,
height: 1080, aspect: 1.77778
2006-12-28 18:33: 14.548 VideoOutputXv: Pixel dimensions: Screen
1920x1080, window 1920x1080
2006-12-28 18:33:14.548 VideoOutputXv: Estimated display dimensions:
827x465 mm  Aspect: 1.77849
2006-12-28 18:33:14.548 VideoOutputXv: Estimated window dimensions:
827x465 mm  Aspect: 1.77849
2006-12-28 18:33:14.549 VideoOutputXv: XvMC version: 1.1
2006-12-28 18:33:14.549 VideoOutputXv: XvMCTex: Init failed
2006-12-28 18:33:14.550 VideoOutputXv: @ j=1 Looking for flag[s]:
XvInputMask
2006-12-28 18:33:14.550 VideoOutputXv: Adaptor#0: NV17 Video Overlay
has flag[s]: XvInputMask XvImageMask
2006-12-28 18:33:14.550 XvMCSurfaceTypes::find(w 1920, h 1088, chroma
1, vld 0, idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 244,
2440 <=p, port, surfNum)
2006-12-28 18:33:14.550 Trying XvMC port 244
2006-12-28 18:33:14.550 Found a suitable XvMC surface 0
2006-12-28 18:33:14.550 VideoOutputXv: Grabbed xv port 244
2006-12-28 18:33: 14.550 VideoOutputXv: XvMC surface found with IDCT
support on port 244
2006-12-28 18:33:14.550 VideoOutputXv: XvMC Adaptor Name: 'NV17 Video
Overlay'
2006-12-28 18:33:14.709 Snapping height to avoid scaling: height: 1080, top:
0
2006-12-28 18:33:14.709 Snapping width to avoid scaling: width: 1920, left:
0
2006-12-28 18:33:14.709 Display Rect  left: 0, top: 0, width: 1920,
height: 1080, aspect: 1.77778
2006-12-28 18:33:14.709 Video Rect    left: 0, top: 0, width: 1920,
height: 1080, aspect: 1.77778
2006-12-28 18:33:16.029 NVP: ClearAfterSeek(1)
2006-12-28 18:33:16.030 VideoOutputXv: ClearAfterSeek()
2006-12-28 18:33:16.030 VideoOutputXv: DiscardFrames(0)
2006-12-28 18:33: 16.030 VideoOutputXv: DiscardFrames() 1: AAAAAAAA
2006-12-28 18:33:16.030 VideoOutputXv: DiscardFrames() 3: AAAAAAAA -- done()
2006-12-28 18:33:16.030 VideoOutputXv: DiscardFrames(1)
2006-12-28 18:33:16.031 VideoOutputXv: DiscardFrames() 1: AAAAAAAA
2006-12-28 18:33:16.031 VideoOutputXv: DiscardFrames() 2: AAAAAAAA
2006-12-28 18:33:16.031 VideoOutputXv: DiscardFrames() 3: AAAAAAAA -- done()
2006-12-28 18:33:16.031 TV: StartPlayer(): took 6853 ms to start player.
2006-12-28 18:33:16.032 TV: Changing from None to WatchingPreRecorded
2006-12-28 18:33:16.091 Using realtime priority.
XvMC: picture structure FRAME
2006-12-28 18:33:16.187 nVidiaVideoSync: VBlank ioctl did not work,
unimplemented in this driver?
2006-12-28 18:33:16.187 DRMVideoSync: Could not open device
/dev/dri/card0, No such file or directory
2006-12-28 18:33:16.187 RTCVideoSync: Could not open /dev/rtc, No such
file or directory.
2006-12-28 18:33:16.188 Using audio as timebase
2006-12-28 18:33:16.188 Video timing method: USleep with busy wait
2006-12-28 18:33:16.188 Refresh rate: 16683, frame interval: 33366
2006-12-28 18:33:16.188 NVP: Waiting for prebuffer.. 0 uLAAAAAA
2006-12-28 18:33:16.768 NVP: Video is 3.38881 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:16.861 NVP: Video is 3.63553 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33: 16.953 NVP: Video is 3.90299 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.049 NVP: Video is 4.02116 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.141 NVP: Video is 4.19969 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.229 NVP: Video is 4.21372 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.321 NVP: Video is 4.09687 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.413 NVP: Video is 3.95678 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.509 NVP: Video is 3.76179 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.605 NVP: Video is 3.75793 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.698 NVP: Video is 3.65012 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33: 17.793 NVP: Video is 3.59174 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.885 NVP: Video is 3.43556 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:17.981 NVP: Video is 3.40086 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:18.073 NVP: Video is 3.31487 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:18.165 NVP: Video is 3.31035 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:18.257 NVP: Video is 3.19454 frames behind audio (too
slow), skipping A/V wait.
2006-12-28 18:33:18.257 NVP: prebuffering pause
...

I'm configuring the myth build as follows:
$ ./configure --tune=athlon --cpu=athlon --enable-xvmc --enable-dvb
--enable-opengl-vsync --enable-joystick-menu --enable-proc-opt
# Basic Settings
Compile type     release
Compiler cache   yes
DistCC           yes
Install prefix   /usr/local
CPU              x86 (athlon)
Big Endian       no
MMX enabled      yes

# Input Support
Joystick menu    yes
lirc support     yes
Apple Remote     no
Video4Linux sup. yes
ivtv support     yes
FireWire support no
DVB support      yes [/usr/include]
DBox2 support    yes
HDHomeRun sup.   yes
CRC Ip Rec sup.  yes
FreeBox support  yes

# Sound Output Support
OSS support      yes
ALSA support     yes
aRts support     yes
JACK support     yes
DTS passthrough  no

# Video Output Support
x11 support      yes
xrandr support   yes
xv support       yes
XvMC support     yes
XvMC VLD support yes
XvMC pro support no
XvMC OpenGL sup. no
XvMC libs        -lXvMCW
Mac accel.       no
OpenGL vsync     yes
DirectFB         no

# Misc Features
Frontend         yes
Backend          yes

# Bindings
bindings_perl    no
Creating libs/libmyth/mythconfig.h and libs/libmyth/mythconfig.mak

WARNING: When using --enable-proc-opt you must include the
        output of ./configure along with any bug report.


I'm at a loss of what to try next to debug this, so any
ideas/suggestions would be greatly appreciated.

Regards,

   - Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20061229/4cc3925d/attachment-0001.htm 


More information about the mythtv-users mailing list