Incorrect audio stream selected - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: Incorrect audio stream selected (/showthread.php?tid=369725) |
Incorrect audio stream selected - dnwheeler - 2022-09-19 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):
The biggest clue is that when viewing the audio streams in Kodi while playing, it shows the following two streams:
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? RE: Incorrect audio stream selected - dnwheeler - 2022-09-19 kodi.log RE: Incorrect audio stream selected - dnwheeler - 2022-09-19 MediaInfo output RE: Incorrect audio stream selected - Karellen - 2022-09-19 (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. RE: Incorrect audio stream selected - dnwheeler - 2022-09-20 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. RE: Incorrect audio stream selected - Karellen - 2022-09-20 @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. RE: Incorrect audio stream selected - dnwheeler - 2022-09-20 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. RE: Incorrect audio stream selected - Karellen - 2022-09-20 (2022-09-20, 01:45)dnwheeler Wrote: it could be a problem with DVDFabI use that also. Certainly a common connection. |