Page 1 of 1

No subtitles at the end of movie.

PostPosted: Thu Oct 13, 2016 1:56 am
by CreaTian
Hello. I just downloaded Serviio 1.7. I use it for my Playstation 4. And now, its something weird. In every movie, when timeline is over 3/4 a movie, subtitles are gone.
I go to the previous part of movie, and there still are. I didnt see it in previous versions, so how fix it? Do you have this problem too?
How is this possible? Thanks for help.
Greetings

Edit: I use Windows 8.1

Re: No subtitles at the end of movie.

PostPosted: Thu Oct 13, 2016 6:24 am
by DenyAll
Being fixed in 1.7.1.

Re: No subtitles at the end of movie.

PostPosted: Sun Jan 29, 2017 5:00 pm
by hipporoll
I have a similar issue with Serviio 1.8.0-0031 on Synology NAS DS216j.
After having upgraded Serviio from 1.6 to 1.8, subtitle disappears starting from around 80% of the entire play time.
I suppose this issue was found and fixed in 1.7.1, but the bug persists somehow in 1.8. Please correct me if I'm wrong.

I would like to downgrade Serviio for Synology back to 1.6, but I couldn't, because on http://packages.pcloadletter.co.uk/ only 1.8 is available.

Any hints, or workaround?
Thanks.

EDIT: this issue happens for both subtitle formats, Subrip (*.srt) and SAMI (*.smi).

Re: No subtitles at the end of movie.

PostPosted: Sun Jan 29, 2017 9:30 pm
by zip
Could you attache the subtitle here? (zipped) And are you burning them in or are they soft-subs?

Re: No subtitles at the end of movie.

PostPosted: Sun Jan 29, 2017 10:07 pm
by hipporoll
I'll attach one of my subtitles. With this one, no subtitle shows up starting from ca. 01:40:00.
In my test setup, actually every subtitle is affected. So this attachment is not the only affected one.
And I'm not using burned-in subtitle, but always normal external subtitle files. (*.srt or *.smi)

Re: No subtitles at the end of movie.

PostPosted: Tue Jan 31, 2017 1:07 pm
by zip
cool, can you also post detailed logging of playing the file with this subtitle?

Re: No subtitles at the end of movie.

PostPosted: Sat Apr 01, 2017 12:35 am
by adi07
Same problem for me in version 1.8 on Ubuntu 16.10. Subtitles disappear around 90% of the length of the movie. It happens on almost all files. Using .srt files in movie folders. No transcoding. This happens only when using KODI (tried 16,17.1) as renderer (on PC, Android Phone and Xiaomi Mi Box). When using MX player or ServiiGo or Serviio MediaBrowser, then the subtitles are OK. Also when playing the movie via KODI locally the subtitles works properly.

What could be the cause of it ? It was tracked with Issue #956 and it is supposed to be fixed. Looks to be similar, but different problem. What was the cause/fix of #956 (just curious) ?

Can I help with the investigation ? I turned debug logs on, but just looking at those logs I do not see any errors during playback via KODI and the logs are almost the same when comparing KODI and MX player playback for instance.

Thanks.

Re: No subtitles at the end of movie.

PostPosted: Sat Apr 01, 2017 10:16 pm
by patters
I have never encountered this issue using my Synology package. I compile the FFmpeg build myself, including most of the dependent libraries. Might this be related to the version of fontconfig, or libfreetype? Or more likely the version of libass? I'm using a more recent version (0.13.4) than I think Zip compiles for the Mac and Windows versions of Serviio.

Re: No subtitles at the end of movie.

PostPosted: Sun Apr 02, 2017 3:49 pm
by adi07
I investigated more and found out that the missing subtitle lines (sometimes it stops in the middle of a line) at the end are related to the encoding of the .srt file. Usually my .srt files are in Windows-1250 (CP1250) encoding. This causes the problem in my setup (Serviio 1.8 -> Kodi 16/17). I found out that the number of missing lines is directly related to the number of non-ASCII (non 7-bit) characters in the file. If I replace one 'a' with the accent (acute-a - 0xe1 in CP1250) with regular 'a' character (0x61 in ASCII) somewhere at the beginning of the .srt file I will get one more character on the last line displayed in Kodi. Similarly, if I add on space at the end of the .srt file I also get one additional character displayed on the last line. To sum it up, the number of displayed subtitle characters is equal to the total number of characters minus the total number of non-ASCII characters.

