编译一个Mac M系列可以用的yuview

做音视频的有一个神器工具YUView,具体使用和它的功能可以看:https://zhuanlan.zhihu.com/p/558580168, 这个作者讲得很清楚,但是官方只提供了intel的版本,arm版本要自己编,且依赖低版本的ffmpeg。

操作过程:

bash 复制代码
# 0. 删除高版本ffmpeg,准备老版本ffmpeg和qt
brew uninstall ffmpeg
brew install ffmpeg@5
brew install qt

# 1. 编译YUView
git clone git@github.com:IENT/YUView.git
cd YUView
mkdir build && cd build
qmake ../YUView.pro
make -j8

# 2. 产物在 build/YUViewApp 路径下,需要自己手动移动到/Application里
# 3. 根据github issue中某位大佬的提示:https://github.com/IENT/YUView/issues/524#issuecomment-1663561629 把brew安装的ffmpeg中的lib库移动到YUViewApp的包下面
mkdir /Applications/YUView.app/Contents/MacOS/ffmpeg
# 这里我的brew安装路径是/opt/homebrew/opt/ffmpeg@5,依情况自己选
cp -r /opt/homebrew/opt/ffmpeg@5/lib/* /Applications/YUView.app/Contents/MacOS/ffmpeg

好了,愉快玩耍吧:

相关推荐
pe7er3 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep6 天前
mac生效的终端查看
macos
iOS门童6 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~6 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员6 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843946 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei7 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利7 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen7 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c7 天前
如虎添翼-MacOS
macos