View Full Version : Blue-ray subtitle rendering DirectShow filter?
ar-jar
30th March 2009, 08:52
I haven't been able to find such a filter, i.e. a filter that decodes the sup (?) BD subtitle format into a bitmap that I can feed into a VMR9 pin to be properly mixed with the rest of the frame. In a running DirectShow graph / player. I have started to write my own filter and I've found some hints around here as to how the subtitles are coded. Seems also as if the Haali splitter outputs something on its subtitle pin every now and then when playing a Blue-ray m2ts file so it looks promising so far. But if somebody's already done it, I'd be just as happy to use what's already there.
Do you know of any such filter? Thanks! -A
Adub
30th March 2009, 22:01
No, unfortunately no such filter exists. Media Player Classic Home Cinema has support for bluray subtitles, but there is no VSFilter equivalent for Bluray subtitles. At least, not yet.
ar-jar
30th March 2009, 23:11
Ok, thanks for the info. I have started working on it and i have a stub transform filter receiving stuff from the Haali splitter. I now have to figure out how to parse that "stuff" and create bitmaps to input to the renderer. Cheers! -A
hubblec4
31st March 2009, 15:29
Media Player Classic Home Cinema has support for bluray subtitles...
hello
can you explain me what i have to do? settings, or a special renderer?
hubble
djloewen
1st April 2009, 01:45
ar-jar, if/when you get your DirectShow filter working, how difficult would it be to make an identical AVIsynth filter? Such a tool would be wonderful for making encodes of blu-ray discs. The only currently available options involve OCR'ing the subs or downconverting them to .IDX, neither of which is desirable.
ar-jar
2nd April 2009, 12:09
ar-jar, if/when you get your DirectShow filter working, how difficult would it be to make an identical AVIsynth filter? Such a tool would be wonderful for making encodes of blu-ray discs. The only currently available options involve OCR'ing the subs or downconverting them to .IDX, neither of which is desirable.
I'm not sure as of yet exactly how to implement the filter and even less how to integrate with AVIsynth. My plan is to try to create a bit-map out of whatever comes out of the splitter and just display that bitmap on a suitable place on the display. It would of course be relatively straightforward to "burn" it into the movie itself but I'm not sure you want to do that. An other way would be some sort of sub-picture stream but I'm not familiar at all with what possibilities the various container file formats provide for that. I'm still at a very early stage of experimenting. I do see that I get bytes out from the subtitle pin of the Haali splitter at irregular intervals which would indicate that there are indeed subtitles coming out there. I haven't yet looked at what those bytes mean. I'll let you know when (or if :-)) I make further progress.
kikker
6th April 2009, 16:48
Thanks for your efforts on this project! It will be great to have DS-based player able to playback HD subs in the vobsub format (.sub/.idx). I presume this is what you're working on?
What I'm a bit confused about however is, given that there are no players that can play this sub/idx format with HD video (I don't think there is at least), what is the use of the sup2sub apps as they relate to BD ripping?
I realize that .srt files, which are text based and generated by OCR, can easily be played, but this often results in inaccuracies. So, it would be great to have the native binary subs along with our backups. Thanks....
DigitalDeviant
10th April 2009, 19:33
MPC-HC does play back HD subtitles. Enable "autoload subtitles" in the options and select the subtitle stream from the navigation menu. I think you need VMR7/9 renderless or EVR CP renderers to display them.
hubblec4
10th April 2009, 21:47
MPC-HC does play back HD subtitles. Enable "autoload subtitles" in the options and select the subtitle stream from the navigation menu. I think you need VMR7/9 renderless or EVR CP renderers to display them.
thanks for helping, but i cant choose the subtitle in the navigation menu.
i have renamed the subtitle to the moviename. and the outputmodule to VMR9 renderless. but dont work.
mmhh...
hubble
DigitalDeviant
10th April 2009, 22:56
I don't think it works for external subtitles. Try muxing them into a .ts file.
saint-francis
11th April 2009, 01:00
I don't think it works for external subtitles. Try muxing them into a .ts file.
Yeah. I think actually m2ts only. It works really well though. It actually seems to detect and render BD subtitles better than any of the BD .sup tool out to date.
ar-jar
9th May 2009, 10:15
Back to trying to create a DS filter for rendering Blue-ray subtitles.
Somebody pointed at MPC as an example. I make a few observations when playing an m2ts Blue-ray file from original disc (using AnyDVD):
- When I build a graph with my own (so far) pretty empty subtitles filter connected to the (standalone) Haali splitter subtitle output pin, I don't get anything but GUID_NULL for a subtype from the splitter when selecting a subtitle stream of an m2ts Blue-ray file. The major type is set to MEDIATYPE_Subtitle which seems right.
- The subtitles filter in MPC seems to rely on that there actually is a subtype <> GUID_NULL set (what is there called MEDIASUBTYPE_HDMVSUB probably).
- When playing any of two different m2ts files (again from original discs) with MPC and selecting any subtitles, MPC hangs and I don't see any subtitles. Many around here say this is supposed to work. (I've filed a bug report that currently has prio 5.) This means that I can't really check what media subtype MPC uses.
A couple of questions thus:
- Is the Haali MS supposed to correctly demux an m2ts file and is it supposed to identify Blue-ray subtitles media subtype with anything but GUID_NULL?
- Does MPC have a built-in splitter that is supposed to handle this, if Haali isn't.
Thanks!
-A
ar-jar
9th May 2009, 19:00
I downloaded today's build of MPC and reset all old settings. When using the MPC internal splitter subtitles work fine now. When switching to the Haali splitter, they still don't. It seems that the MPC filters are also available as regular DS filters. I need to play around with them for a while to see if any combination can be be connected into a regular DS graph that shows subtitles. Subtitles is said to require a custom allocator presenter for the VMR9 ("renderless") though which implies that not all magic is in the DS filters alone... -A
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.