[LIVE] HDMI Audio causes super-slow frame rate (2 or 3 fps)
#1
Hi, I'm running v10 live on a Zotac mini PC with AMD M780G chipset which has integrated ATI Radeon 3200 graphics. Works fine with analogue output (box is 80% idle roughly playing a DVD rip) but when I switch to HDMI the box crawls, 2 or 3 fps and audio samples repeating to match. Sounds in the XBMC interface work OK to start with but don't work after attempting to play a movie.

I was able to enable HDMI audio by adding an asound.conf. Have tried type hw to start with then switched to type plug after reading this chipset is a kind of hybrid sound system where the HDMI audio depends on the underlying analogue sound chip. But anyway, here's the current file:

$ cat /etc/asound.conf
pcm.!default {
type plug
slave.pcm "analog-hw"
}

pcm.analog-hw {
type hw
card 1
device 3
}


Many thanks in advance on this!

Here's the aplay info:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC888 Analog [ALC888 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC888 Digital [ALC888 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 0/1
Subdevice #0: subdevice #0

$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
front:CARD=SB,DEV=0
HDA ATI SB, ALC888 Analog
Front speakers
surround40:CARD=SB,DEV=0
HDA ATI SB, ALC888 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
HDA ATI SB, ALC888 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
HDA ATI SB, ALC888 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
HDA ATI SB, ALC888 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
HDA ATI SB, ALC888 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
HDA ATI SB, ALC888 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI
HDA ATI HDMI, ATI HDMI
HDMI Audio Output
Reply
#2
Please post a debug log on pastebin.com.
Reply
#3
Many thanks. I've put that up:

http://pastebin.com/download.php?i=LnzWbEEd

Once playback is commenced there are plenty of these:

20:32:56 T:2512104304 M:587399168 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1784729.353946, should be:351999.666667, error:-1432729.687279
20:32:57 T:2512104304 M:587403264 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
20:32:57 T:2512104304 M:587403264 ERROR: AddPackets - More bytes left than can be stored in buffer

Many thanks.
Reply
#4
Does it work with other programs like speaker-test?
Reply
#5
I get this:

$ speaker-test -Dhdmi -c2 -l2

speaker-test 1.0.22

Playback device is hdmi
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
^C

Works OK though and anlogue channel i.e.:

$ speaker-test -Dfront -c2 -l2

Many thanks for your help thus far.
Reply
#6
The log shows the default alsa device is used, does that one work with speaker-test too?
Reply
#7
Thanks for the reply. I get this:

$ speaker-test -c2 -l2

speaker-test 1.0.23

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Playback open error: -16,Device or resource busy
Reply
#8
GO into System->Appearance->Skin, and disable navigation sounds.
That might get it working.
Reply
#9
Thanks - that enabled speaker-test to be run:

$ speaker-test -c2 -l2

speaker-test 1.0.23

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
^C

The result was a hang at front-left with pink-noise playing on the speaker in an audible loop seemingly at infinitum. So it seems an ALSA problem?

Many thanks,
Reply
#10
Yes, that indicated a problem with alsa.
Reply
#11
Many thanks for your input on this. I couldn't resolve the issue using the Live CD, but a clean install of Ubuntu Desktop 10.10 with XMBC works just fine Nod

Cheers!
Reply
#12
you're probably using pulseaudio then, but as long as it works fine for you and your setup, stick with it.
OpenElec Standalone --> Asus Chromebox 'Panther' --> Onkyo TX-NR709 --> Sony 55" X85C Android TV (also with Kodi!)
Asus Chromebox EZ Script
Kodi on Sony Bravia Android TVs
Reply
#13
Indeed this is the case. Does that general have more compatibility with HDMI outputs or is it just my case (it seems there are many HDMI audio related issues for live)?
Reply
#14
I am having this same exact issue once I enabled HDMI, except I am getting 3-4fps.

Warning: I am brand new to XBMC and also running Linux so my knowledge is limited on how to run tests and such. lol

Hardware:
AMD Phenom 9100e QUad-Core @ 1.8GHz
4GB Ram
ATI Radeon HD 3200 On Board Video with HDMI out.

This is how I set up the HDMI in the system settings:
Audio Output Device - custom
and write
hdmi:CARD=HDMI

Passthrough Output Device - custom
and write
hdmi:CARD=HDMI

Here is the aplay:
Code:
**********************
aplay -L
**********************
null
  Discard all samples (playback) or generate zero samples (capture)
default:CARD=SB
  HDA ATI SB, ALC1200 Analog
  default Audio Device
front:CARD=SB, DEV=0
  HDA ATI SB, ALC1200 Analog
  Front speakers
surround40:CARD=SB, DEV=0
  HDA ATI SB, ALC1200 Analog
  4.0 Surround Output to Front and Rear speakers
surround41:CARD=SB, DEV=0
  HDA ATI SB, ALC1200 Analog
  4.1 Surround Output to Front and Rear speakers
surround50:CARD=SB, DEV=0
  HDA ATI SB, ALC1200 Analog
  5.0 Surround Output to Front, Center and Rear speakers
surround51:CARD=SB, DEV=0
  HDA ATI SB, ALC1200 Analog
  5.1 Surround Output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB, DEV=0
  HDA ATI SB, ALC1200 Analog
  7.1 Surround Output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB, DEV=0
  HDA ATI SB, ALC1200 Digital
  IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI
  HDA ATI HDMI, ATI HDMI
  HDMI Audio Output



*********************
aplay -l
*********************
List of playback hardware devices
card 0: SB [HDA ATI SB], device 0: ALC1200 Analog [ALC1200 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC1200 Digital [ALC1200 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


I have posted a debug log: http://pastebin.com/niQDNxQS I think playback starts around line 200 if I am reading it right.

I did the speaker test and get the same results as posted earlier in this thread for the HDMI test:
Code:
$ speaker-test -Dhdmi -c2 -l2

speaker-test 1.0.22

Playback device is hdmi
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Playback open error: -2,No such file or directory
Analog:
Code:
$ speaker-test -Dfront -c2 -l2
speaker-test 1.0.22
playback device is front
steram parameters are 48000hz, s16_le, 2 channels
using 16 octaves of pink noise
playback open error: -16, device or resource busy
playback open error: -16, device or resource busy
playback open error: -16, device or resource busy
playback open error: -16, device or resource busy
And when I do this one i hear it from my analog speakers
Code:
$ speaker-test -c2 -l2

speaker-test 1.0.22

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
0 - Front Left
1 - Front Right


Is there something I can do to fix the fps when using hdmi?
Thanks for any help!!

JB
Reply
#15
Perhaps there is a problem with Live and the HD3200 in general.

I couldn't fix it with Live so switched to a full Ubuntu desktop (10.10) install and once updated (and the ATi 'restricted' Catalyst drivers installed) added XBMC which is simply a case of going to a command line "sudo apt-get install xbmc" then adding to the auto-startup facility.

As noted above this uses pulseaudio so perhaps that is another route to take with Live.

Hope that helps!
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE] HDMI Audio causes super-slow frame rate (2 or 3 fps)0