Answer the question
In order to leave comments, you need to log in
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
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"
FFmpeg can be built with MSVC 2012 or earlier using a C99-to-C89 conversion utility and wrapper, or with MSVC 2013 natively.
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question