Kodi 17.6-18 autosubs service not working
#1
Autosubs service is not working for Kodi 17.6 or 18, it does not stop video playing  in order to select movie subtititle, working fine with kodi 16.1 or ftmc fork
Reply
#2
To receive meaningful assistance you will need to provide a full debug log.

The instructions are here... debug log (wiki)

If you are using the Basic Method, then ensure the following is applied...
1.Enable debugging in Settings>System Settings>Logging,
2.Restart Kodi
3.Replicate the problem.

If you are using the Advanced Method ensure you have correctly created and applied the advancedsettings.xml file.

In both instances, you should see the word DEBUG throughout the log.

Note: Full logs only. No partial or redacted logs
Do NOT post your logs directly into the forum. Always use a paste site like pastebin.com. Post the link to your pasted log in the forum
Reply
#3
(2018-02-06, 16:45)guil70 Wrote: Autosubs service is not working for Kodi 17.6 or 18, it does not stop video playing  in order to select movie subtititle, working fine with kodi 16.1 or ftmc fork
I can confirm this. It's a relatively old issue. There some scattered postings about this, but it's yet to be resolved.

My findings are that there's nothing wrong with the Autosubs service because in recognizes the presence of an embedded subtitle, but Kodi does not. That's why Autosubs isn't triggered.

It's my understanding there have been some code changes in the way Kodi recognizes subtitles in relation to language/audio stream. Most content these days already have embedded (mostly English) subtitles. You can check this with MediaInfo.exe. Kodi should display this, even with the default settings. It did, as you say, with older versions of Kodi.

As a workaround you'll need to change the Player-> Preferred subtitle language from 'Original stream's language' to 'English'. Now the (english) subtitle is shown immediately. If an embedded subtitle is NOT present and there is also no external (srt), the Autosubs service will correctly kick in.
Reply
#4
Thank, will try that, I tested again with last 2018/02/10 arm release and autosubs service still no working, if English or Spanish subtitle  is embedded then just by enabling the subtitle option in player and it works, but Autosubs service does not stop the video playing in order to select an external srt subtitle, anyway here is the log,

https://paste.ubuntu.com/=JPYcsh2FZ8/
Reply
#5
Nope, autosubs will never be triggerd if there's an subtitle present, embedded or external.

However you CAN map a key to do it manually with the touch of a button on your remote:
Code:
<key id="xxxxxx">activatewindow(subtitlesearch)</key>
Where xxxxx is the id of your remote button.

Of course it is not the same as the automated autosub service, but it's the next best thing
Reply
#6
(2018-02-10, 22:36)DragonFly Wrote: Nope, autosubs will never be triggerd if there's an subtitle present, embedded or external.

However you CAN map a key to do it manually with the touch of a button on your remote:
Code:
<key id="xxxxxx">activatewindow(subtitlesearch)</key>
Where xxxxx is the id of your remote button.

Of course it is not the same as the automated autosub service, but it's the next best thing
It is not working whatever being a subtitle present or not, have to do it manually what is not a big problem, but autosubs does the process easier, it worked till 17.1, 17.3, but stopped at 17.6 and 18
Reply
#7
(2018-02-11, 00:06)guil70 Wrote:
(2018-02-10, 22:36)DragonFly Wrote:  
It is not working whatever being a subtitle present or not.....      
I'm afraid you're wrong there. Autosubs DOES work, it's just Kodi that has a little flaw. Let me clarify, using Kodi 17.6 with DEFAULT settings:

Scenario 1 -  Downloaded content without any embedded subs and NO external subs present
Code:
11:59:23.512 T:7272  NOTICE: VideoPlayer: Opening: smb://192.168.1.10/G/TV-Series/test/test s01e07.mkv
11:59:23.528 T:8952   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
11:59:23.529 T:8952   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 1 ms)
11:59:24.552 T:5132   DEBUG: #####[AutoSubs]##### availableLangs ''
11:59:24.552 T:5132   DEBUG: #####[AutoSubs]##### totalTime '2539.28710938'
11:59:24.563 T:5132   DEBUG: #####[AutoSubs]##### isExcluded(): Checking exclusion settings for 'smb://192.168.1.10/G/TV-Series//test/test s01e07.mkv'.
11:59:25.564 T:5132   DEBUG: #####[AutoSubs]##### Started: AutoSearching for Subs
11:59:25.564 T:7272   DEBUG: ------ Window Init (DialogSubtitles.xml) ------
  • Video has been started
  • Kodi looks for an external subtitle (ScanForExternalSubtitles) and does not find any
  • AutoSubs checks the mediainfo and does not find any embedded subtitle in whatever language
  • AutoSubs pauses the video and presents the 'search for subtitles windows' (Window Init (DialogSubtitles.xml))

