Posts: 95
Joined: Jun 2010
Reputation:
1
2014-06-17, 22:08
(This post was last modified: 2014-06-17, 22:11 by AP0ll0UK.)
I just wondered what the correct settings should be for system running Ubuntu 14.04 x64 and Gotham with an nVidia GT 640 to TV via HDMI, and onboard audio to 5.1 surround sound system via SPDIF (optical cable) should be please?
I seem to be having problems with audio starting off ok and then getting out of sync after about 20 minutes. The 5.1 doesn't seem as good as it was with my old receiver and build of Ubuntu 12.04. Also, during big actions scenes the audio goes slightly muffled and the comes back ok. The receiver and speakers are ok as I've tested them at fairly loud levels with mp3 files out of all speakers and there's no issues except for movie playback within XBMC.
Posts: 286
Joined: May 2013
Reputation:
3
2014-06-17, 22:19
(This post was last modified: 2014-06-17, 22:20 by Claudio.Sjo.)
Long story, and probably fritsch will correct me, but I try to help you anyhow.
You need to do some basic stuffs:
Set configuration mode to advanced
Go to System Setting - Audio Output
Set Audio Output device as Analog (your analog card)
then set Number of Channels to 2.0 (note that this is not the number of speakers, but the bandwidth of SPDIF)
then set Enable Passthrough,
select as passthrough device SPDIF
set your receiver as capable of AC3, Dolby Digital and DTS
Then try again, it will probably work.
Posts: 286
Joined: May 2013
Reputation:
3
But does it finally work?
I forgot to mention pulseaudio, it's actually evil and needs to be removed as first step.
Then you'll find the configuration parameter as I wrote before.
The guys doing the real job are fantastic, but this story about the passthrough audio is getting more and more boring for them.
Myself had a lot of posting and what is frustrating is that in my opinion xbmc on Linux could do a lot itself, for instance it could tell
in the Audio configuration page "Warning, you are using pulseaudio, this is not recommended", then since the bandwidth of SPDIF
is well-known, it could disable this choice about number of channels when enabling passthrough.
XBMC is incredibly powerful, but has a lot of configuration possibility that can confuse people.
I also understand that for developer is frustrating to get always the same questions, I have myself a problem dealing
with slideshow, but since the HTPC is in the sofa, I cannot make debugging without causing a revolution in my family,
and in order to update to Lubuntu 14.04 and Gotham I had to wait in order to get a 4 hours timeslot.
Posts: 10,533
Joined: Oct 2011
Reputation:
640
jjd-uk
Team-Kodi Member
Posts: 10,533
2014-06-18, 21:43
(This post was last modified: 2014-06-18, 21:44 by jjd-uk.)
Claudio, are you sure you've currently got Gotham installed as everything you keep posting seems to relate to the old Frodo settings.
In Gotham there is:
No "Audio output" setting that can be set to Analog, it's been removed.
No "Number of channels" setting when SPDIF is selected as the "Audio output device" as it is hidden from the user and is internally fixed to 2.0 channels.
Posts: 286
Joined: May 2013
Reputation:
3
Hi,
I've just checked on my iMac.
It's Gohtham 13.1, System/Setting/System/Audio Output
first option : Audio Output - set to intel HDA Analog
Number of Channels - set to 2
In the HTPC, if I set Audio Output as SPDIF, independently from the number of channels, I get stereo audio.
If I set Audio Output to Analog, number of channels to 2.0 and passthrough to SPDIF, I get the proper audio.
The only think for which I can be guilty is because I'm still using the old .xbmc but all my configuration data are there, and I won't miss it.
Posts: 10,533
Joined: Oct 2011
Reputation:
640
jjd-uk
Team-Kodi Member
Posts: 10,533
2014-06-19, 00:08
(This post was last modified: 2014-06-19, 00:09 by jjd-uk.)
Ah ok, I think that explains it as if I remember right XBMC on OS-X for Mac's is slightly different and leaves the Number of channels setting exposed when SPDIF is select, it's definitely not that way on any if the other OS's including Linux.
Posts: 10,533
Joined: Oct 2011
Reputation:
640
jjd-uk
Team-Kodi Member
Posts: 10,533
All you needed to do was suspend PulseAudio by starting XBMC with the ALSA environment variable, details are in the wiki page linked above.
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
There is also absolutely no need to compile anything from source, Ubuntu ships that a52 workaround in: libasound2-plugins-extra and a simple sudo apt-get install libasound2-plugins-extra will install those. But again all this is not needed by either enabling the passthrough options for pulseaudio (see the wiki) and configuring xbmc accordingly. Or by starting xbmc with AE_SINK=ALSA and also configuring xbmc correctly after doing so ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 286
Joined: May 2013
Reputation:
3
2014-06-19, 12:52
(This post was last modified: 2014-06-19, 12:53 by Claudio.Sjo.)
I add another 10cents, as I had the chance to change my configuration and to try again.
I removed pulseaudio immediately after installing Lubuntu 14.04 anyhow.
My current setting is
Audio Output - SPDIF
(there are no number of channels to set anymore, they only exist if you select analog, thanks)
Enable Passthrough
Everythink works great.
This morning even the pictures are shown properly, thus I cannot add any debug log :-(