2017-09-16, 14:45
Hello.
I understand that RPi 2 cannot pass-through DTS-HD and True-HD/Atmos audio stream and read about it a lot.
Meanwhile on this forum kodi team advises to disable pass-through, setup 7.1 ch output and enjoy 8ch HD audio output.
But... it doesn't work like that on my RPi 2B running Kodi 17 with OSMC.
What we have.
This demo file
https://www.demolandia.net/downloads.php?id=6357114
which is
This is how Kodi sees file
This is how Kodi sends audio to my AVR
Why Kodi downsamples audio ?
What can I do to make same sample rate output ?
Full log is here
http://paste.ubuntu.com/25547476/
I understand that RPi 2 cannot pass-through DTS-HD and True-HD/Atmos audio stream and read about it a lot.
Meanwhile on this forum kodi team advises to disable pass-through, setup 7.1 ch output and enjoy 8ch HD audio output.
But... it doesn't work like that on my RPi 2B running Kodi 17 with OSMC.
What we have.
This demo file
https://www.demolandia.net/downloads.php?id=6357114
which is
Code:
15:15:47.839 T:1699476464 INFO: ffmpeg[654BF3F0]: Stream #0:0(eng), 4, 1/1000: Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
15:15:47.840 T:1699476464 INFO: ffmpeg[654BF3F0]: Stream #0:1(eng), 16, 1/1000: Audio: dts (DTS-HD MA), 96000 Hz, 7.1, s32p (24 bit) (default)
This is how Kodi sees file
Code:
15:04:08.049 T:1263530992 DEBUG: COMXAudio::Initialize Input bps 32 samplerate 96000 channels 8 buffer size 4608000 bytes per second 3072000
15:04:08.049 T:1263530992 DEBUG: pcm->direction : input
15:04:08.049 T:1263530992 DEBUG: pcm->nPortIndex : 0
15:04:08.049 T:1263530992 DEBUG: pcm->eNumData : 0
15:04:08.050 T:1263530992 DEBUG: pcm->eEndian : 1
15:04:08.050 T:1263530992 DEBUG: pcm->bInterleaved : 1
15:04:08.050 T:1263530992 DEBUG: pcm->nBitPerSample : 32
15:04:08.051 T:1263530992 DEBUG: pcm->ePCMMode : 0
15:04:08.051 T:1263530992 DEBUG: pcm->nChannels : 8
15:04:08.051 T:1263530992 DEBUG: pcm->nSamplingRate : 96000
15:04:08.051 T:1263530992 DEBUG: COMXAudio::Initialize device passthrough 0
15:04:08.051 T:1263530992 INFO: Audio codec channels 8 samplerate 96000 bitspersample 32
This is how Kodi sends audio to my AVR
Code:
15:04:08.052 T:1263530992 DEBUG: COMXAudio::Decode ADec : setStartTime 0.000000
15:04:08.056 T:1958871040 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.image_decode handle 0x4f65538
15:04:08.059 T:1958871040 DEBUG: COMXCoreComponent::Deinitialize : OMX.broadcom.egl_render handle 0x4c6bdb8
15:04:08.059 T:1263530992 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_mixer input port 232 output port 231 m_handle 0x6e2391d8
15:04:08.060 T:1958871040 DEBUG: DecodeJpegToTexture: decoded special://skin/backgrounds/media-overlay.jpg 1280x720
15:04:08.062 T:1263530992 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x6e22ddc0
15:04:08.062 T:1263530992 INFO: COMXAudio::ApplyVolume - Volume=1.00 (* 1.00 * 1.00)
15:04:08.063 T:1958863856 DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
15:04:08.063 T:1263530992 DEBUG: COMXAudio::PortSettingsChanged - Output bps 16 samplerate 48000 channels 8 buffer size 4608000 bytes per second 1536000
15:04:08.063 T:1263530992 DEBUG: pcm->direction : output
15:04:08.063 T:1263530992 DEBUG: pcm->nPortIndex : 231
15:04:08.063 T:1263530992 DEBUG: pcm->eNumData : 0
15:04:08.063 T:1958863856 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
15:04:08.064 T:1263530992 DEBUG: pcm->eEndian : 1
15:04:08.064 T:1263530992 DEBUG: pcm->bInterleaved : 1
15:04:08.064 T:1263530992 DEBUG: pcm->nBitPerSample : 16
15:04:08.064 T:1263530992 DEBUG: pcm->ePCMMode : 0
15:04:08.064 T:1263530992 DEBUG: pcm->nChannels : 8
15:04:08.064 T:1263530992 DEBUG: pcm->nSamplingRate : 48000
15:04:08.066 T:1263530992 DEBUG: COMXAudio::PortSettingsChanged - bits:32 mode:0 channels:8 srate:96000 nopassthrough
Why Kodi downsamples audio ?
What can I do to make same sample rate output ?
Full log is here
http://paste.ubuntu.com/25547476/