Scenario 2 -  Downloaded content with embedded subs and NO external subs present
Code:
11:59:44.583 T:7272  NOTICE: VideoPlayer: Opening: smb://192.168.1.10/G/TV-Series/test2/test2 s01e02.mkv
11:59:45.229 T:3680   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
11:59:45.233 T:3680   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 5 ms)
11:59:45.371 T:5132   DEBUG: #####[AutoSubs]##### movieFullPath 'smb://192.168.1.10/G/TV-Series/test2/test2 s01e02.mkv'
11:59:46.370 T:5132   DEBUG: #####[AutoSubs]##### availableLangs '['eng']'
11:59:46.370 T:5132   DEBUG: #####[AutoSubs]##### totalTime '3561.68310547'
11:59:46.381 T:5132   DEBUG: #####[AutoSubs]##### Started: Subs found or Excluded
  • Video has been started
  • Kodi looks for an external subtitle (ScanForExternalSubtitles) and does not find any
  • AutoSubs checks the mediainfo and finds embedded subtitle in English
  • AutoSubs stops any further action because a subtitle has been found (Subs found or Excluded)

Now this is the issue within Kodi. Kodi ALSO detects the embedded subtitle but for some reason does not activate it, even tough it is told to by the user in its configuration. It has to be acativated manually. Older versions of Kodi did not have this issue and displayed the sub automatically. The reason you might think AutoSubs is not working is because you're probably not aware your content has embedded subtitles. Use https://mediaarea.net/nl/MediaInfo to find that out for yourself.
Reply
#8
(2018-02-11, 13:46)DragonFly Wrote:
(2018-02-11, 00:06)guil70 Wrote:
(2018-02-10, 22:36)DragonFly Wrote:  
It is not working whatever being a subtitle present or not.....       
I'm afraid you're wrong there. Autosubs DOES work, it's just Kodi that has a little flaw. Let me clarify, using Kodi 17.6 with DEFAULT settings:

Scenario 1 -  Downloaded content without any embedded subs and NO external subs present
Code:
11:59:23.512 T:7272  NOTICE: VideoPlayer: Opening: smb://192.168.1.10/G/TV-Series/test/test s01e07.mkv
11:59:23.528 T:8952   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
11:59:23.529 T:8952   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 1 ms)
11:59:24.552 T:5132   DEBUG: #####[AutoSubs]##### availableLangs ''
11:59:24.552 T:5132   DEBUG: #####[AutoSubs]##### totalTime '2539.28710938'
11:59:24.563 T:5132   DEBUG: #####[AutoSubs]##### isExcluded(): Checking exclusion settings for 'smb://192.168.1.10/G/TV-Series//test/test s01e07.mkv'.
11:59:25.564 T:5132   DEBUG: #####[AutoSubs]##### Started: AutoSearching for Subs
11:59:25.564 T:7272   DEBUG: ------ Window Init (DialogSubtitles.xml) ------
  • Video has been started
  • Kodi looks for an external subtitle (ScanForExternalSubtitles) and does not find any
  • AutoSubs checks the mediainfo and does not find any embedded subtitle in whatever language
  • AutoSubs pauses the video and presents the 'search for subtitles windows' (Window Init (DialogSubtitles.xml))
Scenario 2 -  Downloaded content with embedded subs and NO external subs present
Code:
11:59:44.583 T:7272  NOTICE: VideoPlayer: Opening: smb://192.168.1.10/G/TV-Series/test2/test2 s01e02.mkv
11:59:45.229 T:3680   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
11:59:45.233 T:3680   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 5 ms)
11:59:45.371 T:5132   DEBUG: #####[AutoSubs]##### movieFullPath 'smb://192.168.1.10/G/TV-Series/test2/test2 s01e02.mkv'
11:59:46.370 T:5132   DEBUG: #####[AutoSubs]##### availableLangs '['eng']'
11:59:46.370 T:5132   DEBUG: #####[AutoSubs]##### totalTime '3561.68310547'
11:59:46.381 T:5132   DEBUG: #####[AutoSubs]##### Started: Subs found or Excluded
  • Video has been started
  • Kodi looks for an external subtitle (ScanForExternalSubtitles) and does not find any
  • AutoSubs checks the mediainfo and finds embedded subtitle in English
  • AutoSubs stops any further action because a subtitle has been found (Subs found or Excluded)

