更新 iOS 环境下 集成FFmpeg3.0

先下载文件:

1.https://github.com/libav/gas-preprocessor

2.gas-preprocessor.pl文件复制粘贴到 /usr/local/bin/目录下

3.安装yasm: ruby -e"$(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)"

4.执行 :   ./build-ffmpeg.sh arm64

出现错误时:

Yasm not found

Trying to install Yasm...

Error: Permission denied - /Library/Caches/Homebrew/Formula/yasm.brewing

执行命令:

sudo chown -R $USER /Library/Caches/Homebrew/

中间安装过程中出现:

Operation not permitted,用命令chomd777改成读写

5.再次执行脚本文件即可:

./build-ffmpeg.sh arm64


6.添加

VideoToolbox.framework

libbz2.1.0dylib (CMD”+Shift+G (Go to folder)and type /usr/lib/)

libz.tbd

libiconv.tbd



PS:

rhc:FFmpeg-iOS-build-script-master$ ./build-ffmpeg.sh x86_64

Yasm not found

Trying to install Yasm...

Warning: yasm-1.3.0 already installed, it's just not linked

building x86_64...

yasm/nasm not foundor too old. Use --disable-yasm for a crippled build.

解决:sudo chmod777 /usr/local/opt


源码:https://github.com/baitxaps/FFMpegPlayer

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值