View Full Version : New, experimental matroska splitter
ChristianHJW
4th March 2004, 21:46
Hi,
Haali made a new, experimental matroska splitter :
http://haali.cs.msu.ru/fonts.html
This new splitter can load FONTS from matroska files, if they were attached to it. This will only work if you set the correct mime type for the FONTS when muxing them with mkvmerge/mmg, it is
application/x-truetype-font
This splitter will parse all attachements of a matroska file for this mime type, and then load them automatically for the embedded SSA subs of this file.
Its important to understand that the FONTS are only temporarily loaded for the playback, and not installed. As soon as the playback graph is closed, they are unloaded.
Have fun and report problems you find. If the build proves stable, it will become the next standard build ....
omion
4th March 2004, 23:22
Very nice idea...
But I noticed on the 'fonts' page you point to, the link for the splitter is to MatroskaSpilitter.ax when it should be MatroskaSplitter.ax. Note the spare 'i'. :D
I typed the URL manually, and will test the filter shortly...
EDIT:
Working just fine so far... Not breaking existing files, and loading the fonts just like it should.
Liisachan
5th March 2004, 06:40
Worked like charm!!!!! Really impressive. This is something :D
Unicode font (Japanese) tested too.
I know a lot of ppl will be delighted with this....especially (or maybe ONLY) fansubbers...
Will this be merged into Gabest's standard fileter in the end? I really hope so!
- The correct URL as of now:
http://haali.cs.msu.ru/MatroskaSplitter.ax
- Tip
Internal splitter should be disabled if tested with MPC
Affar
5th March 2004, 19:44
Hi
I've got a problem. The sample works perfectly and it loads the font without problems, but an hour after creating one by myself, i can't load this correctly even trying different fonts.
This is a little sample with this problem of not loading, let's see if someone knows what's wrong:
http://www.divxhouse.com/test/prueba_ssa.mkv
MKVMERGE: 0.8.5
kind regards
omion
6th March 2004, 11:29
Originally posted by Affar
Hi
I've got a problem. The sample works perfectly and it loads the font without problems, but an hour after creating one by myself, i can't load this correctly even trying different fonts.
Are you saying that the file doesn't load or the font doesn't load?
When I play your file on my computer, the file loads and the subtitles play, but the font isn't the one in the attachment. I messed around with a few things, and noticed that everything worked if I changed the 'Encoding' number in the subtitle file to 0. So change the line:
Style: Default,McKloud Storm,38,&H00ffff,0,0,&H333333,-1,0,1,1,1,2,30,30,30,0,128
to:
Style: Default,McKloud Storm,38,&H00ffff,0,0,&H333333,-1,0,1,1,1,2,30,30,30,0,0
(I assume you have a line that looks vaguely like that in your subtitles file. Simply change the last number to 0.)
I uploaded a re-muxed file to http://people.ucsc.edu/~rswilson/other/remixed.mkv.
I also put the edited subtitle file to http://people.ucsc.edu/~rswilson/other/subs-works.ssa, so you can see if it works when you make the mkv.
I have no idea what the 'Encoding' flag does; I just changed stuff until it worked. :p
Liisachan
6th March 2004, 13:11
128 means Shift_JIS (Japanese Charset)
If it is English or a W. European langauge, 0 is the correct value...
Affar
6th March 2004, 14:06
Perfect, now it works without problems and it seems it was quite a stupid error hehe.
Thank u very much!!!
P.D Great job Haali ;)
Palikrovol
11th March 2004, 01:22
Hello.
I think i have found an error in Haali's splitter (it last too much time loading a large - 700 MB - .mkv file. I have used MPC for testing)
Take a look at:
http://forum.doom9.org/showthread.php?s=&postid=456809#post456809
Liisachan
11th March 2004, 04:23
btw, for those who dont know it yet....
Halli's code is now "officially" merged into Gabest's splitter 1.0.2.2+
(tho, only in Unicode Release for Win2k/xp)
ac-chan123
11th March 2006, 15:07
@Liisachan:
Where is a list of value and the coorrespanding character set for this attribute? And have it any relation to the "at" sign befor the font name(which should also load the japanese part of fonts).
PS: Is there any relationship from you to this (http://www.faireal.net) site?
Liisachan
11th March 2006, 18:28
It's defined in Include/WinGDI.h in Platform SDK.
#define ANSI_CHARSET 0
#define DEFAULT_CHARSET 1
#define SYMBOL_CHARSET 2
#define SHIFTJIS_CHARSET 128
#define HANGEUL_CHARSET 129
#define HANGUL_CHARSET 129
#define GB2312_CHARSET 134
#define CHINESEBIG5_CHARSET 136
#define OEM_CHARSET 255
#if(WINVER >= 0x0400)
#define JOHAB_CHARSET 130
#define HEBREW_CHARSET 177
#define ARABIC_CHARSET 178
#define GREEK_CHARSET 161
#define TURKISH_CHARSET 162
#define VIETNAMESE_CHARSET 163
#define THAI_CHARSET 222
#define EASTEUROPE_CHARSET 238
#define RUSSIAN_CHARSET 204
#define MAC_CHARSET 77
#define BALTIC_CHARSET 186
These values are Windows-specific (that's why {\fe} in SSA is ignored on Linux), and some Windows API functions take one of these values as an argument. An example is fdwCharSet in CreateFont (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8fp0.asp).
As another note, Sabbu can't handle DEFAULT_CHARSET (1).
And, yes, I know that site. Um... do you read Japanese? We have one of celtic_druid's mirrors, on its subdomain.
EDIT
I forgot to answer about @-marked fonts. That thing is for vertical writing (http://forum.doom9.org/showthread.php?p=435001#post435001) (top-to-bottom).
ac-chan123
11th March 2006, 19:44
Thanks for the list of the encoding values and the "at" sign.
No, i can't read japanese. I know some Kanji(e.g. the one used in Ghibli Movie titles, some cities or Hon, go, numbers, ...) and the kanas but that is all.
On the german Doom9/Gleitz Forum i started a list of subtile Programms. It's in german, but the name and links can be understud without german knowledg ;-)
http://forum.gleitz.info/showthread.php?t=26487
LeMoi
13th March 2006, 01:10
Two years later ? why don't you use Haali splitter's official topic :p
ac-chan123
13th March 2006, 07:10
Because it is nothing of haali. It was about a ssa issus that was here talkt about.:sly: :D
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.