根據 https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC 的說明
這邊使用VS2015, 配合msys
如需要啟用yasm選項 => http://yasm.tortall.net/Download.html download yasm.exe => C:\Windows
yasm選項 deprecated
WARNING: The --enable-yasm option is only provided for compatibility and will be
removed in the future. Use --enable-x86asm / --disable-x86asm instead.
msys2 with vs support
msys2 install => https://www.msys2.org/
預設有缺一些套件
pacman -S base-devel --needed # 選18 (diffutils), 36(make)
C:\msys64\usr\bin\link.exe => C:\msys64\usr\bin\link2.exe (與vc的link.exe衝突)
first open VS2015 command line 注意x64
如果是一般的command line prompt 要執行(vcvarsall.bat amd64)
msys2_shell.cmd -mingw64 -use-full-path
cl.exe確認是否是x64
configure參數:
./configure --disable-x86asm --arch=x86_64 --enable-avresample --disable-ffserver --disable-avdevice --disable-ffplay --disable-ffprobe --disable-ffmpeg --enable-shared --disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv --disable-zlib --prefix=/c/ffmpeg --toolchain=msvc --disable-doc
接下來 make => make install
會輸出在 c:\ffmpeg