Page 3 of 7

Re: subtitles font

Posted: Sun Apr 17, 2011 6:54 pm
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

Re: DVB-T stream with subtitles

Posted: Sun Apr 17, 2011 8:34 pm
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.

Re: subtitles font

Posted: Sun May 22, 2011 6:47 pm
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)

Re: subtitles font

Posted: Mon May 23, 2011 3:45 pm
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

Re: subtitles font

Posted: Mon May 23, 2011 9:33 pm
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.

Re: subtitles font

Posted: Tue May 24, 2011 2:01 pm
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.

Re: subtitles font

Posted: Tue May 24, 2011 5:31 pm
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.

Re: subtitles font

Posted: Tue May 24, 2011 6:21 pm
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...

Re: subtitles font

Posted: Wed May 25, 2011 6:11 am
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 ?