v18 Audio related issues
#1
hello,

Seems to have some issues with Kodi 18

First of all, Kodi does not seem to be able to display the audio type while playing:

Image

The audio type is displayed as "unknown" here while working on other part of kodi:

Image
Image

The other issue is about audio bit depth
It seems kodi does not really respect bit depth

Using the same movie with audio 16 bit / 48000Hz, there is 2 strange things

1- Kodi set the audio decoder to 32 bits, confirmed by kodi:

Image

2- Kodi set the audio output to 24 bits, confirmed by log:

Code:
18:30:18.460 T:5884   DEBUG:   Sample Format : AE_FMT_S24NE3

There is no point in setting decoder to 32 bits and output to 24 bits to play 16 bits audio

Here is the full file information:

Code:
Général
Identifiant unique                       : 228498501118455807110314476444160304588 (0xABE735E6F174F42C9AAA402AF6BF25CC)
Nom complet                              : D:\Films\Kung Fu Panda (2008)\Kung Fu Panda (2008).mkv
Format                                   : Matroska
Version du format                        : Version 2
Taille du fichier                        : 12,6 Gio
Durée                                    : 1 h 32 min
Débit global moyen                       : 19,6 Mb/s
Nom du film                              : KUNG_FU_PANDA.Title20
Date d'encodage                          : UTC 2016-07-16 04:03:13
Application utilisée                     : DVDFab 9.3.0.7
Bibliothèque utilisée                    : libebml v0.7.8 + libmatroska v0.8.1

Vidéo
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Profil du format                         : [email protected]
Paramètres du format                     : CABAC / 2 Ref Frames
Paramètres du format, CABAC              : Oui
Paramètres du format, RefFrames          : 2 images
Paramètres du format, GOP                : M=3, N=24
Identifiant du codec                     : V_MPEG4/ISO/AVC
Durée                                    : 1 h 32 min
Débit                                    : 18,9 Mb/s
Largeur                                  : 1 920 pixels
Hauteur                                  : 820 pixels
Format à l'écran                         : 2,35:1
Type d'images/s                          : Constant
Images par seconde                       : 23,976 (24000/1001) Im/s
Espace de couleurs                       : YUV
Sous-échantillonnage de la chrominance   : 4:2:0
Profondeur des couleurs                  : 8 bits
Type de balayage                         : Progressif
Bits/(Pixel*Image)                       : 0.500
Taille du flux                           : 12,0 Gio (95%)
Bibliothèque utilisée                    : x264 core 142
Paramètres d'encodage                    : cabac=1 / ref=1 / deblock=1:-1:-1 / analyse=0x3:0 / me=hex / subme=5 / psy=0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=2 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=0 / open_gop=0 / weightp=0 / keyint=24 / keyint_min=13 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=18874 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Default                                  : Oui
Forced                                   : Non
Gamme de couleurs                        : Limited
Coordonnées de chromaticité              : BT.709
Caractéristiques du transfert            : BT.709
Coefficients de la matrice               : BT.709

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Paramètres du format, Endianness         : Big
Identifiant du codec                     : A_AC3
Durée                                    : 1 h 32 min
Type de débit                            : Constant
Débit                                    : 640 kb/s
Canaux                                   : 6 canaux
Position des cannaux                     : Front: L C R, Side: L R, LFE
Echantillonnage                          : 48,0 kHz
Images par seconde                       : 31,250 Im/s (1536 SPF)
Profondeur des couleurs                  : 16 bits
Mode de compression                      : Avec perte
Taille du flux                           : 422 Mio (3%)
Langue                                   : Français
ServiceKind/String                       : Complete Main
Default                                  : Oui
Forced                                   : Non

Texte #1
ID                                       : 3
Format                                   : PGS
Identifiant du codec                     : S_HDMV/PGS
Identifiant du codec/Info                : Picture based subtitle format used on BDs/HD-DVDs
Langue                                   : Français
Default                                  : Non
Forced                                   : Non

