Page 1 of 1

[SOLVED] Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 8:45 am
by aminits
Hi all.
Just now I had the time to play with the new Serviio 1.2 support for subtitles. Had to fix many issues before I had success, so sharing this with everyone:

[*] Seems like Serviio can't handle spaces in the file name when it needs to use ffmpeg for transcoding subtitles. Maybe it is because the way the ffmpeg command line is built (the subtitle argument??)? Anyway removing all spaces from the filename (and folder names) fixed the problem, and Serviio was able to play the file. Maybe this could be fixed for next version?
[*]Usually most subtitles files (SRT) are using ANSI encoding even for non-latin languages. For Serviio to show the subtitles correctly, the SRT file needs first to be re-encoded to UTF8 using the proper language code page. Here is an explanation to how to do this. Converting the SRT in thsi way enabled Serviio to display the subtitles in the correct CP. I find this need to re-encode the SRT file a bit bother. In other media servers there is no need to do it. For example in PMS (PS3 Media Server) there is an option to specify the language code page and keep the SRT in its original ANSI encoding. In Plex, the file suffix is used to determine the language (for example movie.fra.srt will use French etc.). and also there the file can be left in its original form. It will be really nice if Serviio could support it too (feature request).
[*]According to Serviio docs for subtitles file names, there are 3 ways to specify the language: my_movie_en.srt, my_movie-de.sub, my_movie(fra).srt
However most of my subtitles are named using a dot convention, for example: "my_movie.de.srt". Feature request: can Serviio also supports this convention?

So after doing all 3 fixes listed above (removed spaces from filename, encoding the SRT to UTF8 and renamed using the *_lang convention), Serviio was able to play my file correctly with subtitles. I wonder if these bugs / requests could be fixed. Thanks!

Re: Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 12:19 pm
by aminits
Regarding the first item, I really hope the fix described here will help me too. Waiting for 1.2.1!

Re: Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 1:43 pm
by kaisersoze
aminits wrote:Regarding the first item, I really hope the fix described here will help me too. Waiting for 1.2.1!


Regarding second item maybe is this helpfull: viewtopic.php?f=5&t=9466#p64642.

Re: Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 4:31 pm
by zip
2 - ticket is already open for it
3 - I'll try to get it in for 1.2.1

Re: Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 8:21 pm
by aminits
2 - ticket is already open for it

Good to know, hope to see this soon. It has a workaround that works but takes effort to do (manually).

3 - I'll try to get it in for 1.2.1

Thanks a lot. You are truly responsive.


BTW - can you confirm the fix mentioned here also handles white spaces characters?

Re: Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 9:22 pm
by zip
Afaik spaces are not a problem. Problems were [], characters.

Re: Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 9:50 pm
by romi7519
just jumping on this thread as its about subtitles. if you choose 'enable burnt in subtitles' ALWAYS & at the same time you have an external .srt file then serviio will not play the file.
but if you select WHEN NEEDED then all is ok. is it a bug? or is that how it is?
cheers!

ps. i can also confirm spaces are not a problem.

Re: Playing with Serviio 1.2 subtitles support

PostPosted: Fri Mar 15, 2013 11:21 pm
by aminits
Afaik spaces are not a problem. Problems were [], characters.

Ok, confirmed that. The problem is the special characters. Thanks!

Re: [SOLVED] Playing with Serviio 1.2 subtitles support

PostPosted: Tue Jun 18, 2013 2:00 pm
by shaileen
Also, I believe the case matters in that it has to EXACTLY match that of the video file.

Re: [SOLVED] Playing with Serviio 1.2 subtitles support

PostPosted: Tue Jun 18, 2013 2:09 pm
by wojtas40
Any solution for Polish subtitles (CP1250)......?

Re: [SOLVED] Playing with Serviio 1.2 subtitles support

PostPosted: Fri Jan 03, 2014 9:22 pm
by mitko.kostov
Hi. I also had problems with displaying subtitles, but at the end I managed to solve them. I want to add that it is not always necessary to re-encode srt file to UTF-8. It is needed to write down an appropriate encoding (instead UTF-8) in the Serviio console Settings/Delivery/Subtitles/Subtitle character encoding. I tested this with Windows-1250 and it worked (for latin special characters for Serbian/Croatian language). I think it would work for Polish language, too.

Re: [SOLVED] Playing with Serviio 1.2 subtitles support

PostPosted: Sat Jan 04, 2014 4:49 pm
by wojtas40
[quote="mitko.kostov"I tested this with Windows-1250 and it worked [/quote]

What exactly did you put in this setting? String "Windows-1250"?

W

Re: [SOLVED] Playing with Serviio 1.2 subtitles support

PostPosted: Sat Jan 11, 2014 5:48 pm
by mitko.kostov
yes, "Windows-1250" and it works. Before that the subtitle wasn't displayed correctly.