[MPlayer-users] Disable mencoder hard sub transparrency/alpha blending

Nicolas George nicolas.george at normalesup.org
Fri Nov 4 08:34:21 CET 2011


Le quartidi 14 brumaire, an CCXX, Mikkel Georgsen a écrit :
> I cannot for the life of me figure out how to get hard subs without having
> transparency/alpha blending with mencoder.

There is no transparency with OSD subtitles (as opposed to EOSD/ASS
subtitles).

What there is is that: on some colorspaces, the glyphs are only overlaid on
the luminance channel, leaving the chrominance channel unchanged, and that
allows intense colors to bleed through.

> My base command is: mencoder -ovc lavc -lavcopts
> vcodec=mpeg2video:vqscale=3 -oac copy -sub /tmp/input.srt -of mpeg -o
> /tmp/output.mpg /tmp/input.mpeg
> 
> I've tried a plethora of different commands without any change to the
> transparency of the subtitle itself - #mplayer on Freenode suggested I
> tried here.

That is a bit ugly, but you can try to add:
-vf format=rgb,expand,format=yuv12
(approximately; you have to check the exact names of the colorspaces, and
add the option to expand to make it actually render the subtitles).

Regards,

-- 
  Nicolas George


More information about the MPlayer-users mailing list