Re: [vdr] OSD and subtitles trouble

2013-11-10 Thread Sami Ketola
On Sat, 9 Nov 2013 13:59:51 +0200
Marko Mäkelä marko.mak...@iki.fi wrote:

 Were you able to test the other problem (the OSD menu becomes fully 
 transparent and then normal again when subtitles would want to update 
 the OSD)? I can provide a short recording if needed. I guess that these 
 bitmap-based subtitles are not too widespread functionality. Even here 
 in Finland, only the state-owned YLE is using them; the commercial 
 broadcasters are burning the subtitles into the video layer.

This is not entirely true. All broadcasters in Finland are using DVB
subtitles except Nelonen Media on all their channels and MTV Media 
on Sub channel. Yes even MTV3 seems to be DVB subtitled now.

Sami

-- 
Sami Ketola sami.ket...@iki.fi

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OSD and subtitles trouble

2013-11-10 Thread Marko Mäkelä

On Sun, Nov 10, 2013 at 04:44:44PM +0200, Sami Ketola wrote:
This is not entirely true. All broadcasters in Finland are using DVB 
subtitles except Nelonen Media on all their channels and MTV Media on 
Sub channel. Yes even MTV3 seems to be DVB subtitled now.


I must admit that I do not watch TV that much, except now when debugging 
softdevice. :) I was not aware of these very welcome news.


However, I am still seeing burned subtitles on the commercial DVB-T 
channels, for example in the currently active MTV3 program 
Selviytyjät.


Marko

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OSD and subtitles trouble

2013-11-10 Thread Antti Hartikainen
On Sun, Nov 10, 2013 at 09:34:12PM +0200, Marko Mäkelä wrote:
 On Sun, Nov 10, 2013 at 04:44:44PM +0200, Sami Ketola wrote:
 This is not entirely true. All broadcasters in Finland are using DVB 
 subtitles except Nelonen Media on all their channels and MTV Media on 
 Sub channel. Yes even MTV3 seems to be DVB subtitled now.
 
 I must admit that I do not watch TV that much, except now when debugging 
 softdevice. :) I was not aware of these very welcome news.
 
 However, I am still seeing burned subtitles on the commercial DVB-T 
 channels, for example in the currently active MTV3 program 
 Selviytyjät.
 

Programs spoken in finnish, MTV3 has an option for DVB subtitles in finnish.

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OSD and subtitles trouble

2013-11-09 Thread Klaus Schmidinger

On 09.11.2013 00:57, Marko Mäkelä wrote:

...
If I set the OSD size to 100% height, then VDR will never clear the very bottom 
lines at the screen. If I set it to 99% height, everything will be erased 
properly when I leave the main menu, or the program info at the bottom of the 
screen is cleared. If I set it to 99% height and 1% vertical offset,
the garbage will appear again. My current understanding is that it is VDR 2.0.4 
that fails to post a proper draw request to clear the bottom of the screen.


I just tried this on my VDR with a TT S2-6400 and there was no such problem.
I assume that this is related to the softdevice OSD implementation and not
the core VDR.

Klaus

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OSD and subtitles trouble

2013-11-09 Thread Marko Mäkelä

On Sat, Nov 09, 2013 at 11:36:55AM +0100, Klaus Schmidinger wrote:
I just tried this on my VDR with a TT S2-6400 and there was no such 
problem. I assume that this is related to the softdevice OSD 
implementation and not the core VDR.


Thank you for testing, Klaus!

Were you able to test the other problem (the OSD menu becomes fully 
transparent and then normal again when subtitles would want to update 
the OSD)? I can provide a short recording if needed. I guess that these 
bitmap-based subtitles are not too widespread functionality. Even here 
in Finland, only the state-owned YLE is using them; the commercial 
broadcasters are burning the subtitles into the video layer.


In any case, these are very minor problems now; I have an acceptable 
workaround for both. I just thought that I would go the last mile and 
polish a bit more, to prepare for a proper release of softdevice.


While I now understand the VDR and softdevice OSD implementation a 
little better, I still do not fully understand it. Currently, it is a 
bit of a mystery for me what happens when the OSD is closed and the 
screen is cleared. In osd.c I understood that there could be a 
transparent background pixmap whose relevant part would be invalidated 
when upper-layer pixmaps or bitmaps get removed. But, will this also 
happen when the whole OSD is closed, or only for closing individual 
windows?


Based on the SoftOsd.c debug output and some gdb sessions, it seems to 
me that the cSoftOsd object gets created and destroyed repeatedly, maybe 
every time something is displayed and then hidden again. Is this the 
correct object life cycle? Is there some wiki page or other 
documentation than the source code?


Best regards and thank you for the great work,

Marko

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] OSD and subtitles trouble

2013-11-09 Thread Marko Mäkelä

Hi Klaus,

I have no such problem here. If I open the menu of the channel/progress 
display while subtitles are active, no subtitles are displayed while 
the menu is open and they continue to be displayed once the menu has 
been closed again.


OK. The only difference that I am seeing (after disabling the 
dirty_lines[] optimization) that the OSD menu will disappear for less 
than half a second when the subtitles would want to do something. The 
menu would reappear again, and no subtitles are displayed until I close 
the OSD menu. As soon as I close the OSD menu, the subtitles (if any are 
active at that time) would be displayed immediately.


burning the subtitles into the video layer is probably the worst idea 
ever.


I fully agree. I guess that the commercial broadcasters try to avoid 
leaking too much metadata. Or they are just lazy, such as never 
showing the episode number of name of a series in the EPG data. If they 
sent proper subtitles and VPS signals and what not, then commercial 
breaks could be detected easier, without having to decompress and 
interpret the video stream. (Well, I guess there are VDR plugins for 
this; another reason to use VDR instead of some proprietary product.)


Also the state-owned broadcaster YLE is bending the rules a little.  
There usually is a Dutch language audio track that contains the 
original audio mixed with a speech synthesizer that is reading the 
Finnish subtitles. More recently, they have started to introduce Dutch 
language subtitles that actually are Finnish transcript of the Finnish 
audio track for the hearing impaired.


In any case, this is good service: The same video broadcast can serve 
all audiences. For example, a program that has original audio in N 
languages can be sent with N+M audio tracks and N+M sets of subtitles.  
In the times of the analog TV, the program could be sent in 2 channels, 
once in Swedish and once in Finnish, and that is it.



When the whole OSD is closed, ther is nothing that gets displayed.


OK, I think I will have to check what is happening around cOsd::~cOsd().  
It could be that Softdevice is simply clearing the OSD layer at wrong 
points of the object lifecycle, in a way that happens to work for 
everything else than subtitles.


Best regards,

Marko

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr