Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

glitchy audio with vdpau

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


alex.l.williamson at gmail

Mar 24, 2009, 12:25 PM

Post #1 of 9 (2665 views)
Permalink
glitchy audio with vdpau

I'm using an ASUS M3N78-VM with onboard audio, onboard Nvidia 8200 gfx
(512MB memory) and 4850e 2.5GHz dual core CPU. I upgraded to Ubuntu
Jaunty and I'm using the Ubuntu ppa builds of mythtv trunk (currently
20250).

Initially I was really excited to try out vdpau and impressed that my
system can churn out HD via my hdromrun with hardly any CPU load.
Then I started to notice the audio glitches and the prebuffering
pauses in my mythfrontend log file. My ultimate goal is to make use
of an hdpvr connected to my stb, but the output becomes unwatchable
with the audio glitching and the effect it seems to have on the
picture. If I turn off audio, the video seems to be pretty good
(maybe not perfect, but a lot better). I have yet to find a
combination of frontend settings that can play the H.264 output
cleanly (vdpau or not). For hdhomerun content, I can use the
"standard" decoder with vdpau for both options and get smooth output,
but this hardly seems to be offloading anything to the gfx. FWIW, I'm
using the 180.37 Nvidia release. I've also tried an old emu10k
(SBLive) audio card, but it didn't make a difference. With vdpau, the
CPU usage is low when I get the audio glitches, and the system is a
combined frontend/backend, so the data is local. I didn't see
anything else in the wiki page on audio problems that seemed relevant
to this problem. I'm using the analog stereo out from the system, so
no AC3 passthrough.

Any thoughts on what to try next? I see reports of the 8200 IGP
working fine with vdpau, so I'm hoping it's not a problem there. I've
tried overclocking the CPU to 3GHz and the gfx to 600MHz as a test,
but it didn't seem to improve anything. Would using AC3 pass-through
with an HDMI output buy me anything? Thanks for any pointers or
details of this class of system working with vdpau (or even software
decoding for H.264),

Alex
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


travis at tabbal

Mar 24, 2009, 12:34 PM

Post #2 of 9 (2599 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

On Tue, Mar 24, 2009 at 1:25 PM, Alex Williamson <
alex.l.williamson [at] gmail> wrote:

> I'm using an ASUS M3N78-VM with onboard audio, onboard Nvidia 8200 gfx
> (512MB memory) and 4850e 2.5GHz dual core CPU. I upgraded to Ubuntu
> Jaunty and I'm using the Ubuntu ppa builds of mythtv trunk (currently
> 20250).



I haven't tried trunk. I'm using the .21-fixes repo. I have a system based
on the same mobo with an X2 3800+ CPU. It's working quite well with VDPAU. I
play MPEG2 from an HDHR and H264 from blueray rips and recompressed DVDs and
such. I haven't noticed audio problems.

One thing that helped for me, was to start with VDPAU by using mplayer. The
SVN version of it has VDPAU support and there is a huge thread on the NVidia
forum about it. That has worked well for me in the past. For Myth, make sure
you set up a playback profile and tell it to use VDPAU. It doesn't use it by
default. Posting a part of your mythfrontend.log and Xorg log will help
people diagnose your issue.


alex.l.williamson at gmail

Mar 24, 2009, 7:03 PM

Post #3 of 9 (2570 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

2009/3/24 Travis Tabbal <travis [at] tabbal>:
> For Myth, make sure
> you set up a playback profile and tell it to use VDPAU. It doesn't use it by
> default. Posting a part of your mythfrontend.log and Xorg log will help
> people diagnose your issue.

My playback profile is as follows:

if rez >= 0 0 & <= 1920 1080 -> vdpau & vdpau
Decoder: NVidia VDPAU acceleration
Video Renderer: vdpau OSD Renderer: vdpau
Primary Deinterlacer: Temporal (2x, Hw)
Fallback Deinterlacer: One Field (1x, Hw)