Now this is the issue within Kodi. Kodi ALSO detects the embedded subtitle but for some reason does not activate it, even tough it is told to by the user in its configuration. It has to be acativated manually. Older versions of Kodi did not have this issue and displayed the sub automatically. The reason you might think AutoSubs is not working is because you're probably not aware your content has embedded subtitles. Use https://mediaarea.net/nl/MediaInfo to find that out for yourself. 
 You are right, it seems it is an issue within  Kodi, I guess that 17.1 was  the last version that displayed the sub automatically.
Reply
#9
(2018-02-11, 16:21)guil70 Wrote:
(2018-02-11, 13:46)DragonFly Wrote:
(2018-02-11, 00:06)guil70 Wrote: It is not working whatever being a subtitle present or not.....       
I'm afraid you're wrong there. Autosubs DOES work, it's just Kodi that has a little flaw. Let me clarify, using Kodi 17.6 with DEFAULT settings:

Scenario 1 -  Downloaded content without any embedded subs and NO external subs present
Code:
11:59:23.512 T:7272  NOTICE: VideoPlayer: Opening: smb://192.168.1.10/G/TV-Series/test/test s01e07.mkv
11:59:23.528 T:8952   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
11:59:23.529 T:8952   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 1 ms)
11:59:24.552 T:5132   DEBUG: #####[AutoSubs]##### availableLangs ''
11:59:24.552 T:5132   DEBUG: #####[AutoSubs]##### totalTime '2539.28710938'
11:59:24.563 T:5132   DEBUG: #####[AutoSubs]##### isExcluded(): Checking exclusion settings for 'smb://192.168.1.10/G/TV-Series//test/test s01e07.mkv'.
11:59:25.564 T:5132   DEBUG: #####[AutoSubs]##### Started: AutoSearching for Subs
11:59:25.564 T:7272   DEBUG: ------ Window Init (DialogSubtitles.xml) ------
  • Video has been started
  • Kodi looks for an external subtitle (ScanForExternalSubtitles) and does not find any
  • AutoSubs checks the mediainfo and does not find any embedded subtitle in whatever language
  • AutoSubs pauses the video and presents the 'search for subtitles windows' (Window Init (DialogSubtitles.xml))
Scenario 2 -  Downloaded content with embedded subs and NO external subs present
Code:
11:59:44.583 T:7272  NOTICE: VideoPlayer: Opening: smb://192.168.1.10/G/TV-Series/test2/test2 s01e02.mkv
11:59:45.229 T:3680   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
11:59:45.233 T:3680   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 5 ms)
11:59:45.371 T:5132   DEBUG: #####[AutoSubs]##### movieFullPath 'smb://192.168.1.10/G/TV-Series/test2/test2 s01e02.mkv'
11:59:46.370 T:5132   DEBUG: #####[AutoSubs]##### availableLangs '['eng']'
11:59:46.370 T:5132   DEBUG: #####[AutoSubs]##### totalTime '3561.68310547'
11:59:46.381 T:5132   DEBUG: #####[AutoSubs]##### Started: Subs found or Excluded
  • Video has been started
  • Kodi looks for an external subtitle (ScanForExternalSubtitles) and does not find any
  • AutoSubs checks the mediainfo and finds embedded subtitle in English
  • AutoSubs stops any further action because a subtitle has been found (Subs found or Excluded)

Now this is the issue within Kodi. Kodi ALSO detects the embedded subtitle but for some reason does not activate it, even tough it is told to by the user in its configuration. It has to be acativated manually. Older versions of Kodi did not have this issue and displayed the sub automatically. The reason you might think AutoSubs is not working is because you're probably not aware your content has embedded subtitles. Use https://mediaarea.net/nl/MediaInfo to find that out for yourself.  
 You are right, it seems it is an issue within  Kodi, I guess that 17.1 was  the last version that displayed the sub automatically. 
Did you raise this on the issuetracker? I couldn't seem to find anything related.
https://github.com/xbmc/xbmc/issues

Personally I am also having an issue with AutoSubs not kicking in due to embedded subtitles (in non-preferred language)
Reply
#10
Oops, sorry for necro!
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 17.6-18 autosubs service not working0