-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DXVA2 #24
Comments
AFAIK you have to use EvrPresenter if you want to use DXVA2: compile the EvrPresenter from the source code and set the VideoRenderer property. |
Yes.. I forgot this issue, but I had already found the solution! So, I can leave here some steps to work with WPF-MediaKit: You can use DXVA Checker to see if your graphic card support DXVA and if you are using DXVA to render the video!! |
What happen if the video card has no DXVA and the EvrPrenter is used? Will be video still visible? I do not have a machine with such video card to test it. Thanks. |
The video will work well, but it will not use the GPU to render the video! You can test render a video with or without DXVA with the same graphic card. You just need to change the "Hardware Decoder to use" field to DXVA2 or NONE value on Lav Video Tool. The results of my tests are: Without DXVA
With DXVA
With VMR9 instead EVR:
My purpose is only to use GPU to render the video and leave CPU free to do other things! |
Thanks for the info. It's pity EVR without DXVA takes more CPU than VMR9. We distribute a public app and also want to use GPU if possible. But since DXVA is disabled by default and EVR takes more CPU then VMR9 without EVR, I think we keep using VMR9. |
Yes, make sense! I was searching how we can user DXVA automatically and I have 2 option:
If you have more option, please share with us :) |
LAV DXVA should be configurable at runtime, e.g. see |
I am also a newbie with this stuff.. I found that the WPF can use MediaElement to render videos. There is any reason to use WPF-MediaKit instead of MediaElement? |
MediaElement is very limited. With the WpfMediaKit you can control the video source at really low level. Sent from my HAL 9000 terminal. |
@ASantos007 closing this issue, if you need something more, reopen it, please. |
Hi all :)
I'm a little confused how the DXVA2 works!! I just need to run the Test Application inside WPFMediaKit solution or need I do some configuration to work whit DXVA2?
I am asking because when I play a video (4k) with WPFMediaKit application it is consuming more than 80% of CPU and just consume about 20% of GPU. I want to render the video with GPU not CPU and I can do that programmatically.
Anyone can help me please??
The text was updated successfully, but these errors were encountered: