[MPlayer-users] ASS and video scaling order. How to make subtitles to be rendered after the video is scaled.

Nicolas George nicolas.george at normalesup.org
Sat Nov 22 18:34:03 CET 2008


Le duodi 2 frimaire, an CCXVII, Kazuo Teramoto a écrit :
> When I watch subbed videos I use the ass filter to render then, but
> the results don't look good on my screen (res. 1280x768) looks like
> that ass filter render the subtitles before mplayer scale then, so
> that subtitles is scaled to. So I usually use -vf scale=1280:-2 to
> solve this, but I think this is not good as I'm sw scaling and not hw
> scaling with xv.

Hardware scaling using XVideo is done at the very end by the video card,
nothing can be added or removed after it has been done. In fact, with most
XVideo adapters, the video itself is not even present in the frame buffer,
only a solid color (the color key).

The consequence is that it is not possible to add subtitles after the
scaling when using XVideo.

If you want to avoid software scaling (but if your CPU is fast enough, I do
not see any reason) and still add subtitles at screen resolution, you must
use GL output.

Note that using GL output may lead to some tearing; with the Intel video
adapters for example (although if you did not configure anything, you would
be using the textured XVideo adapter rather than the overlay one, and
experience the very same tearing).

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20081122/f37bd5a9/attachment.pgp>


More information about the MPlayer-users mailing list