OFVideoPlayer and Alpha

Hey all,

I’d like to implement an animation in my program that has an irregular shape (i.e. non-rectangular) and I am looking to make the white section surrounding the animation be fully transparent. Is there a way, within OFVideoPlayer to implement alpha or at least apply a mask on the shape of the video I’d like to display?


hey there,

a while back there was a video player that supported alpha posted:

the source is still up at:

You’ll need to use the Animation codec to get alpha videos, which can be pretty bad for performance.

Alternatively you can create two videos, one that is your main content and then another that is a mask. and combine them using the shader from example:

Hope this helps!