Page 2 of 7

Re: subtitles font

Posted: Mon Jan 10, 2011 7:41 pm
by erdem_ua
It not' related with fonts. They doesn't have the "shadow" but it's view functions. We could use that function for showing subtitles instead of original media player one, some day..

Re: subtitles font

Posted: Sat Mar 12, 2011 2:09 pm
by moras86
Yesterday I saw DVB-T subtitles first time and they really look better than this from Media Player. I make screenshot:

Image

Re: subtitles font

Posted: Sat Mar 12, 2011 9:53 pm
by erdem_ua
I think it's relatively easy hack to use DTV subtitle routines instead of media players one. Just change of function adresses might do the job.
Unfortunatelly I am bussy for a while.
Can't dive under IDA.

Re: subtitles font

Posted: Thu Mar 17, 2011 3:29 am
by tgrassi
I'll follow this post ;-)

Re: subtitles font

Posted: Tue Apr 12, 2011 9:40 am
by geo650
I am not sure you can use DVB functions for MediaPlay subtitles. I believe most DVB subtitles are transmitted as bitmaps, not text. DVB standard defines also 'code based' standard but I don't think it is used because of problems with font generators at viewer's side. Like on DVD-Video discs, subtitles are transmitted in small bitmaps.

I'd like to know if I am right, so maybe anybody could check this by recording subtitled stream and look for texts or bitmaps inside TS file ? (if subtitle stream is recorded at all)
It would be great to get DVB subtitles to memory or separate file (if transmitted as text), but this is the something completely different. :)

Re: subtitles font

Posted: Sat Apr 16, 2011 11:26 am
by jw1001
I demultiplexed a DVB-T subtitle stream from a UK BBC channel and could not see any text in the hex viewer, so I guess it must be bitmapped. I have noticed some European DVB-S satellite channels use Videotext for subtitles - that might be different, but I don't have a sample here.

DVB-T stream with subtitles

Posted: Sun Apr 17, 2011 9:05 am
by moras86
Simple record with subtitles for analyze:
http://www.sendspace.com/file/lel61x

Re: subtitles font

Posted: Sun Apr 17, 2011 12:27 pm
by erdem_ua
Does it possible/logical to create an application that generates subtitle textures and show it on screen with SDL since we have overlay tools?
Doesn't them work while playing movie from player?

Re: DVB-T stream with subtitles

Posted: Sun Apr 17, 2011 1:08 pm
by geo650
moras86 wrote:Simple record with subtitles for analyze:
http://www.sendspace.com/file/lel61x
Thanks for this sample.
My investigation:
Conclusion: These subtitles are stored in bitmaps only.

How did I analyze it?
First, I took TS Doctor utility to check what streams we have. Here is the result:

Image

As you can see, there is one subtitle stream. So I filtered this stream to a separate file (ca. 25KB).

Then I demuxed SUB using ProjectX,

Code: Select all

++> Subpicture: PID 0x01FA / PesID 0xBD / SubID 0x20 :
-> selected DVB subpicture color model: (0) 4 colors ; fixed to page id: 
-> Subpicture PTS: first packet 12:16:14.397, last packet 12:16:26.437
-> adjusting subpicture at its own timeline
-> source is DVB Subtitle...
4 subpictures written...
(a piece of output log file)

then used VOBsub utilities to check what is inside. Here are the results - four individual subtitles found:

Image

After extracting subtitle #2 (Save as Scenarist SST/BMP):

Image

There are no visible text-encoded subtitles in that file. It's a pity.
But I hope, we know more about DVB subtitles now.