首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在MacOS中找不到/用自制软件安装ffmpeg和nasm

在MacOS中找不到/用自制软件安装ffmpeg和nasm
EN

Stack Overflow用户
提问于 2021-12-29 02:46:00
回答 1查看 139关注 0票数 -1

当我尝试使用brew安装ffmpeg时,提示我首先安装“nasm”公式。但是,当我试图安装“nasm”公式时,发生了以下错误

代码语言:javascript
运行
复制
➜  ~ brew install ffmpeg                
Running `brew update --preinstall`...
fatal: Could not resolve HEAD to a revision
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
Updated 5 casks.

Warning: No available formula with the name "nasm" (dependency of homebrew-ffmpeg/ffmpeg/ffmpeg).
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
➜  ~ brew install nasm
Warning: No available formula with the name "nasm".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-31 04:40:16

我想(很久以前)我可能尝试过brew来安装FFmpeg,但是被卡住了。最后,我手动安装了它:

代码语言:javascript
运行
复制
# 1. Install the zipped executable, or visit https://ffmpeg.org
curl -JL -o ~/Downloads/ffmpeg.zip https://evermeet.cx/ffmpeg/get/zipcurl -JL -o ~/Downloads/ffmpeg.zip https://evermeet.cx/ffmpeg/get/zip

# 2. Inflate/extract executable file
unzip ~/Downloads/ffmpeg.zip -d ~/Downloads/ffmpeg

# 3. Move file into executables directory
cp ~/Downloads/ffmpeg/ffmpeg /usr/local/bin/ffmpeg

# 4. Allow file to execute
chmod +x /usr/local/bin/ffmpeg

# 5. Quick check
file /usr/local/bin/ffmpeg
# /usr/local/bin/ffmpeg: Mach-O 64-bit executable x86_64

# 6. Ready set go!
ffmpeg

来源:我与此斗争,并写了我个人网站上的一篇文章,最近更新。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70514648

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档