I have both "Extra audio buffering" and "Aggressive Sound card
Buffering" enabled, but the first is the only one that seems to make
much difference (the second only adds the audio_buffer_unused log
output below). As I play with it a little more, I also note that if I
set cpufreq to the performance governor (ie. pin the CPUs to 2.5GHz)
it almost entirely eliminates the audio glitch for HDHR content (can't
try HD-PVR atm). However, mythfrontend is then taking ~6% CPU versus
the 15-20% it uses with the ondemand scheduler, when it's running
@1GHz for LiveTV. It should have plenty of overhead at 1GHz,
ondemand. I don't really consider pinning the CPU at high speed an
option unless I can toggle it around playing videos. Here's a log of
mythfrontend starting LiveTV:

2009-03-24 19:33:14.644 TV: Attempting to change from None to Watching
WatchingLiveTV
2009-03-24 19:33:14.645 Using protocol version 44
2009-03-24 19:33:14.753 Spawning LiveTV Recorder -- begin
2009-03-24 19:33:16.013 Spawning LiveTV Recorder -- end
2009-03-24 19:33:16.038 We have a
playbackURL(/var/lib/mythtv/recordings/2041_20090324193314.mpg) &
cardtype(DUMMY)
2009-03-24 19:33:16.038 We have a RingBuffer
2009-03-24 19:33:16.039 TV: StartPlayer(0, Watching WatchingLiveTV,
main) -- begin
2009-03-24 19:33:16.071 NVP(1): Disabling Audio, params(-1,2,44100)
2009-03-24 19:33:16.442 OSD Theme Dimensions W: 640 H: 480
2009-03-24 19:33:17.130 TV: StartPlayer(0, Watching WatchingLiveTV,
main) -- end ok
2009-03-24 19:33:17.130 TV: Changing from None to Watching WatchingLiveTV
2009-03-24 19:33:17.130 TV: State is LiveTV & mctx == ctx
2009-03-24 19:33:17.133 TV: UpdateOSDInput done
2009-03-24 19:33:17.133 TV: UpdateLCD done
2009-03-24 19:33:17.133 TV: ITVRestart done
2009-03-24 19:33:17.135 Using realtime priority.
2009-03-24 19:33:17.136 OpenGLVideoSync()
2009-03-24 19:33:17.198 Video timing method: SGI OpenGL
2009-03-24 19:33:18.947 ScreenSaverX11Private: DPMS Deactivated 1
2009-03-24 19:33:19.049 New DB connection, total: 4
2009-03-24 19:33:19.051 Connected to database 'mythconverg' at host: mythbox
2009-03-24 19:33:20.371 VideoOutputXv: Desired video renderer '' not available.
codec 'MPEG2 VDPAU' makes 'vdpau,' available, using 'vdpau' instead.
2009-03-24 19:33:20.740 AFD: Opened codec 0x8ed7b20,
id(MPEGVIDEO_VDPAU) type(Video)
2009-03-24 19:33:20.740 AFD: codec AC3 has 6 channels
2009-03-24 19:33:20.741 AFD: Opened codec 0x8ed84d0, id(AC3) type(Audio)
2009-03-24 19:33:20.741 AFD: codec AC3 has 1 channels
2009-03-24 19:33:20.741 AFD: Opened codec 0x8ed3c10, id(AC3) type(Audio)
2009-03-24 19:33:20.795 Opening audio device 'default'. ch 2(2) sr 48000
2009-03-24 19:33:20.795 Opening ALSA audio device 'default'.
2009-03-24 19:33:20.830 Mixer unable to find control Master
2009-03-24 19:33:20.830 Mixer unable to find control Master
2009-03-24 19:33:20.831 NVP(1): Enabling Audio
2009-03-24 19:33:20.957 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.010 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.063 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.122 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.153 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.212 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.244 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.276 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.308 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.340 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.372 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.404 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.436 AO: dropping back audio_buffer_unused
2009-03-24 19:33:21.468 AO: dropping back audio_buffer_unused
2009-03-24 19:33:25.681 NVP(1): prebuffering pause
2009-03-24 19:33:27.415 NVP(1): prebuffering pause
2009-03-24 19:33:29.112 NVP(1): prebuffering pause
2009-03-24 19:33:30.945 NVP(1): prebuffering pause
2009-03-24 19:33:32.135 NVP(1): prebuffering pause
2009-03-24 19:33:32.137 WriteAudio: buffer underrun
2009-03-24 19:33:34.106 NVP(1): prebuffering pause
2009-03-24 19:33:36.228 NVP(1): prebuffering pause
2009-03-24 19:33:38.543 NVP(1): prebuffering pause

