GNOME Bugzilla – Bug 603938
assrender cannot load font attachments in Matroska container
Last modified: 2009-12-07 17:32:43 UTC
Currently, assrender requires fonts to be installed on a system or in the same directory as the video in order for styled subtitles to render properly. Many anime-related videos that make use of the Matroska container have fonts muxed in as attachments. assrender should be able to load these fonts.
Could you attach a small sample with embedded fonts?
Created attachment 149231 [details] MKV with embedded fonts
Created attachment 149232 [details] MKV with embedded fonts - required fonts manually extracted and placed in directory
Well, without having a sample file with embedded fonts I can't work on this :) I have no idea how the embedded fonts are represented in Matroska. But one idea to support this automatically would be by adding the fonts to the codec data as additional buffers after the first.
Actually this is already done in a similar way... should be easy to find the reason why it doesn't work here with the help of the sample ;)
*** Bug 575879 has been marked as a duplicate of this bug. ***
Maybe this fixed it already: commit ebc1f45f38a9d461464dbce1d5314f9ca710457d Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Mon Dec 7 13:40:56 2009 +0100 assrender: Extract embedded fonts from the subtitle streams if requested If not it might help also if you could give me the font attachment filename and mimetype.
The commit didn't seem to fix the issue. Font mimetype is application/x-truetype-font Common filetypes are probably case sensitive and include TTF, ttf, otf
(In reply to comment #8) > The commit didn't seem to fix the issue. > > Font mimetype is application/x-truetype-font > > Common filetypes are probably case sensitive and include TTF, ttf, otf Ok, the mimetype is fine then. For this file, do the embedded fonts have a filename?
Yes. The files each have an alphanumeric filename (underscores too). Also, here's the sample file. It is 90 seconds long and calls about 20 different embedded fonts. http://rapidshare.com/files/317610440/zan-sayonara-zetsubou-sensei-opening-all-fonts.mkv.html
Alternate link: http://www.megaupload.com/?d=TVFH66Q3
commit d06e9c40e648a627b5b7c5b86c171bf84340530b Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Mon Dec 7 18:30:05 2009 +0100 assrender: Improve embedded font usage For this add some new mimetypes and also check the filename extension. Fixes bug #603938.