PDA

View Full Version : NEW! TTF-font Subtitles Support Announcement


yuvalt
2004-09-16, 16:15
hi,

i've just commited into cvs support for ttf fonts in subtitles. you can use any ttf font for subtitles as long as it is under xbmc\media\fonts. this is of course not replacing the support for mplayer subtitles, which can still be used if an mplayer font is selected.

to enable:
1. go to settings -> my movies -> subtitles.
2. from the font list select arial.ttf (or any other ttf font that you would like).
3. select the size (8-48).
4. select the color (white or yellow)
5. select the style (normal, bold, italics, bold italics)
6. select the charset of your subtitles
7. hebrew/arabic can flip the characters (instead of the flip characters which was in the skin/language settings).

let me know if it is working for you and if you have any issues.

note: in order for this feature to work properly, you will need the new mplayer.dll from cvs.

regards,

-yuval

kimp93
2004-09-16, 18:47
yuvalt, another great work!
looks like, ttf subtitle works on xbmc instead of mplayer.
i think it is better implementation of ttf subtitle for many reasons.
i will test asap. :lol:

DayWalker
2004-09-16, 20:32
:bowdown: finally.... ;)
thx for the effort, i was waiting for this feature ever since xbmc came out.
hope the anon cvs gets updated soon so i can try it out.

greetzzzz
daywalker

ezar2003
2004-09-16, 20:55
only...
you are the best!!! :bowdown:
thank you :) i learn with you!

tinyau
2004-09-16, 21:03
thanks so much. after anonymous cvs is updated, i'll try it out.

f.u.
2004-09-17, 04:52
:bowdown:

kimp93
2004-09-17, 05:14
i just checked ttf subtitle support.
tested with several subtitles, works great!
now, i can see every single characters without limit. :thumbsup:

yuvalt, could you add effects for subtitle such as outline, shadow? this might increase legibility of subtitle.

danny
2004-09-17, 09:18
great job! yuvalt :kickass:

i represent all the chinese say thanks to you :bowdown:
you are the hero :talktohand:

would you like to tell me which cvs build support it? :blush:
thanks

emefbiemef
2004-09-17, 13:25
i've found something unpleasant. two subtitles overlapping each other (dunno which one is up or down) when an .ogm or .mkv file is played. external-sub-based (.srt, .sub) played fine. gotta love the sharpness and smoothness of a ttf font *:thumbsup:

