Bug Kodi not disabling subtitles in MKV
#1
Information 
I have an MKV video file that displays subtitles when I have disabled the subtitles in Kodi (while playing the video in the Audio Settings).
I expect the subtitles to not be displayed.

Using MediaInfo all the audio/text tracks are not "forced". (I still expect when I disable subtitles in Kodi, it will override the MKV "forced" setting.)

But here's what I found:

1) Kodi defaulted to Text Track #4, the first English subtitle. This was not the "default" reported by MediaInfo, but the MediaInfo default is in Dutch. When using the #3 subtitle (which Kodi defaulted to), Kodi would still display the subtitle. This is not expected, since I disabled subtitles in Kodi.

2) Playing around with the playback, I switched subtitles to a different track (from #4 to #6). Subtitles disappeared, and Kodi did what I expect.

I don't think this is good Kodi behavior, and a possible bug. Kodi should not display subtitles when I told it not to. I don't know why Kodi ignored my settings for subtitle #4, but complied with subtitle #6.


Audio #1
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 1h 43mn
Bit rate mode : Constant
Bit rate : 960 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 713 MiB (15%)
Title : DTS
Language : English
Default : Yes
Forced : No

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 1h 43mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 285 MiB (6%)
Title : AC3
Language : English
Default : No
Forced : No

Text #1
ID : 4
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : The same subtitle format used on BDs/HD-DVDs
Title : HQ Geel
Language : Dutch
Default : Yes
Forced : No

Text #2
ID : 5
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : The same subtitle format used on BDs/HD-DVDs
Title : HQ Wit
Language : Dutch
Default : No
Forced : No

Text #3
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : ormal SRT
Language : Dutch
Default : No
Forced : No

Text #4
ID : 7
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : The same subtitle format used on BDs/HD-DVDs
Title : HQ Yellow
Language : English
Default : No
Forced : No

Text #5
ID : 8
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : The same subtitle format used on BDs/HD-DVDs
Title : HQ White
Language : English
Default : No
Forced : No

Text #6
ID : 9
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : Normal SRT
Language : English
Default : No
Forced : No
Reply
#2
I have found something similar. For some movies, the subtitles are re-enabled after being disabled. I can't find a pattern other than it usually follows a period of no dialogue.

Also it is not possible to disable;e subtitles by default meaning they have to be disabled for each movie?
Reply
#3
You can disable them by default, as noted on subtitles (wiki).

I haven't had any issues disabling subtitles on my files. *shrug*
Reply
#4
Resurrection.

I have just upgraded from Gotham to helix, and can confirm, most of my regular mkvs which worked as intended in xbmc Gotham, not don't work in helix.

Enabled or disabled, the subtitles will be displayed. With the ability to cycle through languages greyed out.

with xbmc gotham, i had subtitles on as default and turned off as neessessary, as I mainly watch anime.

how came across issue.

working subtitles media info;

Code:
General
Unique ID                                : 246275891862261434416355545590587830040 (0xB94702EFD1349DEBB73F12FD3731AF18)
Complete name                            : C:\Users\HTPC\Desktop\Shark Tale 2004 [720p].mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 3.73 GiB
Duration                                 : 1h 29mn
Overall bit rate                         : 5 946 Kbps
Encoded date                             : UTC 2009-09-22 03:26:22
Writing application                      : mkvmerge v2.7.0 ('Do It Again') built on Apr 15 2009 00:27:10
Writing library                          : libebml v0.7.7 + libmatroska v0.8.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 6 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 29mn
Bit rate                                 : 5 513 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.249
Stream size                              : 3.38 GiB (90%)
Title                                    : Shark.Tale.2004.HDre.x264.dd51-SiLU
Writing library                          : x264 core 54 svn-614M
Encoding settings                        : cabac=1 / ref=3 / deblock=1:-2:-1 / analyse=0x3:0x133 / me=umh / subme=6 / brdo=0 / mixed_ref=0 / me_range=12 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=2 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=0 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=5513 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 1h 29mn
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 288 MiB (8%)
Title                                    : AC3 5.1 448Kbps
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : Yes
Forced                                   : No

not working subtites media info;
Code:
General
Unique ID                                : 0 (0x0)
Complete name                            : C:\Users\HTPC\Desktop\Assassination Classroom [720p].s01e09.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 417 MiB
Duration                                 : 23mn 1s
Overall bit rate                         : 2 533 Kbps
Encoded date                             : UTC 2010-02-22 21:41:29
Writing application                      : no_variable_data
Writing library                          : no_variable_data

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 23mn 1s
Bit rate mode                            : Constant
Nominal bit rate                         : 2 500 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.113
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Color range                              : Limited
DURATION                                 : 00:23:01.631000000
NUMBER_OF_FRAMES                         : 33126
NUMBER_OF_BYTES                          : 415404704
_STATISTICS_WRITING_APP                  : no_variable_data
_STATISTICS_WRITING_DATE_UTC             : 1970-01-01 00:00:00
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 23mn 1s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Language                                 : English
Default                                  : Yes
Forced                                   : No
DURATION                                 : 00:23:01.657000000
NUMBER_OF_FRAMES                         : 59503
NUMBER_OF_BYTES                          : 21703262
_STATISTICS_WRITING_APP                  : no_variable_data
_STATISTICS_WRITING_DATE_UTC             : 1970-01-01 00:00:00
_STATISTICS_TAGS                         : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES[/code]
Reply
#5
Are you sure your second example has soft subs and not subs burned into the video? The media info doesn't show a sub track, and I'm guessing that's a "Horrible" release. I can confirm that Assassination Classroom has burned subs directly in the video for that group.
Reply
#6
@snakyjake please post you're sub settings, especially the preferred language, the exact steps to reproduce and a short sample of that file. You can cut out a minute or so with mergemkv for example.
Reply
#7
Has this been resolved? I have read multiple threads in which the general answer is to either go to the subtitle menu, or the audio menu, and turn off the subtitles. Or use the "T" to toggle the subtitles off. I can confirm that running Kodi 15.2 on Windows 7 Professional, I have several 3D MKV files that the subtitles cannot be turned off. I have removed all separate subtitle files. In one example file, MKVmerge (MKVToolNix) shows 2 subtitles, and neither have the "Forced Flag" set to true. I have tried every possible suggestion of how to disable them, with no success. The only way I can get Kodi to play them without displaying the subtitle is to use MKVmerge and re-encode with the two subtitles unchecked.

I have only had this issue with 3D MKV files, but that may just be because I don't have any non-3D MKVs to test against.

I have no issue turning off the subtitles on the same files in VLC Media player.

Thanks!
Reply
#8
I suspect everyone in this thread has a different situation that simply has the same description. So in that sense, there's nothing specific to "resolve". Rather, we need to figure out why it's not working in your situation, and the first step for that is the debug log (wiki).
Reply
#9
Thanks Ned- Following the instructions, I uploaded my log file. I performed the following steps:

1) Started KODI
2) Selected movie that exhibits the problem, and started playing it from the beginning
3) Jumped forward twice to get to a point where people were speaking so I could see the subtitles
4) Subtitles were already disabled (from the subtitle icon next to the 3D icon). I selected the "ENABLE" radio button, and exited from the menu. I then de-selected the "ENABLE" radio button.
5) I did the same in the AUDIO section- Enabled subtitled, then disabled them.

