OSMC won't play file with local subtitles

Since a while I’m using OSMC. It works like a charm except for one thing. If I play a movie file from my NAS it won’t play movies which have the subtitle file in the directory. It shows the file for half a second and then closes the file. I’m not 100% sure it has to do with the subs, but it only happens with files which have separate subs. I’ve uploaded the log file from OSMC: Log File.

I’ve searched the form, but am not able to find the similar problem elsewhere.

Can somebody tell me how to fix this issue?

Looks like your NAS’s share is read only ?

23:39:32 7988.929199 T:2553824288 WARNING: SMBFile::OpenForWrite() called with overwriting enabled! - smb://va%5cfboer:13Fien02@VAL028/Films/Luther.S04E01.HDTV.x264-ORGANiC%5bettv%5d/Luther.S04E01.HDTV.x264-ORGANiC%5bettv%5d.en.srt
23:39:32 7988.952148 T:2553824288   ERROR: SMBFile->Open: Unable to open file : 'smb://va%5cfboer:13Fien02@VAL028/Films/Luther.S04E01.HDTV.x264-ORGANiC%5bettv%5d/Luther.S04E01.HDTV.x264-ORGANiC%5bettv%5d.en.srt'
                                            unix_err:'d' error : 'Permission denied'
23:39:32 7988.952637 T:2553824288 WARNING: OnDownloadComplete - Saving of subtitle special://temp/Luther.S04E01.HDTV.x264-ORGANiC[ettv].en.srt to smb://VAL028/Films/Luther.S04E01.HDTV.x264-ORGANiC[ettv]/Luther.S04E01.HDTV.x264-ORGANiC[ettv].en.srt failed. Falling back to special://temp

Thanks for the analysis, this isn’t the problem VAL028 is an old laptop we use for downloading and such, which has a shared drive, but you indirectly solved it for me :smile:.

When I put an film or episode on my nas-drive, most of the time I also directly add the correct subtitles. I only have the issue with those files, that already include subtitles in the same directory. There must be some sort of conflict when starting the file to play and the autosearch for subtitles, since there already is a pair available.

Follow up question is of course, how can I manage both options in the same time? So play localy added subs or autodownloaded subs?

Thanks

I don’t think you can have multiple external sub files for a movie in Kodi - the subs are always named the same as the video file but with the srt extension thus by definition you can’t have multiple versions of them.

When you try to download subs using a subtitle addon, it will by default try to save that in the same directory as the video file with the same name but with srt extension, thus overwriting the subs you had previously manually placed there. Because your share is read only saving the sub file fails, thus the problems you are having with downloading subs.

  • Some video file formats like mkv also support “internal” subtitles which are inside the mkv file itself. If you have one of these files then you can select between internal (in the mkv) and external (in the separate srt) file. But multiple external srt files I don’t think is possible.

I’ve for now solved the problem by changing the default directory for downloading subtitles in the settings. Beside that, I’ve deleted all local subtitles on the NAS and now manually download the specific title for the specific file.

Thanks for the support.

You can have multiple external subs btw… movie.en.srt movie.nl.srt etc. :grin:

Hmm, I noticed that as well. I’l try that when the family is of to bed tonight :wink:

Of the same language though ?

no idea what the rest of the options are, but I guess only one per type and language.
So maybe more external of the same language, but then a idx/sub and a srt or something.