Kodi Community Forum
Testing audio engine ActiveAE - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Testing audio engine ActiveAE (/showthread.php?tid=170338)



RE: Testing audio engine ActiveAE - FernetMenta - 2013-09-07

Note that behavior has slightly changed. Now PCM always uses speaker layout, regardless of input stream. If you prefer the old behavior you need to set audiophile in advances settings. With this setting the engine tries to match the sink with the format of the input stream.


RE: Testing audio engine ActiveAE - jpsdr - 2013-09-07

(2013-09-07, 18:12)FernetMenta Wrote: If you prefer the old behavior you need to set audiophile in advances settings.

What that's Huh
Where is it explained how exactly do to this ? A search with "audiophile" in keyword on this thread provided no answer.

Edit : I've found something, but it's to set some kind of buffer. Is it this ? If yes, what value i should put ?


RE: Testing audio engine ActiveAE - stupid-boy - 2013-09-07

original wiki page, section 3.44 <audio>, FRODO FEATURE:
<!-- forces playback of original format, will not down/upmix next song to match current, not compatible with cross-fading 0 = false, 1 = true -->
<audiophile>0</audiophile>


RE: Testing audio engine ActiveAE - jpsdr - 2013-09-07

Thanks, and i've just noticed i've read the wrong explaination line, because i thought the explanation line was the under one, before i just realised it was the upper one... Confused
You were faster. But, i have to rebuild, because my build was made this morning (for me), and the fixes are just very new fresh, and were pulled after.


RE: Testing audio engine ActiveAE - FernetMenta - 2013-09-07

Note that using e.g. speaker layout of 7.1 while playing 5.1 does NOT mean that we upmix. The unused channels are muted. The old behavior showed issues when format changed midstream, i.e. during commercial breaks tv broadcasts switch from 5.1 to 2.0. We can't close/open a sink as quickly that it's not noticeable. Hence the default behavior is keeping the sink.


RE: Testing audio engine ActiveAE - jpsdr - 2013-09-07

I've made a new build, add audiophile option, and... still not working. My 5.1 AAC track is not send as a 5.1 track like it was before, but as a 7.1 track. You have the log file here.

Ok for the not upmix, but i want a 5.1 stream be sent in 5.1 to my receiver; so, for it, it's recognize it at 5.1, and, eventually, according the options which are selected, doing some audio processing to made its own upmix. This can't be done of course if it's send in 7.1, even if channels are silents. The same exagerate "wrong" exemple (because it's not the case), would be to send 2.0 in 5.1 with silent channels. This is wrong because receiver will not recognise DolbySurround 2.0 or anything. Again, it's not the case, it's to... show. It's less critical, but in the same way, it's "wrong" to send 5.1 in 7.1 even with channels silents.
If audiophile option purpose was to send 5.1 in 5.1... it's not working. Or, i've misused something...


RE: Testing audio engine ActiveAE - FernetMenta - 2013-09-07

A lot depends on the channel mapping of the sink. Yours:
Channel Layout: FL,FR,FC,LFE,BL,BR,SL,SR

Hence if your input stream has SL, SR, the sink has to be opened with 8 channels. BL, BL muted. Otherwise you won't get SL, SR.


RE: Testing audio engine ActiveAE - fritsch - 2013-09-07

@stupid-boy:

