编译的是x264 + fdk-aac + mp3lame + ffmpeg的iOS库
仅仅为记录一下,以后好找。
环境准备
安装yasm,brew install yasm
1、编译x264
1、下载x264的源码https://www.videolan.org/developers/x264.html
2、下载github的编译脚本https://github.com/kewlbear/x264-ios,根据自己的架构需要,修改脚本
2、编译fdk-aac
1、下载fdk-aac源码https://www.linuxfromscratch.org/blfs/view/svn/multimedia/fdk-aac.html
2、下载github的编译脚本https://github.com/kewlbear/fdk-aac-build-script-for-iOS根据自己的架构需要,修改脚本
3、编译mp3lame
1、下载mp3lame源码https://github.com/rbrito/deprecated-lame-mirror
2、下载github的编译脚本https://github.com/kewlbear/lame-ios-build根据自己的架构需要,修改脚本
4、编译ffmpeg
1、下载ffmpeg源码,https://ffmpeg.org/download.html
2、下载github的编译脚本https://github.com/kewlbear/FFmpeg-iOS-build-script
3、修改脚本的x264-iOS,fdk-aac-ios,lame-ios路径以及ffmpeg版本号
详细步骤参考文章:
https://cloud.tencent.com/developer/article/1937306