Giter Site home page Giter Site logo

Comments (5)

mofo7777 avatar mofo7777 commented on May 29, 2024

Hello.

From the doc : DXVAHD_CreateDevice :

E_NOINTERFACE : The Direct3D device does not support DXVA-HD.

It seems your GPU does not support DXVA-HD. A workaround could be to use IDirectXVideoProcessor instead of IDXVAHD_VideoProcessor :

DXVA Video Processing

What's your GPU ?

from h264dxva2decoder.

smourier avatar smourier commented on May 29, 2024

Indeed, it's an AMD Radeon RX 5600 XT, it probably doesn't support it.

I guess this it it: https://stackoverflow.com/questions/60567404/video-rendering-on-windows-when-dxva-hd-is-not-available

from h264dxva2decoder.

mofo7777 avatar mofo7777 commented on May 29, 2024

Hello.

I've added H264Dxva2DecoderSourceCodeForAtiCard.7z in SourceCodeForAtiCards directory. It is a quick implementation. Could you give me feedback. Thank you.

from h264dxva2decoder.

smourier avatar smourier commented on May 29, 2024

It works fine now.

It's interesting to note (on my PC), it takes around 35% of the GPU while when I use Windows 10's basic "Movies & TV" app, it runs at around 13% GPU (but takes an extra 5% off dwm.exe).

Also, 35% is roughly the same usage as for the old "Windows Media Player" as well as VLC.

from h264dxva2decoder.

mofo7777 avatar mofo7777 commented on May 29, 2024

Thank you.

I suppose Windows 10 uses ID3D11VideoDecoder or ID3D12VideoDecoder, instead of IDirectXVideoDecoder.

Here is a way to improve performance : direct3d-9ex-improvements.

If GPU only supports DirectX9, perhaps the technic above is used.

Also in Dxva2Renderer.cpp could you replace all :

IF_FAILED_THROW(m_pDevice9Ex->Present(NULL, NULL, NULL, NULL));

with :

IF_FAILED_THROW(m_pDevice9Ex->PresentEx(NULL, NULL, NULL, NULL, 0));

and send me feedback about GPU usage, thank you.

from h264dxva2decoder.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.