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 »

Geo650, please avoid using imageshack.
They filter images for domains and sourceforge.net is not registered.
Only Imageshack members could see the pictures.
Thanks
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Re: DVB-T stream with subtitles

Post by moras86 »

geo650 wrote:My investigation:
Conclusion: These subtitles are stored in bitmaps only.
[...]
There are no visible text-encoded subtitles in that file. It's a pity.
But I hope, we know more about DVB subtitles now.
Thanks for this research.
But now we must go back. We got 4 fonts files inside TV (2x .ttf - True Type and 2x .pfr).
After hex view .pfr files (they are very small - 42,7 KB & 17 KB) i found text Tiresias Screenfont v7.51
Sites about it: Wiki says that font type is using in DVB-T but only in UK and DVB-S (Sky Digital for UK/Ireland).
Could anyone record sample file with subtitles from UK :?:

___

BTW
I got small idea for better readable subtitles look in Media Player.
geo650, you method for draw images on screen works perfect with 'standard' TV OSD. You images are show behind TV OSD.
So maybe use this method for draw half-transparent black box on screen bottom (at the same place so text shown).
This box can be show/hide using SUBT. button on remote.
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)
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: subtitles font

Post by geo650 »

@erdem_ua: thread's images have been moved to another server.
moras86 wrote:geo650, you method for draw images on screen works perfect with 'standard' TV OSD. You images are show behind TV OSD.
So maybe use this method for draw half-transparent black box on screen bottom (at the same place so text shown).
This box can be show/hide using SUBT. button on remote.
Good idea, but I suppose my functions use the same plane as subtitles. We need to make some tests.

LATER:

Moras86, your idea has been realized. At least for MediaPlay subtitles.
I made an application which places black rectangles under subtitle texts. It is not very smart but works in my TV.

You can download this app here:
http://sourceforge.net/projects/samygo/ ... p/download
(Outliner 0.1)
or
http://sourceforge.net/projects/samygo/ ... p/download
(Outliner 0.1 alternative version - with different framebuffer address)

May not work properly on some devices. Uses hardcoded framebuffer address. Source code is also available.
http://sourceforge.net/projects/samygo/ ... p/download
(I have uploading error again and clearing cookies doesn't help... so I couldn't upload to Source subfolder...)
(Outliner 0.1 source code)
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Re: subtitles font

Post by moras86 »

Thanks geo650

You application is a much better than my idea :)

After fast test I notice some things:
- Outliner show background rectangle moved something about 50-100px in left direction (reference subtitles)
- Alternative Version of Outliner show perfect fit background
- background is showing at same time so subtitles but sometimes blink (once or twice)
- some OSD element (Volume circle, Info bar...) also force show background

For me background should be little more visible (less transparent).
If I'm right it's only one parameter (AA) to change in outline.h source:

Code: Select all

#define BKG_COLOR		((Uint32)(0x80000000L))		// AARRGGBB color of background bar
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)
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: subtitles font

Post by geo650 »

moras86 wrote:- Outliner show background rectangle moved something about 50-100px in left direction (reference subtitles)
- Alternative Version of Outliner show perfect fit background
I hoped it will work for you. That's exactly the same problem like in ScreenCap application. Can somebody explain why these pixel-shifts occur? Or how to get valid framebuffer address from system? BTW, I wonder also how to get surface resolution for DVB subtitles - as it can be different than FullHD/2.
moras86 wrote:- background is showing at same time so subtitles but sometimes blink (once or twice)
I've noticed this effect as well. Can anybody explain why it happens? I think, there is better method for running background tasks in linux (than creating a thread with endless loop).
moras86 wrote:- some OSD element (Volume circle, Info bar...) also force show background
Yes, this is normal in such algorithm. It looks for non-empty areas and paints black rectangles below them.
moras86 wrote:For me background should be little more visible (less transparent).
If I'm right it's only one parameter (AA) to change in outline.h source:

Code: Select all

#define BKG_COLOR		((Uint32)(0x80000000L))		// AARRGGBB color of background bar
You're right. This constant value defines black bar transparency (and colour). It can be changed. First, it was set to E0... but it was too dark.

Both values - pixel shift and BKG_COLOR will be set by INI file. Next version is coming (don't expect too much, though)... :D
Thank you for testing.
gchirtoaca
Posts: 36
Joined: Wed May 05, 2010 9:31 pm
Location: Bucharest, Romania
Contact:

Re: subtitles font

Post by gchirtoaca »

Hi,

Great work guys, I'm looking forward to this.

Now that we are able to alter the subtitle aspect, is there any chance of adding the feature of displaying internal MKV text subtitles (or even bitmap subtitles too) in the TV Media Player? I'm thinking of something like, instead of looking for an external subtitle file (sub, txt, srt), read that file from the MKV file, which most of the time contains text formated subtitles.

Thanks.
Samsung LE37B653T5PXZG, T-CHLCIPDEUC 2008.2 firmware, Advanced Mode Patch
steve-austin
Posts: 79
Joined: Tue Oct 20, 2009 8:04 pm

Re: subtitles font

Post by steve-austin »

Works like a charm with the "normal" version on my B650T2W.

Really great with TV shows or films with hardcoded subtitles down.
55B650 and 37B650 with patched firmware
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: subtitles font

Post by geo650 »

Here you are: Outliner 0.2 with two methods of text enrichment (black bars and shadows), and configurable through INI file:
http://sourceforge.net/projects/samygo/ ... p/download
gchirtoaca wrote:...is there any chance of adding the feature of displaying internal MKV text subtitles...?
I think it is possible, but requires very hard work. Sorry, please don't count on me.


BTW, you'll see my tool for teletext subtitles in a few weeks, I hope. Testing phase continues...
aquadran
Posts: 264
Joined: Fri Oct 16, 2009 9:35 pm
Location: Poland

Re: subtitles font

Post by aquadran »

geo650 wrote:Here you are: Outliner 0.2 with two methods of text enrichment (black bars and shadows), and configurable through INI file:
http://sourceforge.net/projects/samygo/ ... p/download
gchirtoaca wrote:...is there any chance of adding the feature of displaying internal MKV text subtitles...?
I think it is possible, but requires very hard work. Sorry, please don't count on me.


BTW, you'll see my tool for teletext subtitles in a few weeks, I hope. Testing phase continues...
great work !

can you post sources for that version ?

Post Reply

Return to “[B] Firmware”