如何在Mac OSX上为ffmpeg安装libx265 [英] How to install libx265 for ffmpeg on Mac OSX

查看:1720
本文介绍了如何在Mac OSX上为ffmpeg安装libx265的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试过多个指南这里(搜索构建libx265)和此处,没有成功。两次我确定我先卸载了ffmpeg,经过指南,然后运行

I have tried multiple guides here (search for "Building libx265") and here with no success. Both times I made sure I uninstalled ffmpeg first, went through the guides, then ran

brew install ffmpeg --with-fdk-aac - with-freetype --with-libass --with-libvpx --enable-libx265

无论我什么时候运行命令像

No matter what when I go to run a command like

ffmpeg -i source.mkv -c:v libx265 test1.mkv

我收到错误:

未知编码器'libx265'

有没有人有成功搭建libx265与OSX上的ffmpeg一起使用,可以分享一下您的操作吗?

Has anyone had success building libx265 for use with ffmpeg on OSX and can you please share how you did it?

PS我正在运行OSX 10.11.3

P.S. I am running OSX 10.11.3

推荐答案

尝试使用 - with-x265 而不是 - enable-libx265 ,如官方FFmpeg维基中所述。 https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX

Try using --with-x265 instead of --enable-libx265 as described in the official FFmpeg wiki. https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX

您链接到的指南不是专用于自制软件,这就是为什么他们使用 - 启用而不是 - 与

Those guides you linked to are not specifically for homebrew, which is why they used --enable instead of --with.

这篇关于如何在Mac OSX上为ffmpeg安装libx265的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