In the AUDIO section, there are 2 subtitle tracks, which match the tracks found in MKVmerge- neither are marked as forced.
Reply
#10
Did the log uploader send you a URL for the log file?
Reply
#11
Sorry: http://xbmclogs.com/pubzjid46
Reply
#12
There's some very strange errors in that log about various playback settings not being found. I wonder if any of the OSD settings are working. Something does seem to be very off, but it's way above my head. One of the devs will need to look at your log, I think.

A guess would be maybe some settings files are corrupt. Maybe try a fresh Kodi setup by logging into another user on Windows, or using the portable switch so that Kodi ignores your main userdata files, and see if the subtitles toggle works then.
Reply
#13
OSD works fine (at least the controls and menu items, etc). I have now verified this happens on 3 different installations (on 3 different machines). It is only on MKV files. From reading the forum, I am pretty sure this has been seen before by other users with MVK files and at one time may have been submitted as a bug. But in general when someone has opened a thread about it, they have been given instructions about how to disable subtitles (which menus, buttons, etc), the difference between kinds of subtitles (forced, etc). In my situation with multiple MKVs (3D), there is just no way to keep the subtitles from displaying. I can switch between the two, but not turn them off.

Fortunately it is pretty easy to remove the subtitles completely using MKVmerge.

Thanks for giving it a look.
Reply
#14
Sorry for reviving an old topic, but it seems like this bug has resurfaced. I have just tested it on a clean Kodi (Windows) install and it is happening in my CoreElec installation as well.
I have multiple MKVs with subtitles that I cannot turn off, even though "enable subtitles" is toggled to off. Those are NOT hardcoded subtitles, as the same files work fine on VLC, the subtitles can be disabled there without issue.

I have tried everything; toggling subtitles off, changing the preferred subtitle language to "None" in the settings.. It is pretty clearly a Kodi bug.

Here's another media info of one of my videos that isn't working:
Code:

Audio #1
ID                                       : 2
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : A_EAC3
Duration                                 : 52 min 45 s
Bit rate mode                            : Constant
Bit rate                                 : 1 024 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 386 MiB (22%)
Title                                    : EAC3 5.1
Language                                 : German
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : E-AC-3
Format/Info                              : Enhanced AC-3
Commercial name                          : Dolby Digital Plus
Codec ID                                 : A_EAC3
Duration                                 : 52 min 45 s
Bit rate mode                            : Constant
Bit rate                                 : 1 024 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 386 MiB (22%)
Title                                    : EAC3 5.1
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No

Text
ID                                       : 4
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 49 min 16 s
Bit rate                                 : 40.5 kb/s
Count of elements                        : 1280
Stream size                              : 14.3 MiB (1%)
Title                                    : Full (PGS)
Language                                 : German
Default                                  : No
Forced                                   : No
Reply
#15
Upload a log with "debug-level" logging enabled might help.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi not disabling subtitles in MKV1