Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtitle is disable one time automatically after play video. and it makes subtitle to off on plex metadata #2109

Open
heat1024 opened this issue Sep 10, 2024 · 2 comments

Comments

@heat1024
Copy link

heat1024 commented Sep 10, 2024

Help yourself

Describe the bug

I have same problem with #2059 in nVidia shield and Amazon file stick devices.

Kodi says Kodi has 1 external subs, Plex 1, trying to match them and it was kor (kor is correct).
But, in next log, kodi cannot find subtitle in filesystem while scanning.
So log is Subs from the filesystem: [] .
It makes unexpected missmatch with kodi_subs_ext and file_subs because file_subs is empty.

Why kodi can't detect subtitle files?

Here is my environment.

  • Kodi 21.1
  • PKC 3.10.4
  • Using Direct path and convert path with volume1/videosmb://{Local IP}/video
  • smb authentification is correct. So I can play video with subtitle(subtitle manually set on after disable once) in smb path

Expected behavior

Want to use subtitle without turn it on.

You need to attach a KODI LOG FILE!

2024-09-03 14:37:25.284 T:19698   debug <general>: PLEX.subtitles: Kodi list of available subtitles: ['kor', 'eng', 'eng', 'ara', 'chi', 'chi', 'chi', 'dut', 'fre', 'ind', 'kor', 'may', 'spa', 'tha', 'fre']
2024-09-03 14:37:25.284 T:19458   debug <general>: PrepareNextRender: frameOnScreen: 4668843.714505 renderPts: 4731974.201470 nextFramePts: 4755000.000000 -> diff: -23025.798530  render: false forceNext: false
2024-09-03 14:37:25.285 T:19698   debug <general>: PLEX.subtitles: Available Plex subtitle streams for currently playing item:
2024-09-03 14:37:25.285 T:19698   debug <general>: PLEX.subtitles: Number 0: Stream: {'id': '7767', 'streamType': '3', 'default': '1', 'codec': 'pgs', 'index': '10', 'bitrate': '38', 'language': '영어', 'languageTag': 'en', 'languageCode': 'eng', 'headerCompression': '1', 'title': 'English-PGS', 'displayTitle': '영어 (PGS)', 'extendedDisplayTitle': 'English-PGS'}
2024-09-03 14:37:25.286 T:19698   debug <general>: PLEX.subtitles: Number 1: Stream: {'id': '7768', 'streamType': '3', 'codec': 'pgs', 'index': '11', 'bitrate': '38', 'language': '영어', 'languageTag': 'en', 'languageCode': 'eng', 'headerCompression': '1', 'title': 'English-SDH-PGS', 'displayTitle': '영어 (PGS)', 'extendedDisplayTitle': 'English-SDH-PGS'}
2024-09-03 14:37:25.286 T:19698   debug <general>: PLEX.subtitles: Number 2: Stream: {'id': '7769', 'streamType': '3', 'codec': 'pgs', 'index': '12', 'bitrate': '22', 'language': '아랍어', 'languageTag': 'ar', 'languageCode': 'ara', 'headerCompression': '1', 'title': 'Arabic-PGS', 'displayTitle': '아랍어 (PGS)', 'extendedDisplayTitle': 'Arabic-PGS (아랍어)'}
2024-09-03 14:37:25.286 T:19698   debug <general>: PLEX.subtitles: Number 3: Stream: {'id': '7770', 'streamType': '3', 'codec': 'pgs', 'index': '13', 'bitrate': '31', 'language': '중국어', 'languageTag': 'zh', 'languageCode': 'zho', 'headerCompression': '1', 'title': 'Chinese-PGS', 'displayTitle': '중국어 (PGS)', 'extendedDisplayTitle': 'Chinese-PGS (중국어)'}
2024-09-03 14:37:25.287 T:19698   debug <general>: PLEX.subtitles: Number 4: Stream: {'id': '7771', 'streamType': '3', 'codec': 'pgs', 'index': '14', 'bitrate': '35', 'language': '중국어', 'languageTag': 'zh', 'languageCode': 'zho', 'headerCompression': '1', 'title': 'Chinese-PGS', 'displayTitle': '중국어 (PGS)', 'extendedDisplayTitle': 'Chinese-PGS (중국어)'}
2024-09-03 14:37:25.287 T:19698   debug <general>: PLEX.subtitles: Number 5: Stream: {'id': '7772', 'streamType': '3', 'codec': 'pgs', 'index': '15', 'bitrate': '28', 'language': '중국어', 'languageTag': 'zh', 'languageCode': 'zho', 'headerCompression': '1', 'title': 'Chinese-PGS', 'displayTitle': '중국어 (PGS)', 'extendedDisplayTitle': 'Chinese-PGS (중국어)'}
2024-09-03 14:37:25.288 T:19698   debug <general>: PLEX.subtitles: Number 6: Stream: {'id': '7773', 'streamType': '3', 'codec': 'pgs', 'index': '16', 'bitrate': '37', 'language': '네덜란드어', 'languageTag': 'nl', 'languageCode': 'nld', 'headerCompression': '1', 'title': 'Dutch-PGS', 'displayTitle': '네덜란드어 (PGS)', 'extendedDisplayTitle': 'Dutch-PGS (네덜란드어)'}
2024-09-03 14:37:25.288 T:19698   debug <general>: PLEX.subtitles: Number 7: Stream: {'id': '7774', 'streamType': '3', 'codec': 'pgs', 'index': '17', 'bitrate': '29', 'language': '프랑스어', 'languageTag': 'fr', 'languageCode': 'fra', 'headerCompression': '1', 'title': 'French-PGS', 'displayTitle': '프랑스어 (PGS)', 'extendedDisplayTitle': 'French-PGS (프랑스어)'}
2024-09-03 14:37:25.288 T:19698   debug <general>: PLEX.subtitles: Number 8: Stream: {'id': '7775', 'streamType': '3', 'codec': 'pgs', 'index': '18', 'bitrate': '37', 'language': '인도네시아어', 'languageTag': 'id', 'languageCode': 'ind', 'headerCompression': '1', 'title': 'Indonesian-PGS', 'displayTitle': '인도네시아어 (PGS)', 'extendedDisplayTitle': 'Indonesian-PGS (인도네시아어)'}
2024-09-03 14:37:25.289 T:19698   debug <general>: PLEX.subtitles: Number 9: Stream: {'id': '7776', 'streamType': '3', 'codec': 'pgs', 'index': '19', 'bitrate': '25', 'language': '한국어', 'languageTag': 'ko', 'languageCode': 'kor', 'headerCompression': '1', 'title': 'Korean-PGS', 'displayTitle': '한국어 (PGS)', 'extendedDisplayTitle': 'Korean-PGS (한국어)'}
2024-09-03 14:37:25.289 T:19698   debug <general>: PLEX.subtitles: Number 10: Stream: {'id': '7777', 'streamType': '3', 'codec': 'pgs', 'index': '20', 'bitrate': '42', 'language': '말레이어', 'languageTag': 'ms', 'languageCode': 'msa', 'headerCompression': '1', 'title': 'Malay-PGS', 'displayTitle': '말레이어 (PGS)', 'extendedDisplayTitle': 'Malay-PGS (말레이어)'}
2024-09-03 14:37:25.289 T:19698   debug <general>: PLEX.subtitles: Number 11: Stream: {'id': '7778', 'streamType': '3', 'codec': 'pgs', 'index': '21', 'bitrate': '34', 'language': '스페인어', 'languageTag': 'es', 'languageCode': 'spa', 'headerCompression': '1', 'title': 'Spanish-PGS', 'displayTitle': '스페인어 (PGS)', 'extendedDisplayTitle': 'Spanish-PGS (스페인어)'}
2024-09-03 14:37:25.289 T:19698   debug <general>: PLEX.subtitles: Number 12: Stream: {'id': '7779', 'streamType': '3', 'codec': 'pgs', 'index': '22', 'bitrate': '32', 'language': '태국어', 'languageTag': 'th', 'languageCode': 'tha', 'headerCompression': '1', 'title': 'Thai-PGS', 'displayTitle': '태국어 (PGS)', 'extendedDisplayTitle': 'Thai-PGS (태국어)'}
2024-09-03 14:37:25.289 T:19698   debug <general>: PLEX.subtitles: Number 13: Stream: {'id': '7780', 'streamType': '3', 'codec': 'pgs', 'index': '23', 'bitrate': '0', 'language': '프랑스어', 'languageTag': 'fr', 'languageCode': 'fra', 'headerCompression': '1', 'title': 'French-FORCED-PGS', 'displayTitle': '프랑스어 (PGS)', 'extendedDisplayTitle': 'French-FORCED-PGS (프랑스어)'}
2024-09-03 14:37:25.290 T:19698   debug <general>: PLEX.subtitles: Number 14: Stream: {'id': '58126', 'key': '/library/streams/58126', 'streamType': '3', 'codec': 'srt', 'language': '한국어', 'languageTag': 'ko', 'languageCode': 'kor', 'format': 'srt', 'displayTitle': '한국어 (SRT 외부)', 'extendedDisplayTitle': '한국어 (SRT 외부)'}
2024-09-03 14:37:25.290 T:19698   debug <general>: PLEX.subtitles: Kodi list of external subs: ['kor']
2024-09-03 14:37:25.290 T:19698   debug <general>: PLEX.subtitles: Kodi has 1 external subs, Plex 1, trying to match them
2024-09-03 14:37:25.291 T:19698   debug <general>: PLEX.subtitles: Detected these external subtitles while scanning the file system: []
2024-09-03 14:37:25.291 T:19698 warning <general>: PLEX.subtitles: Unexpected missmatch of number of Kodi subtitles
2024-09-03 14:37:25.291 T:19698 warning <general>: PLEX.subtitles: Kodi subs: ['kor']
2024-09-03 14:37:25.291 T:19698 warning <general>: PLEX.subtitles: Subs from the filesystem: []
2024-09-03 14:37:25.292 T:19698   debug <general>: PLEX.playlist_func: Deactivating Kodi subtitles because the PMS told us to not show any subtitles
2024-09-03 14:37:25.294 T:19698   debug <CAddonSettings[[email protected]]>: trying to load setting definitions from old format...
2024-09-03 14:37:25.301 T:19458   debug <general>: PrepareNextRender: frameOnScreen: 4685791.329505 renderPts: 4748655.227544 nextFramePts: 4755000.000000 -> diff: -6344.772456  render: false forceNext: false
2024-09-03 14:37:25.303 T:19698   debug <general>: PLEX.playlist_func: The PMS wants to display audio stream with Plex id 7759 and languageTag en
2024-09-03 14:37:25.304 T:19698   debug <general>: PLEX.playlist_func: Switching to Kodi audio stream number 0 because the PMS told us to show stream with Plex id 7759
2024-09-03 14:37:25.304 T:19458   debug <general>: CMediaCodecVideoBuffer::ReleaseOutputBuffer index(6), render(true), time:4978972608197, offset:18113826
2024-09-03 14:37:25.305 T:19698   debug <general>: PLEX.playlist_func: Not switching audio stream (no change)
2024-09-03 14:37:25.307 T:19698   debug <CAddonSettings[[email protected]]>: trying to load setting definitions from old format...
2024-09-03 14:37:25.318 T:19477    info <general>: RAW Head-Position 250368
2024-09-03 14:37:25.318 T:19698   debug <general>: PLEX.playlist_func: Deactivating Kodi subtitles because the PMS told us to not show any subtitles
@croneter
Copy link
Owner

Sorry it took so long to get back to you 😞 .

Can you please check whether there really IS a dedicated subtitles file lying right next to your movie file? 😉 How do the subtitle file name and extension look like? Screenshot would be appreciated.

@croneter
Copy link
Owner

Maybe the extension of your subtitle is not in this list?

KODI_SUBTITLE_EXTENSIONS = ('srt', 'ssa', 'ass', 'usf', 'cdg', 'idx', 'sub',
                            'utf', 'aqt', 'jss', 'psb', 'rt', 'smi', 'txt',
                            'smil', 'stl', 'dks', 'pjs', 'mpl2', 'mks')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants