FFmpeg + DekTec Devices: Build Guide for Windows This guide provides step-by-step instructions for compiling FFmpeg with support for DekTec devices on Windows. It builds upon the official FFmpeg instructions. If you encounter issues during the process, please consult the FFmpeg MSVC Compilation Guide.
|
Sources for Windows
Step 1: Install Dependencies
Compilation on Windows requires Visual Studio. Cygwin, MinGW and cross compilation are not supported.
Install dependencies:
Step 2: Install SDL2
vcvars64.bat
' in a CMD window.
"C:\vcpkg\vcpkg.exe" install SDL2:x64-windows-static
Step 3: Launch MSYS2 and Install Utilities
"C:\msys64\msys2_shell.cmd" -full-path
pacman -S pkg-config diffutils yasm make
Step 4: Prepare FFmpeg Sources and Environment
/c/ffmpeg_sources
'.
PKG_CONFIG_PATH
' to include vcpkg and the Windows SDK:
ln -s /c/Program\ Files\ \(x86\)/DekTec/SDKs/WinSDK $HOME/WinSDK export PKG_CONFIG_PATH=$HOME/WinSDK/DTAPI/Lib/VC17/pkgconfig:\ /c/vcpkg/installed/x64-windows-static/lib/pkgconfig
Step 5: Build FFmpeg
mkdir /c/ffmpeg_build cd /c/ffmpeg_build
/c/ffmpeg_sources/configure --target-os=win64 --arch=x86_64 \ --toolchain=msvc --enable-dektec \ --enable-nonfree --prefix=/c/ffmpeg_bin make make install