Linux Very slow HD playback since upgrade to Gotham with nVidia ION/Vdpau
#1
Hi,

While XBMC always has worked beautifully on my old ION system, things have changed since the upgrade to v13: When I enable VDPAU, playback is VERY SLOW.

A video that shows what I mean with slow (sorry my Dropbox is full):
http://1drv.ms/1AHq7x8

Note that I'm sure that hardware acceleration is enabled, since my CPU usage is only about 10-15% (on an Intel Atom 330 with 2GB ram).

The test video I'm using (but the problem occurs with all HD h264 vids):
http://download.blender.org/peach/bigbuc...p_h264.mov

I'm using Ubuntu 14.04.1 (up2date as of 23-08-2014) with nVidia 304.117, with the following XBMC versions:
13.2~git20140817.2155-final-0trusty (slow playback)
12.3+dfsg1-3ubuntu1 (works perfect)

In both cases I use a completly clean XBMC profile (rm -r ~/.xbmc). The only setting I change is disabling VAAPI (since that is useless with nVidia hardware).

Some system information:
lspci:
Code:
00:00.0 Host bridge: NVIDIA Corporation MCP79 Host Bridge (rev b1)
00:00.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.0 ISA bridge: NVIDIA Corporation MCP79 LPC Bridge (rev b3)
00:03.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.2 SMBus: NVIDIA Corporation MCP79 SMBus (rev b1)
00:03.3 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.5 Co-processor: NVIDIA Corporation MCP79 Co-processor (rev b1)
00:04.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:04.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:06.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:06.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1)
00:09.0 PCI bridge: NVIDIA Corporation MCP79 PCI Bridge (rev b1)
00:0b.0 IDE interface: NVIDIA Corporation MCP79 SATA Controller (rev b1)
00:0c.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:10.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:15.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
03:00.0 VGA compatible controller: NVIDIA Corporation ION VGA (rev b1)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)

lshw:
http://pastebin.ubuntu.com/8122922/

glxinfo:
Code:
direct rendering: Yes
OpenGL renderer string: ION/integrated/SSE2

Vdpauinfo:
http://pastebin.ubuntu.com/8122896/

Dmesg:
http://pastebin.ubuntu.com/8122903/

XBMC 12.3 debug log (everything is working perfect here):
http://pastebin.ubuntu.com/8122908/

XBMC 13.2 debug log (slow playback here):
http://pastebin.ubuntu.com/8122911/

Could someone help me with this problem? Or should I buy new hardware.....
Reply
#2
Gotham works fine on ION so don't rush into buying new hardware!

I suspect an audio problem (yes it manifests like this).

What is your audio setup? (eg HDMI-->Tv, HDMI-->Amplfier, SPDIF-->Amplfier, etc)

What are your audio settings in Gotham. (Enable expert settings level then take screenshots and post them here. It'll probably take 2 screenshots as it is larger than 1 page. Screenshots via prtscr on a keyboard is the easiest way. Post to imgur or similar and post the [IMG] links here)
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
Remove all your custom .asoundrc asound.conf files - that's what's producing the issues.
Quote:20:03:37 T:140513260464064 NOTICE: m_deviceName : default
20:03:37 T:140513260464064 NOTICE: m_displayName : Default (HDA NVidia ALC887 Analog)
20:03:37 T:140513260464064 NOTICE: m_displayNameExtra:
20:03:37 T:140513260464064 NOTICE: m_deviceType : AE_DEVTYPE_PCM
20:03:37 T:140513260464064 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8

Not sure where you got them from - especially the MIX device ...

Quote:20:03:37 T:140513260464064 NOTICE: Device 3
20:03:37 T:140513260464064 NOTICE: m_deviceName : MIX
20:03:37 T:140513260464064 NOTICE: m_displayName : HDA NVidia (MIX)
20:03:37 T:140513260464064 NOTICE: m_displayNameExtra: ALC887 Analog
20:03:37 T:140513260464064 NOTICE: m_deviceType : AE_DEVTYPE_PCM
20:03:37 T:140513260464064 NOTICE: m_channels : FL,FR,BL,BR,FC,LFE,SL,SR,UNKNOWN1,UNKNOWN2,UNKNOWN3,UNKNOWN4,UNKNOWN5,UNKNOWN6,UNKNOWN7,UNKNOWN8
20:03:37 T:140513260464064 NOTICE: m_sampleRates : 44100,48000,96000,192000
20:03:37 T:140513260464064 NOTICE: m_dataFormats : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
Whowh, I never thought that audio could be an issue for the slow video playback! The problem has been solved, and it was indeed an audio problem; namely my custom asoundrc, which can be found here:
http://paste.ubuntu.com/8143455/

This file is used as a very dirty alsa hack to get simultaneous audio output through both HDMI and the analog jack plug. (The analog jack goes to the amplifier, while the HDMI audio is meant for the television).

This hack was needed for XBMC pre-Frodo, where Pulseaudio was buggy in combination with XMBC. But things have changed since then; I removed the file and switched to Pulseaudio (which supports simultaneous output to multiple sinks without hacks) for my audio setup and everything is working perfect now!

Thank you both for your support and feedback!
Reply

Logout Mark Read Team Forum Stats Members Help
Very slow HD playback since upgrade to Gotham with nVidia ION/Vdpau0