Page 1 of 1
Subtitles adjustments?

Posted:
Sat Mar 02, 2013 3:33 pm
by themacedon
Is there any way to make adjustments on the subtitles, like code page, font, size of the font etc.?
Re: Subtitles adjustments?

Posted:
Sat Mar 02, 2013 4:26 pm
by Illico
I don't know how to configure/modify subtitle font.
For the moment the only information about subtitles are here :
http://www.serviio.org/index.php?option ... icle&id=33I move your topic on general Support & help section, I hope Zip will clarify this.
Re: Subtitles adjustments?

Posted:
Sat Mar 02, 2013 5:54 pm
by zip
No , you can't. The only format that supports formatting is SSA/ASS. Regarding code page, I think UTF-8 should be safe.
Re: Subtitles adjustments?

Posted:
Sat Mar 02, 2013 7:10 pm
by Illico
zip wrote:No , you can't. The only format that supports formatting is SSA/ASS.
For SSA/ASS, I made some tests here :
viewtopic.php?f=3&t=8255#p57781But you should probably find lots of information on web with google.
Re: Subtitles adjustments?

Posted:
Sat Mar 02, 2013 7:13 pm
by themacedon
I have basically two problems.
The size of the font of subtitle is too small and it’s hard to read, and that’s even more pronounced on Android phones.
And secondly, some of the characters in the East/Central European subtitles are not shown properly.
Is there any fix for these problems?
Re: Subtitles adjustments?

Posted:
Sat Mar 02, 2013 7:20 pm
by Illico
What is your subtitle format (srt,ass, embedded, etc) ?
Re: Subtitles adjustments?

Posted:
Sat Mar 02, 2013 10:09 pm
by themacedon
My subtitles are mostly in .srt and sometimes in .sub formats.
Re: Subtitles adjustments?

Posted:
Sun Mar 03, 2013 8:41 am
by Illico
themacedon wrote:My subtitles are mostly in .srt and sometimes in .sub formats.
First, with text editor like notepad++ for example,
check that your subtitles files are UTF-8 encoded?
Then, you can try to convert your files to ass format with a ffmpeg command line :
ffmpeg.exe -i INPUT.srt -y -scodec ass OUTPUT.ass
Then you can edit the ass font format like this :
Replace:
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style: Default,Arial,16,&Hffffff,&Hffffff,&H0,&H0,0,0,0,1,1,0,2,10,10,10,0,0
by
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,18,&H00ffffff,&H0000ffff,&H00000000,&H80000000,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1
See result here :
viewtopic.php?f=3&t=8255#p57781
Re: Subtitles adjustments?

Posted:
Mon Mar 04, 2013 8:12 am
by kaisersoze
Hello,
First of all I want to thank you all involved for bringing burning subtitles.
Subtitles working pretty well with Ubuntu server/Sharp Aquos combination.
One problem is that central European subtitles are mostly encoded in CP1250 (usually srt).
So I tried following:
-set locale to CP1250
-set -Dfile.encoding=CP1250
-set LANG=xx_XX.CP1250 and export LANG directly in serviio.sh file.
Nothing helps.
The only thing that I could do is to convert srt files (with iconv) from CP1250 to UTF-8 and this work perfectly - all special characters are shown.
But it is pretty annoying for doing that for all present and future subtitles.
Second problem is font size. Font size is sometimes ok but sometimes too small. I guess it is relative to movie resolution or so.
I read following topics:
http://www.serviio.org/index.php?option ... icle&id=33viewtopic.php?f=5&t=9497So are there any better solution then manually converting CP1250 to UTF-8 and converting from srt to ass?
If there both ass and srt files what will have priority by Serviio?
Thank you in advance
Re: Subtitles adjustments?

Posted:
Mon Mar 04, 2013 9:56 am
by zip
kaisersoze wrote:The only thing that I could do is to convert srt files (with iconv) from CP1250 to UTF-8 and this work perfectly - all special characters are shown.
But it is pretty annoying for doing that for all present and future subtitles.
Yes. Ticket created but not sure how to approach it.
https://bitbucket.org/xnejp03/serviio/i ... 0-files-toIf there both ass and srt files what will have priority by Serviio?
SRT
Re: Subtitles adjustments?

Posted:
Mon Mar 04, 2013 10:55 am
by kaisersoze
XBMC, for example, has option to select character set (among font, size, style, color).
Option “Character set: Central Europe (Windows)” for me works great on XBMC.
That would be great solution for users (size selection would be nice too).
Not sure about development but it does not seem too complicated – converting file before burning in.
Re: Subtitles adjustments?

Posted:
Mon Mar 04, 2013 10:59 am
by zip
Character set is doable, but it won't detect the source file encoding. I can give you the option of selecting character set manually and then hope for the best by passing the value to FFmpeg to do the conversion. I'm not sure if the same should apply for embedded subs though.
Re: Subtitles adjustments?

Posted:
Mon Jul 22, 2013 11:34 am
by nikola2004mkd
From srt subtitle with cp1250 encoding i created ass subtitle with utf-8 encoding and changed font size (from 15 to 25), but when i tried to play the video file no subtitle was displayed. When i done the same thing with another program the video file didnt start playing, and i got just black screen and indication that the video file is loading to stream. In both cases i removed srt file from the folder and ass subtitle had the same name as video file.
So what i am doing wrong? Do in this case (when i have ass subtitle with the same name and in the same folder) do i have to make any adjustments in ffdshow ?
Re: Subtitles adjustments?

Posted:
Tue Aug 20, 2013 9:41 am
by kaisersoze
I tested subtitles character set option with Serviio 1.3.1 version and I can confirm that character set is working very well.
Tested with cp1250 and all special charaters are shown without problems.
Great job
Thanks
Re: Subtitles adjustments?

Posted:
Tue Aug 20, 2013 10:40 am
by Illico
Character set option on Serviio console should be the same than file character encoding option.
file ,, serviio console
cp1250 ,, cp1250
utf-8 ,, utf8
Re: Subtitles adjustments?

Posted:
Mon Oct 07, 2013 10:05 pm
by dadoremix
and how to increase the font size??
I have 50" TV, and font is too small
Re: Subtitles adjustments?

Posted:
Tue Oct 08, 2013 7:06 am
by Illico
dadoremix wrote:and how to increase the font size??
I have 50" TV, and font is too small
Use ass subtitle format :
viewtopic.php?f=5&t=9466#p64510