打开https://ffmpeg.zeranoe.com/builds/,该网站中的FFMPEG分为3个版本:Static,Shared,Dev。开发时需要下载后两个版本,分别部署在C:\ffmpeg-shared 和 C:\ffmpeg-dev 。
Visual Studio中的部署如下:
工程名右键->属性->配置属性->c/c++->常规->附加包含目录
C:\ffmpeg-dev\include
工程名右键 ->属性->配置属性->链接器->常规 附加库目录
C:\ffmpeg-dev\lib
工程名右键 ->属性->配置属性-> 链接器 -> 输入 -> 附加依赖项
avcodec.lib;
avformat.lib;
avutil.lib;
avdevice.lib;
avfilter.lib;
postproc.lib;
swresample.lib;
swscale.lib;
工程名右键 ->属性->配置属性->调试->环境
PATH=C:\ffmpeg-shared\bin;