subtitles font

Here is information about customize your B series firmware..:!:This forum is NOT FOR USER questions or problems but DEVELOPER.

User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: subtitles font

Post 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..
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Re: subtitles font

Post by moras86 »

Yesterday I saw DVB-T subtitles first time and they really look better than this from Media Player. I make screenshot:

Image
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: subtitles font

Post 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.
tgrassi
Posts: 20
Joined: Mon May 03, 2010 6:40 am
Location: Buenos Aires, Argentina

Re: subtitles font

Post by tgrassi »

I'll follow this post ;-)
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: subtitles font

Post 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. :)
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: subtitles font

Post 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.
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

DVB-T stream with subtitles

Post by moras86 »

Simple record with subtitles for analyze:
http://www.sendspace.com/file/lel61x
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: subtitles font

Post 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?
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: DVB-T stream with subtitles

Post 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.

Post Reply

Return to “[B] Firmware”