Page 1 of 1

Subtitle dshow filter for H+

Posted: 31 Jan 2005 22:23
by fafilberg
Hi, I'm developing a DShow filter to use with the H+.
The idea is read a plain file where lie all data I want and send to the subpicture input pin of the H+, my problem is that I dont know how can I convert plain text type to SUBTYPE_DVD_SUBPICTURE type, this is just what is missing, so I need help becouse I'm very close.
I've red that VLC has an algoritm for this translation, so anyone can help with this please?

Posted: 01 Feb 2005 09:33
by Sigmund
VLC do not have this conversion. Basically what is needed for this conversion is the following:
1: Render the text into an offscreen picture buffer
2: Convert buffer to YUV with alpha channel
3: Reduce the number of colors to 4
4: replace the buffer with palette indexes for each of these 4 colors
5: RLE encode this according to the dvd subpicture unit standard.

Point 1-4 could probably be done in one pass.

Btw vlc is not dshow based, so you are not likely to get dshow related help here.