参考文章:
按照文章方式.可以完整编译通过.(其中一些错误在最新版本的ffmpeg 中已经修复,不需要另外解决).
1.给出一个遇到问题解决方法:文章没有提到.
生成的工程按F5运行提示链接错误.(这个时候 其实exe文件已经生成.因为工程配置了属性 /FORCE:UNRESOLVED).
不能调试.(工具->选项->启动早期版本).
2. 当前工程需要从github下载 所需要的lib库, 分享一个bat脚本,放到下载的目录运行(即可自动下载所有的需要的lib库和ffmpeg工程).[需要系统安装过git]
脚本保存bat.或者从我资源下载.(当然也可以运行 SMP目录下 project_get_dependencies.bat(这个更加炫酷,可以跟新依赖库的版本).)
C:\Program Files (x86)\Git\bin 替换为你git安装路径即可.
@echo off
set PATH=%PATH%;C:\Program Files (x86)\Git\bin
::ffmpeg
call:downLoadFun FFmpeg
::speex
call:downLoadFun speex
::libass
call:downLoadFun libass
::libvpx
call:downLoadFun libvpx
::harfbuzz
call:downLoadFun harfbuzz
::vorbis
call:downLoadFun vorbis
::theora
call:downLoadFun theora
::rtmpdump
call:downLoadFun rtmpdump
::nettle
call:downLoadFun nettle
::libxml2
call:downLoadFun libxml2
::libssh
call:downLoadFun libssh
::libgcrypt
call:downLoadFun libgcrypt
::libdvdread
call:downLoadFun libdvdread
::libdvdnav
call:downLoadFun libdvdnav
::libcdio-paranoia
call:downLoadFun libcdio-paranoia
::libcdio
call:downLoadFun libcdio
::libbluray
call:downLoadFun libbluray
::libbdplus
call:downLoadFun libbdplus
::libaacs
call:downLoadFun libaacs
::gnutls
call:downLoadFun gnutls
::fontconfig
call:downLoadFun fontconfig
::x265
call:downLoadFun x265
::freetype2
call:downLoadFun freetype2
::opus
call:downLoadFun opus
call:downLoadFun libgpg-error
call:downLoadFun openssl
call:downLoadFun xvid
call:downLoadFun x264
call:downLoadFun gmp
call:downLoadFun fribidi
call:downLoadFun enca
call:downLoadFun SDL
call:downLoadFun mfx_dispatch
call:downLoadFun libdvdcss
call:downLoadFun game-music-emu
call:downLoadFun libilbc
call:downLoadFun soxr
call:downLoadFun ogg
call:downLoadFun lame
call:downLoadFun modplug
call:downLoadFun fdk-aac
call:downLoadFun liblzma
call:downLoadFun libiconv
call:downLoadFun zlib
call:downLoadFun bzip2
call:downLoadFun expat
call:downLoadFun PortAudio
call:downLoadFun FFVS-Project-Generator
pause
:downLoadFun
if exist "%cd%"/%1 (echo %1 downloaded) else ^
git clone https://github.com/ShiftMediaProject/%1 "%cd%"/%1
echo.
goto:eof
最后, 学习多媒体的 欢迎进群( 210324637 ) 交流.