Texte #2
ID                                       : 4
Format                                   : PGS
Identifiant du codec                     : S_HDMV/PGS
Identifiant du codec/Info                : Picture based subtitle format used on BDs/HD-DVDs
Langue                                   : Français
Default                                  : Non
Forced                                   : Non

Menu
00:00:00.000                             : en:(01)00:00:00:000
00:02:31.401                             : en:(02)00:02:31:401
00:05:17.066                             : en:(03)00:05:17:066
00:07:58.895                             : en:(04)00:07:58:895
00:10:41.932                             : en:(05)00:10:41:932
00:16:39.331                             : en:(06)00:16:39:331
00:19:28.500                             : en:(07)00:19:28:500
00:22:41.651                             : en:(08)00:22:41:651
00:26:19.869                             : en:(09)00:26:19:869
00:31:13.872                             : en:(10)00:31:13:872
00:35:26.124                             : en:(11)00:35:26:124
00:38:35.604                             : en:(12)00:38:35:604
00:42:34.760                             : en:(13)00:42:34:760
00:45:45.909                             : en:(14)00:45:45:909
00:51:29.711                             : en:(15)00:51:29:711
00:56:29.052                             : en:(16)00:56:29:052
00:58:48.358                             : en:(17)00:58:48:358
01:02:06.222                             : en:(18)01:02:06:222
01:06:52.883                             : en:(19)01:06:52:883
01:09:52.938                             : en:(20)01:09:52:938
01:14:05.482                             : en:(21)01:14:05:482
01:20:04.466                             : en:(22)01:20:04:466
01:23:11.987                             : en:(23)01:23:11:987
01:32:09.232                             : en:(24)01:32:09:232

And here is the full log while playing this movie: https://pastebin.com/D9g1q8wL

Hope someone can help on this and feel free to ask if you need more information
Moanbag is in da place!
Reply
#2
(2017-09-12, 19:09)Gracus Wrote: Using the same movie with audio 16 bit / 48000Hz, there is 2 strange things

1- Kodi set the audio decoder to 32 bits, confirmed by kodi:

Image

2- Kodi set the audio output to 24 bits, confirmed by log:

Code:
18:30:18.460 T:5884   DEBUG:   Sample Format : AE_FMT_S24NE3

There is no point in setting decoder to 32 bits and output to 24 bits to play 16 bits audio

I think that is completely normal, Kodi always converts to 32 bit float internally so we can perform any processing losslessly, and is then always output in the best format your audio card supports, even if the audio being played can't take full advantage by being true 24 bit in your case.
Reply
#3
(2017-09-12, 19:28)jjd-uk Wrote:
(2017-09-12, 19:09)Gracus Wrote: Using the same movie with audio 16 bit / 48000Hz, there is 2 strange things

1- Kodi set the audio decoder to 32 bits, confirmed by kodi:

Image

2- Kodi set the audio output to 24 bits, confirmed by log:

Code:
18:30:18.460 T:5884   DEBUG:   Sample Format : AE_FMT_S24NE3

There is no point in setting decoder to 32 bits and output to 24 bits to play 16 bits audio

I think that is completely normal, Kodi always converts to 32 bit float internally so we can perform any processing losslessly, and is then always output in the best format your audio card supports, even if the audio being played can't take full advantage by being true 24 bit in your case.

Ok but hard to understand when kodi team members claim that kodi is capable of bit perfect audio ( something that will probably never happen in these conditions)

Btw, all audio processing options are disabled in kodi
In this case, kodi should just decode audio while respecting bit depth because there is then no point of working on audio at higher bit depth
Moanbag is in da place!
Reply
#4
Maybe just add a new "bit perfect" preset to the already existing ones (fixed, optimized, best match)
Moanbag is in da place!
Reply
#5
(2017-09-12, 19:28)jjd-uk Wrote: Kodi always converts to 32 bit float internally

Does not seem to be true...

Image
Moanbag is in da place!
Reply

Logout Mark Read Team Forum Stats Members Help
Audio related issues0