m1 macos编译并安装arm64 ffmpeg

homebrew已经支持,建议直接 brew install ffmpeg 。以下方式会缺少一些库且较为麻烦~

参见此项目:https://github.com/ssut/ffmpeg-on-apple-silicon
前提是已经安装homebrew,网上有很多教程,不再赘述。

git clone https://github.com/ssut/ffmpeg-on-apple-silicon.git
cd ffmpeg-on-apple-silicon

然后运行

./build.bash

等待编译。

cd workdir/compile/ffmpeg
sudo make install
ffmpeg 

输出

ffmpeg version git-2021-09-09-0b4d009 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 12.0.5 (clang-1205.0.22.11)
  configuration:
  libavutil      57.  5.100 / 57.  5.100
  libavcodec     59.  7.103 / 59.  7.103
  libavformat    59.  5.100 / 59.  5.100
  libavdevice    59.  0.101 / 59.  0.101
  libavfilter     8.  7.101 /  8.  7.101
  libswscale      6.  1.100 /  6.  1.100
  libswresample   4.  0.100 /  4.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值