[MPlayer-dev-eng] [PATCH] (not for CVS submission) opaque subtitles

Salvador Eduardo Tropea salvador at inti.gov.ar
Thu Jan 30 21:21:26 CET 2003


Pierre Lombard wrote:

>* Salvador Eduardo Tropea <salvador at inti.gov.ar> [2003-01-28 16:17]:
>  
>
>>For text subtitles I added -sub-bg-alpha and -sub-bg-color with these 
>>options you can get opaque subtitles, they can have any grayscale 
>>background. I personally use a traslucent black, but gray can be used too.
>>Is your patch for the same? Or is it for bitmap subtitles?
>>    
>>
>
>Bitmap subs. They were mainly tested with DVD subtitles.
>  
>
Then I think the best is to play a little bit with the subtitles 
palette. They are 4 colours, finding which one is/are the transparent 
background is quite easy, then you just need to replace them by the 
alpha and color indicated at the command line.
One detail is the size of the rectangle containing the subtitles. Last 
time I was playing with that code it didn´t reduce the rectangle to the 
minimal size and I added code for it, but I think that patch didn´t get 
in. The point is that some DVDs defines subtitles as bitmaps that uses 
the whole screen, so if mplayer doesn´t reduce the size of the rectangle 
you´ll paint the whole screen with gray ;-)
Tell me if you want to play with the idea I mentioned above, if not 
perhaps I´ll play with it.

SET

-- 
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set at computer.org set at ieee.org 
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013






More information about the MPlayer-dev-eng mailing list