编译一个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

好了,愉快玩耍吧:

相关推荐
ihui数学建模9 小时前
【Mac版】Linux 入门命令行快捷键+联想记忆
linux·运维·macos
可曾去过倒悬山1 天前
mac操作笔记
macos
可曾去过倒悬山1 天前
Mac上优雅简单地使用Git:从入门到高效工作流
git·elasticsearch·macos
山楂树の1 天前
模型优化——在MacOS 上使用 Python 脚本批量大幅度精简 GLB 模型(通过 Blender 处理)
python·macos·3d·图形渲染·blender
光头才能变强1 天前
Mac安装Navicat教程Navicat Premium for Mac v17.1.9 Mac安装navicat【亲测】
macos
Frilled Lizard1 天前
解决mac下git pull、push需要输入密码
git·macos
是小崔啊2 天前
Mac下的Homebrew
macos
0wioiw03 天前
Apple基础(Xcode①-项目结构解析)
ide·macos·xcode
名字不要太长 像我这样就好3 天前
【iOS】weak修饰符
macos·ios·objective-c·cocoa·xcode
ghostwritten3 天前
在 Mac 上用 Vagrant 安装 K8s
macos·kubernetes·vagrant