also, some texts disappeared from gui in settings (rss feed on-off, ttf subtitle's font color, style, charset). the option buttons are there, it's just that the texts are not displaying. using ntsc box, by the way. has anything to do with the skin, i presume?

yuvalt
2004-09-17, 15:43
you need to update both the english\strings.xml and the skin. i'll try to look at .ogm and .mkv.

-yuval

yuvalt
2004-09-17, 16:10
two subtitles overlapping each other (dunno which one is up or down) when an .ogm or .mkv file is played. external-sub-based (.srt, .sub) played fine. gotta love the sharpness and smoothness of a ttf font

to test it: please change the color of subtitles to yellow from setttings->my videos->sbutitles. then please let me know if the yellow ones display the text correctly throughout the movie. then i will be able to fix it.

thanks,

-yuval

emefbiemef
2004-09-17, 16:22
changed to yellow as suggested. i forgot to mention that both two subs were not in exact total overlap; one sub was displayed a little upper. now that the ttf sub font color *changed to yellow, i can see that ttf sub is the one that resides above another one (white). when paused, the white one disappear but the yellow one remains. i'm guessing the white one is an mplayer sub font. or maybe not?

edit: forgot to mention again that the sub was in english, not in any non-latin characters.

yenshiang
2004-09-17, 16:39
:bowdown: :o
thank you very much!!

DayWalker
2004-09-17, 18:18
just tested it, very goodlooking subs now; sharp and very smooth.
although when there's a scene in a movie where the background changes to white or another light color... they're hardly readable on my tv (they blend in and can't hardly be read)... is there something that can be added in the settings that can improve this? like adding a small black border around the fonts; and not making them look ugly. that's the only downside i can find, what can't be said about mplayer subs. kudos :kickass:

Nickman
2004-09-17, 18:36
just tried out the ttf support. very nice *:kickass:

but is subtitle calibration supposed to be working ? or is it just for mplayer fonts ? because it's not working for me.

DayWalker
2004-09-17, 18:42
works for me...

yuvalt
2004-09-18, 03:57
just tested it, very goodlooking subs now; sharp and very smooth.
although when there's a scene in a movie where the background changes to white or another light color... they're hardly readable on my tv (they blend in and can't hardly be read)... is there something that can be added in the settings that can improve this? like adding a small black border around the fonts; and not making them look ugly. that's the only downside i can find, what can't be said about mplayer subs. kudos *:kickass:
i just committed to cvs a small change that will add a (semi) outline to the text. it should improve clarity.

-yuval

danny
2004-09-18, 08:12
i have tested 09-17-04 cvs build.
the ttf fonts for subtitle works,but i found a minor problem of it,when subtitle is displayed,the subtitle between next coming subtitle *has 1sec delay to display next subtitle. does anyone notice it?

also, the whole xbmc gui will becoming lag/delay when i enabled ttf fonts for gui,but it does not have any problems using english language , latin1 charset it runs smooth.

anyway, thanks yuvalt for the hard work :bowdown:

emefbiemef
2004-09-18, 12:20
i have tested 09-17-04 cvs build.
the ttf fonts for subtitle works,but i found a minor problem of it,when subtitle is displayed,the subtitle between next coming subtitle *has 1sec delay to display next subtitle. does anyone notice it?

also, the whole xbmc gui will becoming lag/delay when i enabled ttf fonts for gui,but it does not have any problems using english language , latin1 charset it runs smooth.

anyway, thanks yuvalt for the hard work :bowdown:
mine works perfect. are you sure it has nothing to do with the sub itself?

anyway, i've just tested the new mplayer.dll compiled from mplayer cvs source tree, and it seems that the problem i mentioned earlier (double-overlapping sub display on ogm/mkv) has been fixed. props to yuvalt :joker:. the new thin outline on ttf subs works near-perfect, now the subs seem easier to read although it might be a lot easier if a black outline was used instead of white. or maybe we can include that as an option?

DayWalker
2004-09-18, 15:43
well, yuval thank you very much... the subs are now clear enough on my tv, now they really are perfect :thumbsup: .

gamepc
2004-09-18, 16:18
cool! it's 9-17 cvs build work fine for chinese charset.

but 9-17 cvs build not stable , when i use chinese charset , crash and crash , so i back to use 9-13 cvs build.

yuvalt
2004-09-18, 18:40
please explain about the crashes... what do you do, when does it happen and how.

-yuval

gamepc
2004-09-18, 19:12
please explain about the crashes... what do you do, when does it happen and how.

-yuval
my video-> after list dir movie files, xbmc carsh

yuvalt
2004-09-18, 19:41
i don't really understand. please explain in details the steps that you are doing and your configuration to crash the box.

-yuval

caze
2004-09-19, 09:24
0917 cvs xbmc,
in my xbox , list the 7 movies files with chinese file name or more
the list will delay...
but 0913 cvs xbmc is very well...

gamepc
2004-09-19, 09:38
i don't really understand. please explain in details the steps that you are doing and your configuration to crash the box.

-yuval
my system: xbox 1.0 , 160gb hdd , evox m8 bios use evtools modify to add igr and lba48 support

9-17 cvs build
xbmc language : english
skin font: arialuni.ttf or simhei.ttf or simyou.ttf
charset: chinese simplified

system crash easy when list dir include chinese charset name files

but if change charset to english (west erou windows/iso)
system will not crash


9-13 cvs build
all ok , stable

yuvalt
2004-09-19, 09:55
can you please send me a file or two with chinese characters?
what protocol are you using to access the files?

thanks,

-yuval

tinyau
2004-09-19, 15:20
0917 cvs xbmc,
in my xbox , list the 7 movies files with chinese file name or more
the list will delay...
but 0913 cvs xbmc is very well...
i have this problem as well.

caze
2004-09-20, 03:16
0917 cvs xbmc,load dr. hann-tzong wang wt011.ttf
in my xbox , list the 7 movies files with chinese file name or more
the list will delay...
but 0913 cvs xbmc is very well...
load windows kaiu.ttf (4.93mb)
in xbmc cvs 0917
list chinese charset filename become better ....

olgs
2004-09-20, 18:49
i have the same problem... i used the arial based unicode font from windows and the xbox lag everytime there is a lot of chinese characters on the screen (traditional or simplified)

i can hear the xbox hard disk thrashing when there are lots of files listed on the screen.

i switched to a tsc unicode font (check alan wood's excellent page on the subject)... the file is smaller, and the lag is noticeably less.

gamepc
2004-09-22, 05:23
chinese charset *crash photo

http://www.gamepc.com.cn/leeu/xbmc/xbmc12.gif
http://www.gamepc.com.cn/leeu/xbmc/xbmc13.gif

http://www.gamepc.com.cn/leeu/xbmc/xbmc17.gif

gamepc
2004-09-22, 06:20
the chinese name floders and files

http://www.gamepc.com.cn/leeu/xbmc/leeu.rar
you can use this.

ttf font

http://www1.mplayerhq.hu/mplayer/contrib/fonts/arialuni.ttf.bz2


another cdrip bug i post ,please fix

http://www.xboxmediaplayer.de/cgi-bin....;t=6519 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=3;t=6519)

KevinSartori
2004-09-23, 21:47
hello.

awesome work adding ttf subtitle support! *thanks! *i still have a 4:3 tv and when i watch letterboxed movies, the subs are very legible when they appear in the black border. *on fullscreen movies, though, the subs are are more difficult to read that the old default "arial-iso-8859-1" subs. *the semi outline you added helps, but it would be nice if we could choose the thickness of the font outline. maybe "light", "medium" and "heavy", with "heavy" being like that old style default subs. *also, i wish that the yellow subtitles were "more" yellow, if you know what i mean. * :)

thanks again for all of your hard work,
kevin sartori

yuvalt
2004-09-24, 03:41
all requests and bugs must go through sf. we are working hard on fixing bugs toward xbmc 1.1, so please work with us.

thanks,

-yuval

gamepc
2004-09-24, 18:07
cvs 9-24 crash also

jmarshall
2004-09-24, 18:39
gamepc:

we appreciate the work you are doing hunting bugs, but we need you to do the following to help us fix these:

1. you must post bug reports on the xbmc sourceforge.net website here:

https://sourceforge.net/tracker/?group_id=87054&atid=581838

2. you need to make sure you state clearly the steps needed to reproduce the bug, and in the case of a crash, include the log file error messages etc.

3. for these font related issues, please also include either the font(s) that you use or links to where we can find the fonts. you may be able to upload these to sourceforge with your bug report.

thanks very much for helping us find and fix these bugs!

jonathan

Gamester17
2004-09-24, 18:43
we need you to do the following to help us fix these:

1. *you must post bug reports on the xbmc sourceforge.net website here:
https://sourceforge.net/tracker/?group_id=87054&atid=581838

2. *you need to make sure you state clearly the steps needed to reproduce the bug, and in the case of a crash, include the log file error messages etc.

3. *for these font related issues, please also include either the font(s) that you use or links to where we can find the fonts. *you may be able to upload these to sourceforge with your bug report.
1. http://www.xboxmediacenter.com/info_faq.htm#28
2. http://www.xboxmediacenter.com/info_faq.htm#27
3. http://www.xboxmediacenter.com/info_faq.htm#27

xena
2004-09-24, 21:12
i have the same problem... i used the arial based unicode font from windows and the xbox lag everytime there is a lot of chinese characters on the screen (traditional or simplified)

i can hear the xbox hard disk thrashing when there are lots of files listed on the screen.

i switched to a tsc unicode font (check alan wood's excellent page on the subject)... the file is smaller, and the lag is noticeably less.
it seems the japanese filename hv display problem
some of them cannot be display (dvdr/hdd)
and the remote control stop working when in my video/my files

yuvalt
2004-09-25, 02:38
1. please be more specific with your problem and open a problem in sourceforge (see above).
2. the remote control issues relate to the fact the displaying the ttf fonts takes more time hence remote events are lost. we are looking for a fix for this.

-yuval

KevinSartori
2004-09-25, 05:29
hello.

i added a formal bug report to sourceforge regarding ttf subtitle outline thickness and yellow subtitle vibrancy. i would have done this initially, but i thought this issue was in sort of a discussion phase here. i apologize.

Striker
2004-09-25, 15:59
tnx for posting to sf, i wnated to do it too cause i think the outline is not thick enough either.
on light backgrounds it looks rather bad, and the old fonts were much better too read.

yuvalt
2004-09-25, 16:18
jmarshall just committed a fix for this. please test.

-yuval

emefbiemef
2004-09-25, 18:44
i'm testing it now. so far, the patch works great, subs can be read at ease without straining eyes but there's another problem. in one mkv file i've tested on, the long part of the sub that should be displayed in two rows, appeared in just one row, making left and right part of the sub went off-screen. using normal mplayer fonts didn't contribute to this bug and worked fine as before. i'll continue testing more files to confirm whether it's mkv/ogm-wide or just on this one particular file.

jmarshall
2004-09-25, 20:21
that is possibly because you are using a too large a font.

i believe that mplayer may split the lines up, but i haven't looked into the mplayer code. it may be that mplayer is splitting it for us, but is using the wrong sized font to calculate the split perhaps. either that, or it isn't splitting them at all (more likely). note that strictly speaking, we shouldn't have to split fonts up as they should already be done in the file. ofcourse, they're designed for a certain sized font, and if you use a different size, then you get this problem.

i noticed this once using a size 36 font, but that was kinda overkill :p

please look at the particular sub in question and see just how many characters are being cut off.

thanks,
jonathan

emefbiemef
2004-09-25, 21:27
i was using arial font with size at 24 and bold setting. not too overkill, i hope? *:d about the sub, the portions (for both left and right side) that were being cut-off are quite large, since it was meant for multiple row (about 13 words in two rows). i'd say about 5-8 words or more.

jmarshall
2004-09-25, 22:49
can you send me this sub so i can examine?

pm me if you can

thanks,
jonathan

emefbiemef
2004-09-25, 23:42
i'd like to send, but the sub is in the mkv file, and i've tried to extract it using virtualdubmod without success. do you want to look at the whole file? it's 315mb in size.

edit: nevermind, successfully extracted the sub using mkvtoolnix. to where do i need to send it?

ezar2003
2004-09-26, 01:47
you can upload @ http://www.nightfalltech.com/upload

emefbiemef
2004-09-26, 02:29
sub uploaded. it's in ssa format.

AMDXP
2004-10-19, 11:28
great works guy!! thx for turning on the ttf support for sub.

i have tried the ttf support, it works fine with the ariluni.ttf font for chinese, but i just have one question, can anyone use this ttf to display unicode sub?

when i use ttf to plya srt sub, and it only shows chinese when the srt is saved in ansi. in other word, is xbmc not supporting unicode sub yet?

also is a bit laging while display long chinese sentance.
i am going to try if it does any better if i change the hd to a fast one.

thx again for the hard work!