Sunday, March 7, 2010

XBMC - HDMI audio too fast

Noticed a problem with the XBMC box I have in the family room that the audio / video appeared slightly too fast. I took out my watch and timed a minute of video and found it to off by almost 10 secs. Searching on the internet led me to find that the sample rate of the HDMI interface of 48000Khz was not being handled correctly by the default XBMC config.

Doing the following fixed the problem:
-Setup an ALSA plugin to resample the audio
- Create a file /etc/asound.conf file (make sure the card and device numbers are correct for your system.. Run aplay -l to find the right settings)

hdmi {
type hw
card 1
device 3

pcm.hdmiconv {
type plug
slave {
pcm "hw:1,3"
rate 48000

- In XBMC -> Settings -> System -> Audio -> Device -> Custom -> enter 'hdmiconv'

- Reboot
- Fixed!

1 comment:

  1. Thanks mate, this saved me a lot of trouble.
    Works like a charm.

    Oh, I see that this post is almost 4 years old. This HDMI thing is still an issue in Ubuntu 13.10.
    I guess I should post a bug in Launchpad...

    All the best