Pergunta

I am trying to find a way to render video in WPF with lower CPU usage than MediaElement. The goal is smooth and low CPU video playback as much as Direct3D/DirectDraw video rendering in C++ programming.

I tried Direct2D(with WindowsAPICodePack) to render video, and the result is CPU usage is pretty low, but the problem is that I have no way to render video smoothly since there's no accurate timer to update video at exact time like DirectX in C++.

Maybe I need to go back to C++ world to use Direct3D natively and hosting C++ with DirectX window in C# WPF window. Even though I don't know what will happen with that, it may worth to try, I guess.

If you guys have any advise, please let me know.

Foi útil?

Solução

You could try writing a small XNA app to render the video and embed that into your winform

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top