[FFmpeg-user] How to configure for h264_dxva2 ?

Wayne Kelly w.kelly at qut.edu.au
Thu Apr 19 10:18:48 CEST 2012

Ignore my previous email - I've worked it out:

I needed to put dxva2api.h in the mingw include directory rather than with the ffmpeg include files.

Cheers, Wayne.

From: Wayne Kelly
Sent: Thursday, 19 April 2012 5:38 PM
To: ffmpeg-user at ffmpeg.org
Subject: How to configure for h264_dxva2 ?


I'm trying to configure ffmpeg to compile on windows (mingw) with h264_dxva2 support, but I'm not sure what options to pass to the configure script.

I've tried:

./configure --enable-hwaccel=h264_dxva2 --enable-decoder=h264

But the ouput from the configure script lists no "Enabled hwaccels" and in config.h:


Which means that

REGISTER_HWACCEL called from avcodec_register_all doesn't register H264_DXVA2

If I look at the source of the configure script I see:

h264_dxva2_hwaccel_select="dxva2 h264_decoder"

I don't understand how the configuration script works, but I'm assuming it's checking for the existence of a dxva2api.h file somewhere (???) Could someone possibily explain how this aspect of the configure script works or what I need to do?

Even if I manually alter config.h to:


It still doesn't link the DXVA2 ffmpeg code into the libavcodec library.

Any assistance would be greatly appreciated.

BTW, I realized that enabling H264_DXVA2 won't automatically provide me with hardware acceleration for H264 decoding, but at present I can't even get past the first hurdle of appropriately compiling ffmpeg.

I'll be happy to post a simple tutorial if I can first get it working myself.

Cheers, Wayne.

More information about the ffmpeg-user mailing list