Files
ffmpeg/README.md
2025-03-26 19:00:28 +08:00

26 lines
551 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Windows下的FFmpeg 编译
1. 安装msys2
从 https://www.msys2.org 下载Windows安装包进行安装。
1. 安装 Visual Studio Build Tools
1. 打开构建工具(x64)并启动msys2。
可以在msys2的安装目录下新建一个`msvc_build.bat`,并输入以下内容:
```
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
msys2_shell.cmd -mingw64
```
1. 安装依赖库
1. 编译项目
在msys2中执行
```
cd /path/to/project
node thirdpart/build_ffmpeg_win.js
```