How to install libx265 for ffmpeg on Mac OSX

2019-03-26 14:28发布

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

I get the error:

Unknown encoder 'libx265'

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

P.S. I am running OSX 10.11.3

1条回答
▲ chillily
2楼-- · 2019-03-26 14:59

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.

查看更多
登录 后发表回答