cr333
cr333

Reputation: 1625

Video overlay on Windows (using C#?)

I am working on a video processing library in C# and would like to display videos on Windows XP up. For this purpose, I currently use a custom double-buffered UserControl with overridden OnPaint that uses Graphics.DrawImageUnscaled. This works okay, but is not ideal.

Therefore I would like to implement a video display using hardware overlay, like so many other video players.

How do I do this? In C#? Or C/C++?

Any help is appreciated.

Upvotes: 1

Views: 4145

Answers (3)

cr333
cr333

Reputation: 1625

I ended up using OpenGL via the excellent OpenTK library which works on Windows, Linux and Mac OS X. In effect, I copy frames into a texture which is then mapped onto a quad that fills out the entire viewport. Works like an ace.

Thanks for all your suggestions,

Christian.

Upvotes: 2

Sebastian Gray
Sebastian Gray

Reputation: 2694

Have you looked at using WPF and the MediaElement Class?

Upvotes: 1

Keltex
Keltex

Reputation: 26426

Have you considered using DirectShow? Here's an example.

Upvotes: 0

Related Questions