Has anyone idea what could be the cause of this ? Thanks.

Re: No subtitles at the end of movie.

PostPosted: Sun May 14, 2017 8:39 am
by trapatoni
I faced this same problem yesterday. I had not been watching movies for few months and yesterday it almost ruined my evening.
Kodi 16.1 on a MXQ Pro box, Serviio 1.8 on Server 2008 R2 accessing file shares on another PC/NAS.
After progressing to about 3/4 of the length of the movie(s), subtitles just disappear. Rewinding back a little, they appear and disappear at the same point in time for a movie, but that point is movie-dependent. After reading previous posts I guess it might have something to do with the encoding and the number of non-lowASCII symbols in the file. All my srt files are cp1251 and play well in all players. I'm not even sure which of the two softwares is at fault here (Kodi or Serviio). But this topic is exactly explaining my problem after searching online, that's why I'm using it.

My solution is to convert all subtitles (.srt files) to UTF-8 with BOM encoding, and in Kodi select Default as encoding (there is no UTF-8 entry there). Now subtitles don't disappear and work normally. It was not sufficient to apply only either of those - "Default" encoding in Kodi or converting subs to UTF-8, I had to do both.
I think things were Ok with 1.7.x and the same Kodi I have, because I've watched several movies before.

Re: No subtitles at the end of movie.

PostPosted: Sun May 14, 2017 10:36 am
by zip
Could you post the original srt and the one you manually converted please? I would like to compare them.

Re: No subtitles at the end of movie.

PostPosted: Sun May 14, 2017 8:07 pm
by trapatoni
Here it is. Win1251 + UTF8_BOM versions of the same subtitle.
Nothing special, I opened the win1251 srt file in Notepad++ and converted it to utf8-BOM and saved. I didn't try utf8 without BOM but I guess it would work too.

Re: No subtitles at the end of movie.

PostPosted: Mon May 15, 2017 7:58 am
by zip
Thanks, will give it a go.

Re: No subtitles at the end of movie.

PostPosted: Mon May 15, 2017 9:02 am
by lagunaa
trapatoni wrote:Nothing special, I opened the win1251 srt file in Notepad++ and converted it to utf8-BOM and saved.

That's the same operation I was used to do until Serviio implemented charset detection for subs.

Re: No subtitles at the end of movie.

PostPosted: Mon May 15, 2017 8:07 pm
by zip
I ran it through my tests and Serviio generates the same file, byte by byte. So I'm not really sure why it doesn't work for you.

What profile are you using?

Also, could you please enable detailed logging and browse and start playing this file (the attached subs in its original encoding). I want to see what actually Kodi requests (it might request only a part of the file).

Re: No subtitles at the end of movie.

PostPosted: Tue May 16, 2017 7:32 pm
by zip
Nevermind, I think I found it.

Would be good if you sign up as a beta tester to give the upcoming 1.9 beta a try.

Re: No subtitles at the end of movie.

PostPosted: Tue May 16, 2017 7:43 pm
by trapatoni
Ok, I enabled logging, then navigated to the movie, started it and after I saw the first subtitle I moved to position about 0h:53min. Subs were still working. Then I moved to position 1h:15min and ... no subtitles.
I went through the log a bit and I think Kodi loads the whole subtitle file at once at the beginning. So I guess the problem is somewhere in Kodi..
It seems Serviio creates log files 500KB each. I'm attaching the one that corresponds to the timespan I conducted the experiment.
11.12 is Kodi box, 11.13 is the server with Serviio.
The file is protected, I'm gonna send you the password as a PM. Edit: Ok, It seems I can't use PMs, anyway. If interested, I can send the PW in some other way.
As to beta testing, I don't know, the TV box is Android and I'm no that fond of trying things on Android that I can't easily revert (the same on my smartphone(s)). If you have strong evidence you found the culprit (and it is Serviio's fault), and cannot test, I probably can test in some VM.
P.S. Hm, it seems I was confused. Serviio is not running on the TV box but under Windows. I thought of Kodi when speaking about testing on my TV box :) .