Example of using FFmpeg for decode encode and rendering with HW acceleration.
- MS Visual Studio 2015/2017
- Qt 5.7 or greater
- FFmpeg (tested with n3.4.2)
- Mysys64
- Mingw
- Download MS Visual Studio 2015/2017
- Download & install Qt for Windows and msvc kit
- Download Msys64
- Setup Msys64 with developer tools
- Download & build FFmpeg
./configure --prefix={Your/FFmpeg/build/Path} --disable-doc --disable-debug --enable-shared --disable-static --enable-runtime-cpudetect --disable-postproc --toolchain=msvc --enable-pic --extra-cflags="-MD" --extra-libs=user32.lib --disable-avresample --enable-hwaccels --enable-dxva2 --enable-libmfx --enable-nonfree --enable-gpl --enable-libx264
make -j4 install
- Put your FFmpeg build into your Qt dir