schwinn
August 28th, 2009, 09:39 AM
I've been trying to troubleshoot this for a while now, and have not been having any success, so hopefully someone can point out my dumb mistake here.
Relevant specs:
Mythbuntu 8.04 (have run a few updates through update manager along the way, as everything SD works fine.)
Athlon XP 3000+
Via KT400 (maybe KT800?) chipset
NVidia 7800GS AGP card (173.14.12 driver installed by EnvyNG)
Short answer is that I can't get XvMC to work on this machine, though videos play fine otherwise. I never cared before, since the CPU could handle the SD streams, but I just installed a pcHDTV 5500 card, so HD is coming out choppy, hence I want to get XvMC working.
I can't even get mplayer xvmc to work, so that's where I'm concentrating my efforts for now. In both myth and mplayer (and xine) they sit at 100% CPU usage, and the machine freezes - I have to kill the process to recover the system.
Mplayer provides the following output when running the video file:
mplayer -vo xvmc -vc ffmpeg12mc 5686_20090825000000.mpg
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 3000+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Playing 5686_20090825000000.mpg.
TS file format detected.
VIDEO MPEG2(pid=2048) AUDIO A52(pid=2049) NO SUBS (yet)! PROGRAM N. 1
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 19392.8 kbps (2424.1 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
================================================== ========================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
================================================== ========================
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
================================================== ========================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1920 x 1080 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xvmc] 1920x1080 => 1920x1080 MPEG1/2 Motion Compensation and IDCT
vo_xvmc: Port 275 grabed
vo_xvmc: Found matching surface with id=54434449 on 275 port at 0 adapter
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=1 unsigned_intra=0
vo_xvmc: looking for OSD support
Subpicture id 0x34344149
vo_xvmc: OSD support by additional frontend rendering
I should note, my xorg.conf includes the following:
Section "Device"
Identifier "Configured Video Device"
# Option "UseFBDev" "true"
Driver "nvidia"
Option "UseEvents" "True"
Option "XvmcUsesTextures" "False" # necessary for color Chromakey OSD)
# Option "NVAGP" "1"
Option "NoLogo" "True"
Option "RenderAccel" "True"
Option "DPMS" "False"
EndSection
Section "Extensions"
Option "Composite" "Disabled"
EndSection
Note that NVAGP = 1 is commented out - when enabled, /proc/drivers/nvidia/agp/status states that AGP is disabled, which I figured was "wrong" or "bad", so I didn't test it that way (maybe I should have?). I suppose I could try NVAGP=2, but even without that, the status file says AGPGART is enabled, so I figured it wasn't necessary.
Any ideas? I can get more logs if needed... there's much more troubleshooting I have already done, but everything I check says XvMC is installed and enabled in the logs (ie, "Motion Compensation" is showing loaded in their respective logs)... yet I get this lockup when trying to use it.
It should be noted that this particular video file plays fine without XvMC in myth, mplayer, and xine.
The only thing I haven't tried yet is regarding AGP and Nvidia drivers >100.x.x... I have seen a few posts saying there may be some sort of bug on AGP systems with the newer drivers, but nothing definitive. I plan to try some v96 flavor driver that EnvyNG can provide... haven't gotten around to that yet.
Relevant specs:
Mythbuntu 8.04 (have run a few updates through update manager along the way, as everything SD works fine.)
Athlon XP 3000+
Via KT400 (maybe KT800?) chipset
NVidia 7800GS AGP card (173.14.12 driver installed by EnvyNG)
Short answer is that I can't get XvMC to work on this machine, though videos play fine otherwise. I never cared before, since the CPU could handle the SD streams, but I just installed a pcHDTV 5500 card, so HD is coming out choppy, hence I want to get XvMC working.
I can't even get mplayer xvmc to work, so that's where I'm concentrating my efforts for now. In both myth and mplayer (and xine) they sit at 100% CPU usage, and the machine freezes - I have to kill the process to recover the system.
Mplayer provides the following output when running the video file:
mplayer -vo xvmc -vc ffmpeg12mc 5686_20090825000000.mpg
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) XP 3000+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Playing 5686_20090825000000.mpg.
TS file format detected.
VIDEO MPEG2(pid=2048) AUDIO A52(pid=2049) NO SUBS (yet)! PROGRAM N. 1
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 19392.8 kbps (2424.1 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
vo_xvmc: X-Video extension 2.2
vo_xvmc: X-Video MotionCompensation Extension version 1.1
================================================== ========================
Forced video codec: ffmpeg12mc
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC accelerated codec.
Selected video codec: [ffmpeg12mc] vfm: ffmpeg (FFmpeg MPEG-1/2 (XvMC))
================================================== ========================
================================================== ========================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
================================================== ========================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
VDec: vo config request - 1920 x 1080 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
VDec: using MPEG1/2 Motion Compensation and IDCT as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xvmc] 1920x1080 => 1920x1080 MPEG1/2 Motion Compensation and IDCT
vo_xvmc: Port 275 grabed
vo_xvmc: Found matching surface with id=54434449 on 275 port at 0 adapter
vo_xvmc: Allocated Direct Context
vo_xvmc: data_blocks allocated
vo_xvmc: mv_blocks allocated
vo_xvmc: Motion Compensation context allocated - 8 surfaces
vo_xvmc: idct=1 unsigned_intra=0
vo_xvmc: looking for OSD support
Subpicture id 0x34344149
vo_xvmc: OSD support by additional frontend rendering
I should note, my xorg.conf includes the following:
Section "Device"
Identifier "Configured Video Device"
# Option "UseFBDev" "true"
Driver "nvidia"
Option "UseEvents" "True"
Option "XvmcUsesTextures" "False" # necessary for color Chromakey OSD)
# Option "NVAGP" "1"
Option "NoLogo" "True"
Option "RenderAccel" "True"
Option "DPMS" "False"
EndSection
Section "Extensions"
Option "Composite" "Disabled"
EndSection
Note that NVAGP = 1 is commented out - when enabled, /proc/drivers/nvidia/agp/status states that AGP is disabled, which I figured was "wrong" or "bad", so I didn't test it that way (maybe I should have?). I suppose I could try NVAGP=2, but even without that, the status file says AGPGART is enabled, so I figured it wasn't necessary.
Any ideas? I can get more logs if needed... there's much more troubleshooting I have already done, but everything I check says XvMC is installed and enabled in the logs (ie, "Motion Compensation" is showing loaded in their respective logs)... yet I get this lockup when trying to use it.
It should be noted that this particular video file plays fine without XvMC in myth, mplayer, and xine.
The only thing I haven't tried yet is regarding AGP and Nvidia drivers >100.x.x... I have seen a few posts saying there may be some sort of bug on AGP systems with the newer drivers, but nothing definitive. I plan to try some v96 flavor driver that EnvyNG can provide... haven't gotten around to that yet.