ffmpeg lame faad faac 的编译

本文详细介绍了如何使用Visual C++工具链编译FFmpeg。首先安装必要的开发环境,包括Visual C++和MinGW等,然后配置环境变量确保链接器正确工作。最后通过指定配置选项来编译生成兼容Visual C++的FFmpeg库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

写一个备忘在这里,免得下次不记得了,又从头再来。

ffmpeg compile with Visual C++ compatibility

  1. Install Visual C++ (if you haven't done so already).
  2. Install MinGW and MSYS as described above.
  3. Add a call to `vcvars32.bat' (which sets up the environment variables for the Visual C++ tools) as the first line of `msys.bat'. The standard location for `vcvars32.bat' is `C:/Program Files/Microsoft Visual Studio 8/VC/bin/vcvars32.bat', and the standard location for `msys.bat' is `C:/msys/1.0/msys.bat'. If this corresponds to your setup, add the following line as the first line of `msys.bat': call "C:/Program Files/Microsoft Visual Studio 8/VC/bin/vcvars32.bat"
  4. Start the MSYS shell (file `msys.bat') and type link.exe. If you get a help message with the command line options of link.exe, this means your environment variables are set up correctly, the Microsoft linker is on the path and will be used by FFmpeg to create Visual-C++-compatible import libraries.
  5. Extract the current version of FFmpeg and change to the FFmpeg directory.
  6. Type the command ./configure --enable-shared --disable-static --enable-memalign-hack to configure and, if that didn't produce any errors, type make to build FFmpeg.
  7. The subdirectories `libavformat', `libavcodec', and `libavutil' should now contain the files `avformat.dll', `avformat.lib', `avcodec.dll', `avcodec.lib', `avutil.dll', and `avutil.lib', respectively. Copy the three DLLs to your System32 directory (typically `C:/Windows/System32').
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值