Enable DXVA using Microsoft DTV-DVD video decoder


  • You cannot vote on your own post                            

    I wrote a H.264 player on Windows 7 like this:

    I use ICodecAPI to set AVDecVideoAcceleration_H264 property to enable / disable DXVA

    I tested two version of players - one with DXVA enabled and the other with DXVA disabled on the same computer (display card : NVIDIA GeForce GT 540M)

    I found their CPU usage were the same - about 10%

    The following is my code to enable or disable DXVA:

    { VARIANT variant; variant.vt = VT_UI4; variant.uiVal = (UINT32)bEnable; hr = pICodecAPI->SetValue( &CODECAPI_AVDecVideoAcceleration_H264, &variant); }

    I am sure that hr is S_OK

    How can I tell if DXVA is in use (active) right now ?

    Thank you !

    Wednesday, January 29, 2014 4:38 AM


All replies

  • The acceleration is enabled by default, you don't need to enable it explicitly, it's disabling you can achieve this way. The symptoms are suggesting that decoder was unable to initialize DXVA- decoding context and fell back to software only decoding.

    Saturday, February 08, 2014 8:59 AM
  • I believe you only get hardware acceleration with DTV if you use the EVR (Enhanced Video Renderer). Looks like you might be using VMR7 or VMR9.

    Al Chisholm

    Monday, January 16, 2017 4:36 PM