And my Xorg.log:

X.Org X Server 1.6.0
Release Date: 2009-2-25
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-23-server i686 Ubuntu
Current Operating System: Linux mythbox 2.6.28-11-generic #37-Ubuntu
SMP Mon Mar 23 16:40:23 UTC 2009 i686
Build Date: 20 March 2009 02:01:06PM
xorg-server 2:1.6.0-0ubuntu4 (buildd [at] rothera)
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: [ 0.016282] (--) probed, [ 0.016310] (**) from config
file, [ 0.016327] (==) default setting,
[ 0.016344] (++) from command line, [ 0.016360] (!!) notice, [
0.016377] (II) informational,
[ 0.016393] (WW) warning, [ 0.016410] (EE) error, [
0.016426] (NI) not implemented, [ 0.016443] (??) unknown.
[ 0.016651] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 24
19:28:21 2009
[ 0.016770] (==) Using config file: "/etc/X11/xorg.conf"
[ 0.029464] (==) No Layout section. Using the first Screen section.
[ 0.029567] (**) |-->Screen "Default Screen" (0)
[ 0.029590] (**) | |-->Monitor "<default monitor>"
[ 0.030128] (==) No device specified for screen "Default Screen".
Using the first device section listed.
[ 0.030179] (**) | |-->Device "Default Device"
[ 0.030193] (==) No monitor specified for screen "Default Screen".
Using a default monitor configuration.
[ 0.030357] (==) Automatically adding devices
[ 0.030378] (==) Automatically enabling devices
[ 0.047929] (WW) The directory "/usr/share/fonts/X11/cyrillic" does
not exist.
Entry deleted from font path.
[ 0.101365] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
built-ins
[ 0.101415] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 0.109148] (**) Extension "Composite" is disabled
[ 0.109176] (II) Cannot locate a core pointer device.
[ 0.109190] (II) Cannot locate a core keyboard device.
[ 0.109201] (II) The server relies on HAL to provide the list of
input devices.
If no devices become available, reconfigure HAL or disable AllowEmptyInput.
[ 0.109233] (II) Loader magic: 0x3bc0
[ 0.109246] (II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 5.0
X.Org XInput driver : 4.0
X.Org Server Extension : 2.0
[ 0.109293] (II) Loader running on linux
[ 0.109313] (++) using VT number 7

[ 0.245784] (--) PCI: (0@0:1:3) nVidia Corporation MCP78S [GeForce
8200] Co-Processor rev 162, Mem @ 0xfcf80000/524288
[ 0.388372] (--) PCI: (0@1:7:0) Internext Compression Inc iTVC15
MPEG-2 Encoder rev 1, Mem @ 0xdc000000/67108864
[ 0.388497] (--) PCI:*(0@2:0:0) nVidia Corporation GeForce 8200 rev
162, Mem @ 0xfd000000/16777216, 0xf0000000/134217728,
0xfa000000/33554432, I/O @ 0x0000ec00/128, BIOS @ 0x????????/131072
[ 0.388796] (II) Open ACPI successful (/var/run/acpid.socket)
[ 0.388862] (II) System resource ranges:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[5] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[6] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[7] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[8] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[9] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[10] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[11] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[12] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[13] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[14] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[15] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[16] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[17] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[18] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[19] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[20] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[21] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[22] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[23] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[ 0.389799] (II) "extmod" will be loaded by default.
[ 0.389815] (II) "dbe" will be loaded by default.
[ 0.389827] (II) "glx" will be loaded. This was enabled by default
and also specified in the config file.
[ 0.389872] (II) "record" will be loaded by default.
[ 0.389889] (II) "dri" will be loaded by default.
[ 0.389901] (II) "dri2" will be loaded by default.
[ 0.389918] (II) LoadModule: "glx"
[ 0.426239] (II) Loading /usr/lib/xorg/modules/extensions//libglx.so
[ 0.529632] (II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Server Extension
[ 0.529736] (II) NVIDIA GLX Module 180.37 Thu Mar 5 18:43:15 PST 2009
[ 0.529755] (II) Loading extension GLX
[ 0.529774] (II) LoadModule: "extmod"
[ 0.530527] (II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
[ 0.530902] (II) Module extmod: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
[ 0.530961] (II) Loading extension MIT-SCREEN-SAVER
[ 0.530974] (II) Loading extension XFree86-VidModeExtension
[ 0.530987] (II) Loading extension XFree86-DGA
[ 0.531002] (II) Loading extension DPMS
[ 0.531014] (II) Loading extension XVideo
[ 0.531029] (II) Loading extension XVideo-MotionCompensation
[ 0.531041] (II) Loading extension X-Resource
[ 0.531055] (II) LoadModule: "dbe"
[ 0.531557] (II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
[ 0.531973] (II) Module dbe: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
[ 0.532094] (II) Loading extension DOUBLE-BUFFER
[ 0.532113] (II) LoadModule: "record"
[ 0.532820] (II) Loading /usr/lib/xorg/modules/extensions//librecord.so
[ 0.533064] (II) Module record: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
[ 0.533123] (II) Loading extension RECORD
[ 0.533137] (II) LoadModule: "dri"
[ 0.533654] (II) Loading /usr/lib/xorg/modules/extensions//libdri.so
[ 0.534050] (II) Module dri: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
[ 0.534103] (II) Loading extension XFree86-DRI
[ 0.534128] (II) LoadModule: "dri2"
[ 0.534720] (II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
[ 0.534901] (II) Module dri2: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
[ 0.534948] (II) Loading extension DRI2
[ 0.534966] (II) LoadModule: "nvidia"
[ 0.535313] (II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
[ 0.575679] (II) Module nvidia: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.0
Module class: X.Org Video Driver
[ 0.582725] (II) NVIDIA dlloader X Driver 180.37 Thu Mar 5
18:18:44 PST 2009
[ 0.583627] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 0.585404] (II) Primary Device is: PCI 02 [at] 0:00:0
[ 0.585485] (II) Loading sub module "fb"
[ 0.585500] (II) LoadModule: "fb"
[ 0.585686] (II) Loading /usr/lib/xorg/modules//libfb.so
[ 0.586096] (II) Module fb: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.4
[ 0.586188] (II) Loading sub module "wfb"
[ 0.586200] (II) LoadModule: "wfb"
[ 0.586337] (II) Loading /usr/lib/xorg/modules//libwfb.so
[ 0.586628] (II) Module wfb: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.4
[ 0.586809] (II) Loading sub module "ramdac"
[ 0.586828] (II) LoadModule: "ramdac"
[ 0.586857] (II) Module "ramdac" already built-in
[ 0.586984] (II) resource ranges after probing:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[5] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[6] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[7] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[8] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[9] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[10] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[11] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[12] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[13] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[14] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[15] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[16] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[17] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[18] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[19] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[20] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[21] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[22] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[23] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[ 0.625508] (II) NVIDIA(0): Creating default Display subsection in
Screen section
"Default Screen" for depth/fbbpp 24/32
[ 0.625598] (**) NVIDIA(0): Depth 24, [ 0.625613] (--) framebuffer bpp 32
[ 0.625790] (==) NVIDIA(0): RGB weight 888
[ 0.625812] (==) NVIDIA(0): Default visual is TrueColor
[ 0.625833] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 0.625912] (**) NVIDIA(0): Option "NoLogo" "True"
[ 0.626347] (**) NVIDIA(0): Enabling RENDER acceleration
[ 1.165075] (II) NVIDIA(0): NVIDIA GPU GeForce 8200 (C77) at
PCI:2:0:0 (GPU-0)
[ 1.165142] (--) NVIDIA(0): Memory: 524288 kBytes
[ 1.165161] (--) NVIDIA(0): VideoBIOS: 62.77.2f.00.00
[ 1.165182] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
[ 1.165206] (--) NVIDIA(0): Connected display device(s) on GeForce
8200 at PCI:2:0:0:
[ 1.165222] (--) NVIDIA(0): HP LC720N (CRT-0)
[ 1.165255] (--) NVIDIA(0): HP LC720N (CRT-0): 300.0 MHz maximum pixel clock
[ 1.207298] (II) NVIDIA(0): Assigned Display Device: CRT-0
[ 1.207362] (==) NVIDIA(0):
[ 1.207385] (==) NVIDIA(0): No modes were requested; the default
mode "nvidia-auto-select"
[ 1.207401] (==) NVIDIA(0): will be used as the requested mode.
[ 1.207417] (==) NVIDIA(0):
[ 1.207537] (II) NVIDIA(0): Validated modes:
[ 1.207557] (II) NVIDIA(0): "nvidia-auto-select"
[ 1.207582] (II) NVIDIA(0): Virtual screen size determined to be 1360 x 768
[ 1.227588] (++) NVIDIA(0): DPI set to (100, 100); computed from
-dpi X commandline option
[ 1.227734] (==) NVIDIA(0): Disabling 32-bit ARGB GLX visuals.
[ 1.228401] (--) Depth 24 pixmap format is 32 bpp
[ 1.228424] (II) do I need RAC? No, I don't.
[ 1.228444] (II) resource ranges after preInit:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[5] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[6] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[7] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[8] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[9] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[10] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[11] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[12] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[13] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[14] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[15] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[16] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[17] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[18] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[19] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[20] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[21] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[22] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[23] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
[ 1.235298] (II) NVIDIA(0): Initialized GPU GART.
[ 1.245276] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
[ 1.282494] (II) Loading extension NV-GLX
[ 1.325714] (II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
[ 1.330332] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 1.330361] (II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
[ 1.330393] (==) NVIDIA(0): Backing store disabled
[ 1.330414] (==) NVIDIA(0): Silken mouse enabled
[ 1.346682] (II) NVIDIA(0): DPMS enabled
[ 1.346846] (II) Loading extension NV-CONTROL
[ 1.348190] (II) Loading extension XINERAMA
[ 1.348707] (==) RandR enabled
[ 1.382716] (II) Initializing built-in extension Generic Event Extension
[ 1.382745] (II) Initializing built-in extension SHAPE
[ 1.382751] (II) Initializing built-in extension MIT-SHM
[ 1.382756] (II) Initializing built-in extension XInputExtension
[ 1.382762] (II) Initializing built-in extension XTEST
[ 1.382767] (II) Initializing built-in extension BIG-REQUESTS
[ 1.382773] (II) Initializing built-in extension SYNC
[ 1.382778] (II) Initializing built-in extension XKEYBOARD
[ 1.382783] (II) Initializing built-in extension XC-MISC
[ 1.382789] (II) Initializing built-in extension SECURITY
[ 1.382794] (II) Initializing built-in extension XINERAMA
[ 1.382799] (II) Initializing built-in extension XFIXES
[ 1.382804] (II) Initializing built-in extension RENDER
[ 1.382809] (II) Initializing built-in extension RANDR
[ 1.382814] (II) Initializing built-in extension COMPOSITE
[ 1.382820] (II) Initializing built-in extension DAMAGE
[ 1.382872] (II) Initializing extension GLX
[ 1.799344] (II) config/hal: Adding input device BTC USB Multimedia
Cordless Kit
[ 1.799387] (II) LoadModule: "evdev"
[ 1.799507] (II) Loading /usr/lib/xorg/modules/input//evdev_drv.so
[ 1.799653] (II) Module evdev: vendor="X.Org Foundation"
compiled for 1.5.99.902, module version = 2.1.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 4.0
[ 1.799710] (**) BTC USB Multimedia Cordless Kit: always reports core events
[ 1.799721] (**) BTC USB Multimedia Cordless Kit: Device: "/dev/input/event4"
[ 1.800357] (II) BTC USB Multimedia Cordless Kit: Found 3 mouse buttons
[ 1.800368] (II) BTC USB Multimedia Cordless Kit: Found x and y relative axes
[ 1.800374] (II) BTC USB Multimedia Cordless Kit: Found x and y absolute axes
[ 1.800379] (II) BTC USB Multimedia Cordless Kit: Found keys
[ 1.800385] (II) BTC USB Multimedia Cordless Kit: Configuring as mouse
[ 1.800391] (II) BTC USB Multimedia Cordless Kit: Configuring as keyboard
[ 1.800410] (**) BTC USB Multimedia Cordless Kit: YAxisMapping:
buttons 4 and 5
[ 1.800417] (**) BTC USB Multimedia Cordless Kit:
EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout:
200
[ 1.800437] (II) XINPUT: Adding extended input device "BTC USB
Multimedia Cordless Kit" (type: KEYBOARD)
[ 1.800454] (**) Option "xkb_rules" "evdev"
[ 1.800466] (**) BTC USB Multimedia Cordless Kit: xkb_rules: "evdev"
[ 1.800473] (**) Option "xkb_model" "pc105"
[ 1.800484] (**) BTC USB Multimedia Cordless Kit: xkb_model: "pc105"
[ 1.800490] (**) Option "xkb_layout" "us"
[ 1.800504] (**) BTC USB Multimedia Cordless Kit: xkb_layout: "us"
[ 1.871685] (**) BTC USB Multimedia Cordless Kit: (accel) keeping
acceleration scheme 1
[ 1.871706] (**) BTC USB Multimedia Cordless Kit: (accel) filter
chain progression: 2.00
[ 1.871718] (**) BTC USB Multimedia Cordless Kit: (accel) filter
stage 0: 20.00 ms
[ 1.871734] (**) BTC USB Multimedia Cordless Kit: (accel) set
acceleration profile 0
[ 1.873929] (II) config/hal: Adding input device Macintosh mouse
button emulation
[ 1.874004] (**) Macintosh mouse button emulation: always reports core events
[ 1.874015] (**) Macintosh mouse button emulation: Device:
"/dev/input/event2"
[ 1.874637] (II) Macintosh mouse button emulation: Found 3 mouse buttons
[ 1.874648] (II) Macintosh mouse button emulation: Found x and y
relative axes
[ 1.874673] (II) Macintosh mouse button emulation: Configuring as mouse
[ 1.874688] (**) Macintosh mouse button emulation: YAxisMapping:
buttons 4 and 5
[ 1.874695] (**) Macintosh mouse button emulation:
EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout:
200
[ 1.874713] (II) XINPUT: Adding extended input device "Macintosh
mouse button emulation" (type: MOUSE)
[ 1.874739] (**) Macintosh mouse button emulation: (accel) keeping
acceleration scheme 1
[ 1.874747] (**) Macintosh mouse button emulation: (accel) filter
chain progression: 2.00
[ 1.874759] (**) Macintosh mouse button emulation: (accel) filter
stage 0: 20.00 ms
[ 1.874775] (**) Macintosh mouse button emulation: (accel) set
acceleration profile 0
[ 1.876820] (II) config/hal: Adding input device BTC USB Multimedia
Cordless Kit
[ 1.876865] (**) BTC USB Multimedia Cordless Kit: always reports core events
[ 1.876875] (**) BTC USB Multimedia Cordless Kit: Device: "/dev/input/event3"
[ 1.877491] (II) BTC USB Multimedia Cordless Kit: Found keys
[ 1.877502] (II) BTC USB Multimedia Cordless Kit: Configuring as keyboard
[ 1.877517] (II) XINPUT: Adding extended input device "BTC USB
Multimedia Cordless Kit" (type: KEYBOARD)
[ 1.877534] (**) Option "xkb_rules" "evdev"
[ 1.877547] (**) BTC USB Multimedia Cordless Kit: xkb_rules: "evdev"
[ 1.877553] (**) Option "xkb_model" "pc105"
[ 1.877565] (**) BTC USB Multimedia Cordless Kit: xkb_model: "pc105"
[ 1.877572] (**) Option "xkb_layout" "us"
[ 1.877583] (**) BTC USB Multimedia Cordless Kit: xkb_layout: "us"

Thanks,

Alex
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Mar 24, 2009, 7:11 PM

Post #4 of 9 (2576 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

On 03/24/2009 10:03 PM, Alex Williamson wrote:
> I have both "Extra audio buffering" and "Aggressive Sound card
> Buffering" enabled, but the first is the only one that seems to make
> much difference (the second only adds the audio_buffer_unused log
> output below).


Don't know about the rest, but you really shouldn't have both enabled.
You almost definitely want the first and really the second should almost
never be used.

http://www.gossamer-threads.com/lists/mythtv/users/369073#369073

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


alex.l.williamson at gmail

Mar 24, 2009, 7:20 PM

Post #5 of 9 (2575 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

On Tue, Mar 24, 2009 at 8:11 PM, Michael T. Dean
<mtdean [at] thirdcontact> wrote:
> On 03/24/2009 10:03 PM, Alex Williamson wrote:
>> I have both "Extra audio buffering" and "Aggressive Sound card
>> Buffering" enabled, but the first is the only one that seems to make
>> much difference (the second only adds the audio_buffer_unused log
>> output below).
>
>
> Don't know about the rest, but you really shouldn't have both enabled.
> You almost definitely want the first and really the second should almost
> never be used.
>
> http://www.gossamer-threads.com/lists/mythtv/users/369073#369073

Thanks for the reference. I typically only use the extra buffering,
but thought I'd go through all the options given the problems I'm
seeing. FWIW, I've also discovered setting my minimum cpufreq scaling
to 1.8GHz is enough to avoid the glitches. Is there already some
facility in mythtv to run an external script at the start and end of
video playback? Thanks,

Alex
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


alex.l.williamson at gmail

Mar 24, 2009, 9:31 PM

Post #6 of 9 (2572 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

On Tue, Mar 24, 2009 at 8:20 PM, Alex Williamson
<alex.l.williamson [at] gmail> wrote:
FWIW, I've also discovered setting my minimum cpufreq scaling
> to 1.8GHz is enough to avoid the glitches.  Is there already some
> facility in mythtv to run an external script at the start and end of
> video playback?  Thanks,

Hmm, so over on XBMC I see reference to similar problems and a similar
solution. I haven't found the exact details, but it sounds like when
the processor is running at 1GHz, there's simply not enough bandwidth
for VDPAU to do 720p. I don't need the actual processing clock cycles
at 1.8GHz, but it seems to increase the memory bandwidth enough to
keep everything happy. H.264 from the hdpvr looks great now too!
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


derliebegott at gmail

Mar 25, 2009, 1:32 AM

Post #7 of 9 (2557 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

2009/3/25 Alex Williamson <alex.l.williamson [at] gmail>:
> On Tue, Mar 24, 2009 at 8:11 PM, Michael T. Dean
> <mtdean [at] thirdcontact> wrote:
>> On 03/24/2009 10:03 PM, Alex Williamson wrote:
>>> I have both "Extra audio buffering" and "Aggressive Sound card
>>> Buffering" enabled, but the first is the only one that seems to make
>>> much difference (the second only adds the audio_buffer_unused log
>>> output below).
>>
>>
>> Don't know about the rest, but you really shouldn't have both enabled.
>> You almost definitely want the first and really the second should almost
>> never be used.
>>
>> http://www.gossamer-threads.com/lists/mythtv/users/369073#369073
>
> Thanks for the reference.  I typically only use the extra buffering,
> but thought I'd go through all the options given the problems I'm
> seeing.  FWIW, I've also discovered setting my minimum cpufreq scaling
> to 1.8GHz is enough to avoid the glitches.  Is there already some
> facility in mythtv to run an external script at the start and end of
> video playback?  Thanks,
>
> Alex

you should set your cpu_governor to "conservative" and that should be
enough. "conservative" changes cpu speed very fast and very reliable.

echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jarpublic at gmail

Mar 25, 2009, 5:17 AM

Post #8 of 9 (2557 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

>> Thanks for the reference.  I typically only use the extra buffering,
>> but thought I'd go through all the options given the problems I'm
>> seeing.  FWIW, I've also discovered setting my minimum cpufreq scaling
>> to 1.8GHz is enough to avoid the glitches.  Is there already some
>> facility in mythtv to run an external script at the start and end of
>> video playback?  Thanks,
>>
>> Alex
>
> you should set your cpu_governor to "conservative" and that should be
> enough. "conservative" changes cpu speed very fast and very reliable.
>
> echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Just curious how would this change the memory bandwidth? I thought the
cpu scaling was only changing the multiplier that the cpu uses
internally. It doesn't change the front side bus speed (ie the speed
the memory is running at). Does it also mess with the memory in some
way? Or is this a result of the fact that AMD has their memory
controller on die with the CPU?
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


alex.l.williamson at gmail

Mar 25, 2009, 6:01 AM

Post #9 of 9 (2541 views)
Permalink
Re: glitchy audio with vdpau [In reply to]

On Wed, Mar 25, 2009 at 6:17 AM, Johnny <jarpublic [at] gmail> wrote:
>>> Thanks for the reference.  I typically only use the extra buffering,
>>> but thought I'd go through all the options given the problems I'm
>>> seeing.  FWIW, I've also discovered setting my minimum cpufreq scaling
>>> to 1.8GHz is enough to avoid the glitches.  Is there already some
>>> facility in mythtv to run an external script at the start and end of
>>> video playback?  Thanks,
>>>
>>> Alex
>>
>> you should set your cpu_governor to "conservative" and that should be
>> enough. "conservative" changes cpu speed very fast and very reliable.
>>
>> echo conservative > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

I tried this, the conservative governor will also make the CPU run at
1GHz, which causes the glitches. Cpufreq scaling is based on
processor load, which is low, and has no notion of how much memory
bandwidth is being used by other hardware.

> Just curious how would this change the memory bandwidth? I thought the
> cpu scaling was only changing the multiplier that the cpu uses
> internally. It doesn't change the front side bus speed (ie the speed
> the memory is running at). Does it also mess with the memory in some
> way? Or is this a result of the fact that AMD has their memory
> controller on die with the CPU?

I haven't found a good reference that describes the problem, but the
memory controller is on the processor. The memory controller seems to
be run based on a multiplier of the CPU frequency, but I don't know
what happens to that multiplier when processor frequency scaling
changes. My system is running dual-channel ddr2/800, the problem is
apparently worse with slower memory or single channel memory.

Alex
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.