运行命令 ffmpeg 时出错:库未加载:'/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.13.dylib'

mox*_*poy 51 ffmpeg appium apple-m1

我想与 appium doctor 一起安装 appium。当我运行 appium-doctor 命令时,ffmpeg 出现错误。然后我运行命令调用ffmpeg -version,出现以下错误:

dyld[89251]: Library not loaded: '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.13.dylib'
  Referenced from: '/opt/homebrew/Cellar/librist/0.2.7_2/lib/librist.4.dylib'
  Reason: tried: '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.13.dylib' (no such file), '/usr/local/lib/libmbedcrypto.13.dylib' (no such file), '/usr/lib/libmbedcrypto.13.dylib' (no such file), '/opt/homebrew/Cellar/mbedtls/3.4.1/lib/libmbedcrypto.13.dylib' (no such file), '/usr/local/lib/libmbedcrypto.13.dylib' (no such file), '/usr/lib/libmbedcrypto.13.dylib' (no such file)
zsh: abort      ffmpeg -version
Run Code Online (Sandbox Code Playgroud)

我用的是苹果M1。 在此输入图像描述

我已经卸载,然后使用自制程序重新安装它,但仍然没有运气。有人可以帮忙吗?谢谢

And*_*pos 179

我通过卸载两者mbedtls然后librist按照此处ffmpeg所述重新安装来修复

brew uninstall librist --ignore-dependencies
brew uninstall mbedtls --ignore-dependencies
brew reinstall ffmpeg
Run Code Online (Sandbox Code Playgroud)

  • 这适用于 macOS Monterey / MBP Intel (6认同)
  • 我通过从他们的网站安装 ffmpeg 来修复它(不使用brew) (4认同)
  • 需要明确的是,这也对我有用,尽管我必须强制卸载所有版本的 mbedtls。谢谢! (3认同)
  • 为我工作 mac m1!蒙特雷 (2认同)