Aki24x
Aki24x

Reputation: 1068

Smooth Video Rendering in C#

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.

Upvotes: 4

Views: 3414

Answers (1)

Adrian Grigore
Adrian Grigore

Reputation: 33318

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

Upvotes: 1

Related Questions