N
N
nicktrandafil2014-08-09 10:49:02
fmpeg
nicktrandafil, 2014-08-09 10:49:02

How to compile ffmpeg with dxva2 support?

Good morning! I'm trying to compile ffmpeg with DXVA2 support so I can use it in Visual Studio. I did everything according to this article .
System: Windows 7 ultimate 64bit.
Visual Studio 2010
Tried to configure like this:

./configure --toolchain=msvc --arch=x86 --enable-hwaccels --enable-dxva2 --enable-runtime-cpudetect --enable-w32threads --enable-shared --disable-static --disable-filters --disable-encoders --disable-muxers --disable-bsfs --disable-debug --prefix=/c/ffmpeg_build

The console window does not display any errors other than a warning that pkg-config was not found, but found the following error in config.log at the end:
BEGIN ./ffconf.WCCcDkjJ.c
    1   #include <crtversion.h>
    2   #if !(_VC_CRT_MAJOR_VERSION >= 12)
    3   #error "unsatisfied condition: _VC_CRT_MAJOR_VERSION >= 12"
    4   #endif
END ./ffconf.WCCcDkjJ.c
c99wrap cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_WIN32_WINNT=0x0502 -Dstrtod=avpriv_strtod -Dsnprintf=avpriv_snprintf -D_snprintf=avpriv_snprintf -Dvsnprintf=avpriv_vsnprintf -nologo -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dinline=__inline -FIstdlib.h -Dstrtoll=_strtoi64 -W4 -wd4244 -wd4127 -wd4018 -wd4389 -wd4146 -wd4057 -wd4204 -wd4706 -wd4305 -wd4152 -wd4324 -we4013 -wd4100 -wd4214 -wd4554 -wd4273 -O2 -P -Fi./ffconf.wrodZiQL.o ./ffconf.WCCcDkjJ.c
ffconf.WCCcDkjJ.c
./ffconf.WCCcDkjJ.c(3) : fatal error C1189: #error :  "unsatisfied condition: _VC_CRT_MAJOR_VERSION >= 12"

Based on the error, you can conclude that I should use Visual Studio 2013, but based on the article that I use to compile, you can use any version of Visual Studio.
FFmpeg can be built with MSVC 2012 or earlier using a C99-to-C89 conversion utility and wrapper, or with MSVC 2013 natively.

I tried make anyway, but nothing worked. make did not display any information about the compilation process, the processor loaded only by 25%, although I did make -j9, and I never waited for the end of compilation.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nicktrandafil, 2014-08-09
@nicktrandafil

Everything worked when I just did make, not make -j9. For compilation, the cl.exe compiler is used, apparently because of this it did not work, although it is very strange that no errors were displayed. Compilation completed successfully, even though that error persisted in config.log.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question