编译ffmpeg
https://www.msys2.org/
https://www.ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows
1.安装msys2
2.安装yasm或者nasm
打开VC 本地环境命令行
唤醒msys2界面
配置编译环境变量参数
export PATH="/d/vs2017/install/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86":$PATH
export PATH="/d/soft/nasm/install/":$PATH
安装cmp相关库
pacman -S diffutils
安装makefile 相关库
pacman -S make
pacman -S make pkgconf diffutils
编译ffmpeg
cd /d/SevenWorkSpace/ffmpeg_workspace/ffmpeg
./configure --toolchain=msvc
make
make install
编译动态库版本
./configure --toolchain=msvc --enable-shared
编译静态库版本
./configure --toolchain=msvc --enable-static