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: 3100
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: subtitles font

Post by erdem_ua » Mon Jan 10, 2011 7:41 pm

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

User avatar
moras86
Official SamyGO Developer
Posts: 179
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Re: subtitles font

Post by moras86 » Sat Mar 12, 2011 2:09 pm

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: 3100
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: subtitles font

Post by erdem_ua » Sat Mar 12, 2011 9:53 pm

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 » Thu Mar 17, 2011 3:29 am

I'll follow this post ;-)

User avatar
geo650
Official SamyGO Developer
Posts: 302
Joined: Wed Oct 07, 2009 12:03 pm

Re: subtitles font

Post by geo650 » Tue Apr 12, 2011 9:40 am

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 » Sat Apr 16, 2011 11:26 am

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.

User avatar
moras86
Official SamyGO Developer
Posts: 179
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

DVB-T stream with subtitles

Post by moras86 » Sun Apr 17, 2011 9:05 am

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: 3100
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: subtitles font

Post by erdem_ua » Sun Apr 17, 2011 12:27 pm

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?

User avatar
geo650
Official SamyGO Developer
Posts: 302
Joined: Wed Oct 07, 2009 12:03 pm

Re: DVB-T stream with subtitles

Post by geo650 » Sun Apr 17, 2011 1:08 pm

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”