Kodi Community Forum

Full Version: FLAC - Multichannel Audio
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

i have Multichannel Audio saved as FLAC (5.1)
I am using Openelec with Kodi v17.

However when playing it only gives back Stereo.

In the Audio Settings , i had it put to Optimized. When i change to Best Match , it switches to Multichannel PCM and it does the 5.1 However , than the mp3's for example are also displayed as Multichannel 5.1 . If i turn off Kodi , the music is played as Stereo again.
After switching than to Optimized, it shows than also as Multichannel PCM. It kind of "hangs" somehow.

Could this be ? Is there another setting i need to change ?

Thanks
You should post your Debug Log and please reread the description of what Optimized does. Even if it still displays 5.1 Multichannel for your Mp3 - you only have music on 2 speakers. Optimized is meant to not constantly change the output format in order to make gapless playback possible.

Best Match should not at all show this issue, cause it opens the output device new every time track / stream changes, therefore the Debug Log is needed.

So do the following:

Turn on debuglogging. Switch to Optimized (don't enable Stereo Upmix <- as this will clearly produce 5.1 from your 2.0), play the flac and the mp3, post the Debug Log
stop kodi
start kodi
Turn on debuglogging. Switch to Best Match (don't enable Stereo Upmix <- as this will clearly produce 5.1 from your 2.0), play the flac and the mp3, post the Debug Log
I did the logging now , but as always now it worked. As well with Optimized and with Best Match.

but here is the logfile : http://sprunge.us/JhNX
in here is the error now.

http://sprunge.us/ThMc

playing a 5.1 flac file on Best Match outputs stereo. When switching to Optimized it gives 5.1
A log without a movie scan running would make it readable quite well :-)

You try Adele flac files, right? I only see 6 channels openened in the logs.

We could argue about this one:
Quote:DEBUG: CSMBFile::Open - opened smb://DISKSTATION/Music/Alben/P/Dark Side of The Moon (Quadrophonic 4.0 - 96kHz)/04 - Pink Floyd - Time.flac
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR,FC,SL,SR
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR,FC,SL,SR,UNKNOWN1 (ALSA: FL FR FC RL RR UNKNOWN)

Nothing wrong in your log - all fine. There was never a 6 channel input and a stereo output opened.
Adele did switch to 5.1.
Anastacia went back to 2.0

then, Dark Side of the Moon. That's the one where it didn't switch.
Logfile tells otherwise:
Quote:14:58:50 T:139717266204736 DEBUG: CSMBFile::Open - opened smb://DISKSTATION/Music/Alben/P/Dark Side of The Moon (Quadrophonic 4.0 - 96kHz)/04 - Pink Floyd - Time.flac, fd=10001
14:58:50 T:139717266204736 DEBUG: unrecognized XipComment name: DESCRIPTION
14:58:50 T:139717266204736 DEBUG: unrecognized XipComment name: HDCD
14:58:50 T:139717266204736 DEBUG: unrecognized XipComment name: TOTALTRACKS
14:58:50 T:139717266204736 DEBUG: unrecognized XipComment name: VALID_BITS
14:58:50 T:139717266204736 DEBUG: unrecognized XipComment name: WAVEFORMATEXTENSIBLE_CHANNEL_MASK
14:58:50 T:139717266204736 DEBUG: CSMBFile::Close closing fd 10001
14:58:50 T:139717266204736 DEBUG: Seek - waiting for position 284220557.
14:58:50 T:139714707302144 INFO: CFileCache:Tonguerocess - Hit eof.
14:58:50 T:139716737353472 INFO: Previous line repeats 1 times.
14:58:50 T:139716737353472 DEBUG: RunQuery took 33 ms for 1013 items query: select * from episode_view WHERE ((episode_view.playCount IS NULL OR episode_view.playCount < 1))
14:58:50 T:139714707302144 INFO: CFileCache:Tonguerocess - Hit eof.
14:58:50 T:139717266204736 DEBUG: SeekTime - seek ended up on time 0
14:58:50 T:139716737353472 DEBUG: Previous line repeats 1 times.
14:58:50 T:139716737353472 DEBUG: GetSongsFullByWhere query = SELECT songview.*, songartistview.* FROM songview JOIN songartistview on songartistview.idsong = songview.idsong WHERE ((CAST(songview.iTimesPlayed as DECIMAL(5,1)) < 1))
14:58:50 T:139716737353472 DEBUG: GetSongsFullByWhere() - took 163 ms
14:58:50 T:139717266204736 INFO: AudioDecoder: File is queued
14:58:50 T:139717266204736 DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, Peak 0.000000
14:58:50 T:139717247256320 INFO: CActiveAESink::OpenSink - initialize sink
14:58:50 T:139716737353472 DEBUG: GetAlbumsByWhere query: SELECT albumview.*, albumartistview.* FROM albumview LEFT JOIN albumartistview on albumartistview.idalbum = albumview.idalbum WHERE albumview.strReleaseType = 'album'
14:58:51 T:139716737353472 DEBUG: GetAlbumsByWhere - query took 41 ms
14:58:51 T:139716737353472 DEBUG: RunQuery took 1 ms for 3 items query: select * from musicvideo_view WHERE ((musicvideo_view.playCount IS NULL OR musicvideo_view.playCount < 1))
14:58:51 T:139717247256320 DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=HDMI,DEV=0
14:58:51 T:139717247256320 INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=HDMI,DEV=0"
14:58:51 T:139717247256320 INFO: CAESinkALSA::Initialize - Opened device "hdmi:CARD=HDMI,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x0a"
14:58:51 T:139717247256320 INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
14:58:51 T:139717247256320 INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 680, bufferSize 2720
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 544, bufferSize 2720
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 29 ms
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 5 Output Channel Count: 6
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR,FC,SL,SR
14:58:51 T:139717247256320 DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR,FC,SL,SR,UNKNOWN1 (ALSA: FL FR FC RL RR UNKNOWN)
14:58:51 T:139717247256320 DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
14:58:51 T:139717247256320 DEBUG: Output Device : HDA Intel
14:58:51 T:139717247256320 DEBUG: Sample Rate : 96000
14:58:51 T:139717247256320 DEBUG: Sample Format : AE_FMT_S32NE
14:58:51 T:139717247256320 DEBUG: Channel Count : 6
14:58:51 T:139717247256320 DEBUG: Channel Layout: FL,FR,FC,SL,SR,UNKNOWN1
14:58:51 T:139717247256320 DEBUG: Frames : 544
14:58:51 T:139717247256320 DEBUG: Frame Size : 24