Page 1 of 1

subtitle partial error coding with vlc

Posted: 29 Apr 2012 03:54
by tency_lyy
I'm a chinese, so sorry for my poor english.

I usually use vlc to view my video, but with the subtitle, it displayed like below:

Image

how can fix this ? help me, please~

--------------------------------------------------------------------
update : remove download links, sorry.

Re: subtitle partial error coding with vlc

Posted: 29 Apr 2012 04:27
by nkoriyama
Please don't write the torrent link.

Re: subtitle partial error coding with vlc

Posted: 29 Apr 2012 11:06
by tency_lyy
remove download links, sorry

Re: subtitle partial error coding with vlc

Posted: 29 Apr 2012 15:09
by nkoriyama
Thank you for removing the link.

The MKV file doesn't contain some embedded font, right?

I saw the same glyph(square + "字") before I modified freetype renderer.
https://trac.videolan.org/vlc/attachmen ... eerype.png it should be displayed as "音量50%".
I think this issue is the same as ticket 5491.

SSA/ASS subtitles codec seems to use the external fonts only in the /System/Library/Fonts.

Re: subtitle partial error coding with vlc

Posted: 29 Apr 2012 19:53
by tency_lyy
thank you for answering.

yes, may be the same as ticket 5491. in ticket 5491, the error was "All the text on the video window are garbled.", but my issue is parital text are garbled.

I downloaded all fonts , and installed them by system internal app "font".

My own chinese fonts has been installed in the /Users/user_name/Library/Fonts. If ssa/ass subtitles codec can not use those external fonts, Is it a bug?

Re: subtitle partial error coding with vlc

Posted: 30 Apr 2012 11:44
by nkoriyama
Normally user fonts are installed to /Users/usename/Library/Fonts.
But because of fontconfig library installation problem, fontconfig searches fonts only under the folder /System/Library/Fonts by default.
At the moment, if you copy the font to /System/Library/Fonts, the subtitles will be shown properly, maybe.

This issue happens only on SSA/ASS codec. It does not happen on other external subtitles (e.g. SubRIp SRT) and OSD, because it has been fixed on freetype renderer long before(ticket 5491).
On the ticket 5491, I provided several solutions and finally the frertype renderer was fixed.
But I didn't notice the same problem hiding on SSA/ASS codec at that time.
Both freetype renderer and SSA/ASS codec use the same fontconfig library.
So, we have to fix this problem on SSA/ASS codec, similarly.

Re: subtitle partial error coding with vlc

Posted: 30 Apr 2012 14:07
by tency_lyy
Thank you for your great work! I'm waiting for your fix.