I took the time to undust my old AMD Fusion E350, hacked together an OpenELEC build and tested the resampler. On OE I can use high resampler just fine, even with viz enabled. I tested several 192 khz flacs to 48khz, no issues. (You can boot from USB stick: https://dl.dropboxusercontent.com/u/55728161/OpenELEC_Gotham-Generic.x86_64-devel-20130907211122-r15620.tar)

And to add, the three quality levels are basically:

Throw more away (use small window), throw less away (use medium window), don't throw anything away (use big window) - that is all.


RE: Testing audio engine ActiveAE - bibi - 2013-09-08

Here is a log for DTS issue : http://xbmclogs.com/show.php?id=56248


RE: Testing audio engine ActiveAE - fritsch - 2013-09-08

Until I am convinced, that those Alsa messages, do not harm, please retry with the version from yesterday. I made an OpenELEC Build (Generic): https://www.hwat.be/owncloud/public.php?service=files&t=00e26c0ea680182cea7b3d1cedac5048

It may also help to test with a local file (not one from the network).

And from your log, please verify the Audio settings (Audio Menu, press left and choose advanced, select your setting). I cannot see the switching to the Passthrough format data type.


RE: Testing audio engine ActiveAE - jpsdr - 2013-09-08

(2013-09-07, 20:31)FernetMenta Wrote: A lot depends on the channel mapping of the sink. Yours:
Channel Layout: FL,FR,FC,LFE,BL,BR,SL,SR

Hence if your input stream has SL, SR, the sink has to be opened with 8 channels. BL, BL muted. Otherwise you won't get SL, SR.

I think i understand what you mean, but, in that case, it shouldn't work either with previous version, or, with previous version, 5.1 track flac or aac where sent in 5.1 to my receiver, and it was 5.1 PCM.
So, either previous version was doing something wrong (i've posted a log with previous version, it can be checked), either there is realy something i don't understand why now it can't be done.

I don't know how audio is working, but is it possible that channel mapping is "number channel related" ?
If you ask to open a 2.0 channel, you'll have "FL,FR", if you ask a 2.1, you'll have "FL,FR,LFE", and not "FL,FR,FC", and if you ask a 5.1 you'll have "FL,FR,FC,LFE,SL,SR" and not "FL,FR,FC,LFE,BL,BR", and if you ask 8 channels, you'll have "FL,FR,FC,LFE,BL,BR,SL,SR". Otherwise, 5.1 PCM would never had work on my receiver, and it worked before (or seemed), and also with other multimedia devices (like PCH C-200), and sound was send to propers speakers (or seemed). So, i've a very very very hard time to believe you when you said it's not possible with my receiver. If it's not what you've said, and i've misunderstoud you, correct me.
If i was wrong, and i've been tricked by the "seemed", my appologies.

edited


RE: Testing audio engine ActiveAE - fritsch - 2013-09-08

Check like your OS handles it, really: http://msdn.microsoft.com/en-us/library/windows/hardware/gg463023.aspx


RE: Testing audio engine ActiveAE - FernetMenta - 2013-09-08

We ha indeed fixed a bug in WASAPI sink: https://github.com/xbmc/xbmc/commit/92e99137a141c1ce3a38a9f485660f2bd48271a6

It did not return the actual channel order to the engine. Currently we route the channels correctly. This means if the stream has SL/ SR in a 5.1 config AND you have SL/SR speakers, those get used.
In case SL/SR are missing in the config, those get mapped to BL/BR.

Means that correct channel mapping is ranked higher than number of channels. I would consider it wrong to map SL/SR to the backs (if available) just to keep 6 channels.


RE: Testing audio engine ActiveAE - jpsdr - 2013-09-08

Ok, it explains mapping, and new/old mask channels for 5.1 on 7.1 system. The new value KSAUDIO_SPEAKER_5POINT1 of 0x3F now map "FL,FR,FC,LFE,SL,SR". Good.
But, first, my question is still : Was the previous behavior doing something wrong or not ?

@FernetMenta : You've replied while i was reading/writing.
So, if you mean that there was a bug, and previous behavoir was wrong, perfectly fine for me, issue closed.

(2013-09-08, 09:25)FernetMenta Wrote: I would consider it wrong to map SL/SR to the backs (if available) just to keep 6 channels.
I agree, so, if that was the case before, issue closed for me.


RE: Testing audio engine ActiveAE - bibi - 2013-09-08

Ok here the new log, first video is DTS, second DTS-MA (which sound good) :

http://xbmclogs.com/show.php?id=56257

DTS passtrough unchecked, AVR indicates PCM 5.1 but sound is really distorded for DTS (not for DTS-HD)