1:首先先执行ffmpeg/third_party里面的脚本,在执行脚本的时候,注意一下自己的sdk版本,这里面是SDKVERSION的版本,目前SDKVERSION="10.2"; 接下来执行ffmpeg文件夹下面的install-ffmpeg.sh文件夹。这里面需要注意两个脚本参数: VERSION=“2.0.2”==》指代ffmpeg的版本, SDKVERSION="10.2"==》指代xcode skd的版本. 最后编译生成的文件存放在output文件夹里面。
2:该程序没有做界面适配,请使用iphone 5s 模拟器或设备上进行播放。
3:效果如图所示