1 Star 24 Fork 18

khwll / FFMPEG

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

FFMPEG

介绍

VS编译FFMPEG

原始项目地址:https://github.com/ShiftMediaProject/FFmpeg

该项目编译方法:https://blog.csdn.net/luckywll/article/details/85792097

我这里只是将依赖的项目、需要单独下载的头文件、工具全部放进来,直接就可以打开vs编译了。

安装教程

  1. nasm和yasm在tool下面,将对应版本的yasm.exe和nasm.exe拷贝到vs下面。
    vs2013: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
    vs2015: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
    vs2017: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC
  2. nasm和yasm分别有3个配置文件.xml,.props,.targets,拷贝到vs下面。
    vs2013: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations
    vs2015: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations
    vs2017: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations
  3. 打开\code\Ffmpeg\SMP\ ffmpeg_deps.sln就可以编译了

配置说明

  1. Debug/Release 第三方库和ffmpegSDK都是静态库
  2. DebugDLL/ReleaseDLL 第三方库和ffmpegSDK都是DLL。libvpx我改成了静态库,因为里面有个导出变量,外面引用的话链接时会找不到符号,要用dll必须修改代码才行。
  3. DebugDLLStaticDeps/ReleaseDLLStaticDeps ffmpegSDK是DLL,第三方库是静态库。一般都是用的这种方案。
  4. ReleaseLTO 给windows UWP使用的,可能需要win10和最新的vs及sdk,我暂时还没编过。
The MIT License (MIT) Copyright (c) 2019 ztwlla Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

VS编译FFMPEG 展开 收起
C
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/ztwlla/FFMPEG.git
git@gitee.com:ztwlla/FFMPEG.git
ztwlla
FFMPEG
FFMPEG
master

搜索帮助