Posts: 17
Joined: Jul 2010
Reputation:
0
Hi, I might have posted this question very (VERY) long time ago. But I still haven't been able to find the answers.
I have many multi-channel music tracks (DTS & AC3 formats). When I playback these tracks in Kodi (even from XBMC days), the playback is equivalent of playing the tracks in a high speed mode. It's almost like it's playing in 3x speed. The music and human voice sound extremely high pitched. Nearly like cartoon voices.
I'm currently using a Fire TV with Kodi (Jarvis). I had exactly the same problem with my Apple TV and XBMC (Nitro). My receiver does show it's receiving DTS (or AC3 as with the tracks) signals and it's decoding as well.
What is the problem here? Is this some kind of config issues? I have been experiencing exactly the same behavior for many years thru multiple hardware platform and thru many versions.
I have no idea how to even begin to debug this.
Posts: 10,726
Joined: Oct 2011
Reputation:
667
jjd-uk
Team-Kodi Member
Posts: 10,726
2017-02-12, 12:22
(This post was last modified: 2017-02-12, 12:23 by jjd-uk.)
Movie audio with DTS/AC3 is normally 48khz sample rate, music however is normally 44.1khz so when encoded into DTS/AC3 it's usual to keep the sample rate. So the problem could be the FireTV sending 44.1khz DTS/AC3 at 48khz or the receiving device decoding thinking it's 48khz, as not all devices understand DTS/AC3 at 44.1khz as it's more unusual.
Posts: 17
Joined: Jul 2010
Reputation:
0
I just checked the files (MediaInfo) and found the tracks are 44.1 and the receiver is showing as 48kHz. Now this makes sense but not sure how to fix this. Is this an issue with the receiver that it cannot receive DTS @ 44.1? This is a fairly capable receiver, I wouldn't call it high-end, but not an average hardware.
Is there any changes in Kodi to ensure it send the right encoding? My current hardware:
Fire TV
Onkyo NR809 (my previous 2 receivers had exactly the same issue too)
Posts: 17
Joined: Jul 2010
Reputation:
0
I just checked the log file. The Kodi log says:
Output Device : android
Sample Rate : 48000
Sample Format AE_FMT_S16NE
Channel Count : 2
Channel Layout : FL,FR
Frames : 1536
Frame Samples : 3072
Frame Size : 4
Looks like Kodi reads the stream as 48kHz. But when I load the file in MediaInfo, I see the sample rate as 44.1kHz. Now I don't know which one to believe :-)
Posts: 10,726
Joined: Oct 2011
Reputation:
667
jjd-uk
Team-Kodi Member
Posts: 10,726
Could you copy the log to pastebin or use the log uploader addon and post the link.
Posts: 17
Joined: Jul 2010
Reputation:
0
The same track (from my above post) shows up like this in MediaInfo
Format : Wave
File size : 68.4 MiB
Duration : 6 min 46 s
Overall bit rate mode : Constant
Overall bit rate : 1 411 kb/s
Audio
Format : DTS
Format/Info : Digital Theater Systems
Mode : 14
Format settings, Endianness : Little
Codec ID : 1
Duration : 6 min 46 s
Bit rate mode : Constant
Bit rate : 1 411.2 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 spf)
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 68.4 MiB (100%)
Posts: 17
Joined: Jul 2010
Reputation:
0
I'm having difficulty in dealing with the log file. I'm trying to figure out how to SSH into Fire TV to grab the log. Log Uploader is failing for whatever reason. Just before the DEBUG statements, I see one INFO line that says:
CAEStreamInfo::SyncDTS - dts stream detected (6 channels, 44100Hz, 14bit LE, period:1024)
Is there a simple way to access the log file thru computer? This is kind of perplexing how a log file access can be so complicated.
Posts: 17
Joined: Jul 2010
Reputation:
0
Did the log file help? I see that the file is 44.1kHz and 48kHz between the log entries. So this does seem like a Kodi issue. Should I change the default audio player from PAPlayer to DVDPlayer? Will that help?
Posts: 1,264
Joined: Mar 2011
Reputation:
80
Is there an explanation anywhere what the shitty and not-so-shitty builds are for, specifically? I'm still hoping for proper audio on my 2016 Philips Smart TV with Android 6.0.
Posts: 17
Joined: Jul 2010
Reputation:
0
So if I get v17, this problem will be fixed? Am I the only one who had this issue and coincidentally got a fix in the upcoming release? I could not find any discussion on this. I'm still kind of confused about this.