[MPlayer-users] Video filter to slightly shift R, G and B

Yann Pomarede yann.pomarede_mplayer at gadz.org
Tue Apr 27 17:31:48 CEST 2010


Hello,

I have an LCD video-projector, and as on almost all video-projector,
the 3 matrix are not perfectly aligned (or maybe it is related to
optical diffraction ?) but there is a shift (less than 1 pixel)
between red, green and blue. The resulting effect can be seen on the
following photo:
http://www.gemibox.net/upload/rgb_shift.jpg

I'm used to Windows, and there are 2 ways to get rid of this problem:
either using Haali renderer that can shift cyan and magenta, or using
Media Player Classic and a custom Pixel Shader filter that do almost
the same (but with R, G and B) using the graphic card. An example of
pixel shader code to do this can be seen here:
http://pastebin.com/dMs33c99

I looked on Google but could not find any way to do this with mplayer?
Would it be difficult to develop a new filter?

Regards,
Yann Pomarede.


More information about the MPlayer-users mailing list