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 video playback in CPU format, as well as rendering Direct3D / DirectDraw video in C ++ programming.

I tried Direct2D (with WindowsAPICodePack) to render the video, and as a result the processor consumption is quite low, but the problem is that I do not have the ability to render the video, since there is no exact timer for updating the video at the exact time, for example, DirectX in C + +.

Perhaps I need to return to the C ++ world in order to use Direct3D natively and host C ++ with the DirectX window in the C # WPF window. Despite the fact that I do not know what will happen to this, it may be worth a try, I think.

If you have any tips please let me know.

+4
source share
1 answer

You can try writing a small XNA video rendering application and paste this into your winform

+1
source

Source: https://habr.com/ru/post/1338041/


All Articles