windows编译
编译环境准备
- 登陆 http://msys2.github.io/ 或 https://github.com/msys2 下载 msys2安装程序
- 安装到C/D 盘的根目录下面
- 安装一些必要的库和软件
- pacman -S git
- pacman -S yasm
- pacman -S make
- pacman -S mingw-w64-x86_64-gcc
编译
- 下载ffmpeg源码
- 执行
./configure --arch=x86_64 --enable-yasm --target-os=mingw32 –-enable-nvenc –-enable-nonfree && make