Problem with 5.1 channel mapping, help configuring asound.conf - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111)
+---- Forum: Linux and Live support (/forumdisplay.php?fid=52)
+---- Thread: Problem with 5.1 channel mapping, help configuring asound.conf (/showthread.php?tid=90910)
Problem with 5.1 channel mapping, help configuring asound.conf - lowteckh - 2011-01-18 07:00
I'm in a curiously similar situation as the OP of this other thread. When I play files with FLAC audio, the channel mapping is all over the place: speech comes from the left rear surround and surround sound seems to be coming from the front speakers (right rear surround has no sound). AFAIK it only happens with these files with FLAC in them; the rest of my files (that are not FLAC) have no problem with channel mapping.
I'm using XBMCFreak's maverickv3 build on a Foxconn 330i, connected to a Sony 5.1 HTIB system via HDMI.
There is no asound.conf files in /etc/, but there is one in /usr/share/xbmc/system:
- Balthazaar - 2011-01-18 07:51
You will need to add an /etc/asound.conf
and reboot or
Then set youir XBMC audio output to 'hdmi-remap'
Now, are your FLAC files straight up multichannel FLAC audio or in audio from an MKV container etc?
If straight up audio - test with both PAPlayer and DVDPlayer. You will get correct channel mapping (IIRC) with DVDplayer. Let me know.
If they are audio files then you will need to either:
a) use DVDPlayer to play them or
b) re-map them and use PAPlayer or a 3rd party audio player.
You can use 'route' in your asound.conf to map them correctly or re-map the FLAC files. If you use the 'route' method, please keep in mind other formats that are decoded and sent as LPCM by XBMC may map incorrectly.
- lowteckh - 2011-01-18 09:32
The audio is contained inside a MKV file.
Here's the "MediaInfo" from MPC-HC when I check its properties through Windows (issue is @ XBMC Live of course)
I made a new asound.conf in /etc/ but I am unable to select it via XBMC->Settings->System->Audio Output. Only options are still HDMI, Optical/Coax, Analog.
- Balthazaar - 2011-01-18 13:27
OK, you need to set 'HDMI' for the Audio Output setting (top of screen) and for 'Audio Device' (bottom of screen), you will need to select 'custom' audio output and manually enter 'hdmi-remap'.
- lowteckh - 2011-01-23 06:49
An overdue thanks. Audio has been working well for all the different files I've played thus far.
RE: Problem with 5.1 channel mapping, help configuring asound.conf - HunterZ - 2012-03-30 19:41
Thanks, this fixed Eden's HDMI mode for me so that AAC 5.1 audio plays as 5.1 LPCM on my A/V receiver. I previously had to switch to Optical/Coax mode over HDMI to transcode to 5.1 Dolby Digital AC3, but this is better.
RE: Problem with 5.1 channel mapping, help configuring asound.conf - HunterZ - 2013-02-01 05:57
I just upgraded to XBMCbuntu 12.0 Frodo and am experiencing this issue again. Is this still the best/only way to fix it? I'm disappointed it didn't get fixed with the introduction of AudioEngine, especially since AE was used as an excuse to close a bug report I had previously opened on the issue.
Edit: Might give this a shot: http://wiki.xbmc.org/index.php?title=HOW-TO:Remap_HDMI_audio_on_Gen_1_ION_-_Linux#For_5.1:_Frodo
Edit 2: Yep, the wiki fix worked for me.
RE: Problem with 5.1 channel mapping, help configuring asound.conf - HunterZ - 2013-02-02 07:26
I think this warrants an additional post. After a ton of effort, I've built an ~/.asoundrc that gets me the following:
Here it is:
In XBMC's audio output settings, set:
You should be able to log out (exit) from XBMC and then log back in to make the .asoundrc and XBMC changes take effect, but rebooting never hurts.
The main thing that drove me to do this was that I wanted to be able to play games via the Steam Linux client. It seems that Steam (at least in Big Picture mode) holds onto an ALSA stream, so games launched from it aren't able to have sound unless everything is going through a dmix plugin.
Edit: Made some fixes, as LPCM/AAC 5.1 passthrough was not working after all. Turns out I made a bad assumption, as XBMC "Passthrough output device" is not used at all for Audio output = HDMI. Also, 'type plug' should apparently be used by the pcm.!default setting in .asoundrc to accommodate both 2- and 6-channel usage of shared mode (wasn't able to do 6-channel speaker-test without it).
Edit 2: Note that on Gen 1 ION, AAC passthrough doesn't seem to be supported. XBMC implicitly converts to LPCM when possible, or AC3 otherwise. If you have a 5.1 LPCM capable receiver, this is OK because it means that it's just decoding the AAC on the XBMC side and passing the result through as uncompressed 5.1 LPCM.
Edit 3: As a follow-up to this, I should note that 5.1 LPCM seems to be working but is not necessarily using perfect passthrough. Normally, it is not possible to adjust the volume of passthrough streams in XBMC itself, but I seem to be able to do so for 5.1 LPCM streams. Hopefully XBMC is not altering the stream when the volume is set to full.
RE: Problem with 5.1 channel mapping, help configuring asound.conf - Onnib - 2013-02-11 00:14
After a lot of searching for solutions and trying them to find them not working for me, I found this via the Frodo FAQ and the How To remap HDMI audio on gen 1 ION . Unfortunately this does not work for me either and made me register so I could ask for help.
I have an Asrock ION 330 BD.
And a receiver that supports all multichannel audio XBMC can offer.
With XBMC 11.0 I had a mapping problem (center speaker from left rear) with AAC files which was easily solved by setting Audio Output to optical/coax and Audio Output Device to HDMI.
With XBMC 12.0 I have a problem with AC3 files. No center speaker (mostly speech dialog) at all.
The optical/coax trick doesn't seem to work
The .asoundrc files that are mentioned in the remap wiki don't seem to work either.
What else can I try?
RE: Problem with 5.1 channel mapping, help configuring asound.conf - HunterZ - 2013-02-11 00:29
I don't think the optical/coax trick is applicable in XBMC 12 due to the new AudioEngine.