2009-06-18, 00:13
Hi all!,
I have read and re-read and searched and searched and searched to find a solution to my particular xbmc problem! I hope someone can help - and hope it helps others with the same problem!
Background... Found myself with a spare laptop. Figured I'd make it into a media center PC connected to the TV. Off I went, installed Ubuntu 9.04, xbmc etc. etc. Decided I needed remote control over the machine - so installed Synergy (software KVM - basically means I can control the media center laptop from the coffee table laptop! - I'm that lazy!).
Problem one was no sound at all via XBMC. Laptop is connected to TV via VGA (no HDMI on this one - and Ubuntu is a bit rubbish in its support there anyway). Audio is taken from the optical out (SPDIF) into the back of the surround sound system (audio hardware is Realtek ALC260).
Got audio by changing the ALSA mixer to show IEC958 switches. Enabled them. Then, changed the audio hardware to iec958 in XBMC. Et Voila! MP3 Audio working! Changed sound preferences in Ubuntu to default to ALSA Digital.
Next up...
YouTube
BBC iPlayer
...via the xbmc SVN Repo Installer (also grabbed the XBMC Favorites Installer, equally useful). Both worked a treat, result....
Until, I tried other media sources/plugins. E.g., WatchXOnline (TV shows and movies). Another plugin for The Simpsons episodes. One for family guy episodes. (etc. etc. you get the picture). None of them will work - I get either "Failed initialising audio device" or - it plays too fast (sounds a lot like the chipmunks - which I don't mind - cept when I don't want to listen to the chipmunks!).
* scratches head *
Then I noted that YouTube in a browser did not have audio. In fact, there was no Operating System audio (login sounds etc.). Found this very odd as "youtube in xbmc" worked just fine.
Upgraded all drivers - including ALSA - to latest.
Then, added a ".asoundrc" to my home directory reading...
(tried different rates/formats, no success, in the end, worked better without specifying either)
And whaddya know.... suddenly, I have OS sounds from Ubuntu. And... I now have sounds in xbmc in terms of navigation (button clicks, menu selections etc.... hadn't even realised it had them until I did the above!).
Still no sound in "browser flash" land. And.... in XBMC, most streams other than iPlayer/YouTube still either give me no audio - or audio played too fast.
I have also tried Pulse Audio and OSS to no avail. Have also tried other Linux Distros.
Anyone any ideas? Maybe I'll try bouncing the laptop off the floor a couple of times....
Cheers!,
~G
I have read and re-read and searched and searched and searched to find a solution to my particular xbmc problem! I hope someone can help - and hope it helps others with the same problem!
Background... Found myself with a spare laptop. Figured I'd make it into a media center PC connected to the TV. Off I went, installed Ubuntu 9.04, xbmc etc. etc. Decided I needed remote control over the machine - so installed Synergy (software KVM - basically means I can control the media center laptop from the coffee table laptop! - I'm that lazy!).
Problem one was no sound at all via XBMC. Laptop is connected to TV via VGA (no HDMI on this one - and Ubuntu is a bit rubbish in its support there anyway). Audio is taken from the optical out (SPDIF) into the back of the surround sound system (audio hardware is Realtek ALC260).
Got audio by changing the ALSA mixer to show IEC958 switches. Enabled them. Then, changed the audio hardware to iec958 in XBMC. Et Voila! MP3 Audio working! Changed sound preferences in Ubuntu to default to ALSA Digital.
Next up...
YouTube
BBC iPlayer
...via the xbmc SVN Repo Installer (also grabbed the XBMC Favorites Installer, equally useful). Both worked a treat, result....
Until, I tried other media sources/plugins. E.g., WatchXOnline (TV shows and movies). Another plugin for The Simpsons episodes. One for family guy episodes. (etc. etc. you get the picture). None of them will work - I get either "Failed initialising audio device" or - it plays too fast (sounds a lot like the chipmunks - which I don't mind - cept when I don't want to listen to the chipmunks!).
* scratches head *
Then I noted that YouTube in a browser did not have audio. In fact, there was no Operating System audio (login sounds etc.). Found this very odd as "youtube in xbmc" worked just fine.
Upgraded all drivers - including ALSA - to latest.
Then, added a ".asoundrc" to my home directory reading...
Code:
pcm.!default {
type plug
slave.pcm "cards.pcm.iec958"
slave {
pcm "cards.pcm.iec958"
# rate 44100
# format S16_LE
}
}
(tried different rates/formats, no success, in the end, worked better without specifying either)
And whaddya know.... suddenly, I have OS sounds from Ubuntu. And... I now have sounds in xbmc in terms of navigation (button clicks, menu selections etc.... hadn't even realised it had them until I did the above!).
Still no sound in "browser flash" land. And.... in XBMC, most streams other than iPlayer/YouTube still either give me no audio - or audio played too fast.
I have also tried Pulse Audio and OSS to no avail. Have also tried other Linux Distros.
Anyone any ideas? Maybe I'll try bouncing the laptop off the floor a couple of times....
Cheers!,
~G