I have an MKV with ASS subtitles and fonts embedded. If I play it in, eg MPC, it displays the subs perfectly, in the correct fonts.
If I use Avisynth and Textsub to display the ASS sub (extracted from the MKV); it uses a default font, probably Arial.
However, if I open the MKV at the same time and pause it, then when I play the AVS file it uses the correct fonts.Code:FFmpegSource2("Zipang_01.mkv",atrack=2) TextSub("Zipang_01_Track5.ass") # hardsub text info
So evidently Haali media splitter (which icon pops up when playing the MKV in MPC) temporarily installs the fonts.
Is there a way to get Haali (or another utility) to just install the fonts from an MKV, without having to play the video, so other programs can use them correctly?
I could extract all the fonts and install them permanently in Windows, but I'd prefer an on demand method, so I don't load up my font menus with a lot of weird fonts I don't need otherwise.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
Maybe if you used DirectShowSource() instead, and have haali set up as the default mkv splitter ?
-
Yes, that worked.
Though I prefer to use ffmpegsource2.
I tried to have it both ways, load DSS and overwrite it:
Code:DirectShowSource("Zipang_01.mkv") FFmpegSource2("Zipang_01.mkv",atrack=2) TextSub("Zipang_01_Track5.ass")
Seems Avisynth is too efficient and doesn't keep processes running after they've been superseded.
I can also manually extract and install the fonts, but there are 14 of them in this MKV. It would be a drag, and error prone, to have to do that for any random MKV.
So, unless some other trick comes to mind looks like I need to render with DSS to get at the fonts. -
maybe you can load one section with dss then trim it out ? Does it "stay loaded" ?
a=directshowsource()
b=ffvideosource
a++b
Trim(100,1000) #or whatever
or how does DSS2() work with the fonts ? -
Code:
FFmpegSource2("Zipang_01.mkv",atrack=2) ++DirectShowSource("Zipang_01.mkv").AssumeFPS("ntsc_film") TextSub("Zipang_01_Track5.ass") # hardsub text info Trim(0,34070)
Yep, this loads the fonts.
And I was doing the Trim anyway.
This is the best kludge so far.
I'd never used DSS2. I installed it (just the avss.dll from the Haali folder, right) and ran it:
Code:DSS2("Zipang_01.mkv") TextSub("Zipang_01_Track5.ass") # hardsub text info
But you may notice that I was using an alternate audio stream, which I can access in ffmpegsource2.
You can't do that in DirectShowSource, don't know if I can in DSS2 -- I can't find any documentation for DSS2.
Absolutely nothing at http://haali.su/mkv/
Nothing at http://avisynth.org
Any links to DSS2 docs?
Though I suspect you can't script selecting audiotracks in it.
The first script above works well enough, just curious about DSS2.
EDIT: On checking, it appears that DSS2 doesn't supply ANY audio...
So I won't be using it much, one of the main reasons I use DirectShowSource is it copes with audio better than AviSource, which sometimes just drops several minutes at the end of a video. Nasty if you didn't notice till after you've discarded the source.Last edited by AlanHK; 17th Nov 2010 at 00:47.
Similar Threads
-
MKV to hardsub AVI with fonts
By panguboy in forum SubtitleReplies: 4Last Post: 18th Jan 2011, 11:29 -
MKV with subtitles and fonts attached to ipod touch format?
By EwanG in forum Video ConversionReplies: 4Last Post: 19th Mar 2009, 17:27 -
Installing Fonts,TimesNewRoman, Arial,Verdana in OpenOffice 2.4.1 in Linux
By retroborg in forum ComputerReplies: 9Last Post: 13th Oct 2008, 12:56 -
Converting .MKV to DVD with multiple sub fonts
By Akagi Shigeru in forum Authoring (DVD)Replies: 1Last Post: 21st Oct 2007, 03:53 -
.MKV to DVD w/ multiple sub fonts
By Akagi Shigeru in forum Video ConversionReplies: 1Last Post: 21st Oct 2007, 00:30