Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Incorrect audio stream selected
#1
I have an issue with several movies where the wrong audio stream is selected. In one case, the two streams (as reported by MediaInfo are):
  1. English, 48.0 kHz, 24 bits, 6 channels, DTS XLL (Stream extension) (DTS-HD Master Audio)
  2. English, 192 kb/s, 48.0 kHz, 2 channels, AC-3 (Dolby Surround) (Dolby Digital)
On two different installs of Kodi (19.4 on Windows and  LibreELEC 10.0.2/Kodi 19.4 on a RPi 3), Kodi incorrectly defaults to playing the second channel.

The biggest clue is that when viewing the audio streams in Kodi while playing, it shows the following two streams:
  1. English - DTS 0 channels - 0 channels (1/2)
  2. English - AC3 stereo - 2 channels (2/2)
So, it appears that Kodi somehow reads the number of audio channels incorrectly and thinks track 1 has 0 channels (and is therefore the inferior selection).

I have had seen this problem for quite some time (many months, not sure exactly - could be a year or two), but never reported it. I usually just remux the file without the 2-channel stream. If it is relevant, this is an M2TS file. Has anyone seen this or have any suggestions for a workaround or other fix?
Reply
#2
kodi.log
Reply
#3
MediaInfo output
Reply
#4
(2022-09-19, 23:36)dnwheeler Wrote: If it is relevant, this is an M2TS file.
Yes, I have experienced this exact problem with m2ts files. Some of the movies have two channels also - the high quality English stream, then a lower quality Italian stream. It defaults to the Italian stream for some reason.
I never did figure it out. Instead I converted to mkv files and marked the appropriate streams as "default" to fix the problem.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#5
Here's a log with debugging enabled: kodi.log (with debugging data)

The portion of interest:

2022-09-19 18:24:44.234 T:6924     INFO <general>: ffmpeg[0x21e48e06b70X]: Input #0, mpegts, from 'smb://tower/Movies/The Purge Collection/The Purge (2013)/The Purge.m2ts':
2022-09-19 18:24:44.234 T:6924     INFO <general>: ffmpeg[0x21e48e06b70X]:   Duration: 01:25:18.14, bitrate: N/A
2022-09-19 18:24:44.235 T:6924     INFO <general>: ffmpeg[0x21e48e06b70X]:   Program 1 
2022-09-19 18:24:44.235 T:6924     INFO <general>: ffmpeg[0x21e48e06b70X]:     Stream #0:0[0x1011]: Video: h264 (HDMV / 0x564D4448), none, 1920x1080, 90k tbn
2022-09-19 18:24:44.235 T:6924     INFO <general>: ffmpeg[0x21e48e06b70X]:     Stream #0:1[0x1100](eng): Audio: dts ([134][0][0][0] / 0x0086), 48000 Hz, 0 channels
2022-09-19 18:24:44.235 T:6924     INFO <general>: ffmpeg[0x21e48e06b70X]:     Stream #0:2[0x1101](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 192 kb/s

It looks like ffmpeg is reporting 0 channels for stream #0:1.
Reply
#6
@dnwheeler

Could you submit an Issue report here... https://github.com/xbmc/xbmc/issues I'll confirm the issue when I see it.
Also just confirm you audio selection track in settings... https://kodi.wiki/view/Settings/Player/Language#Audio

I'll also hunt around my library for one of the problem movies and add to the report. I encountered one a month or so ago, just need to remember which movie it was.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#7
Sorry to flood this thread with a bunch on individual messages, but as I learn more, I want to share what I've discovered. Looking at the debug log shows that when ffmpeg opens the file, it correctly identifies the streams and number of channels for each, but one is starts reading the file, there is a stream change, for which it reports 0 channels for the DTS stream. This may be a faulty encoding, I'm not sure - it could be a problem with DVDFab (used to rip the Blu-Ray and remove extraneous language streams). Or it could be a mastering problem where the file header info doesn't match the stream. I've seen a similar problem with DVDs, that have different aspect ratios specified in the header and within the video stream.
Reply
#8
(2022-09-20, 01:45)dnwheeler Wrote: it could be a problem with DVDFab
I use that also. Certainly a common connection.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
Incorrect audio stream selected0