How to install libx265 for ffmpeg on Mac OSX

前端 未结 2 992
悲哀的现实
悲哀的现实 2021-02-05 21: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 r

2条回答
  •  名媛妹妹
    2021-02-05 21:38

    Seems like you can't just do brew install ffmpeg --with-x265 anymore (this is Oct 2019). What worked for me is this:

    brew tap homebrew-ffmpeg/ffmpeg
    brew install homebrew-ffmpeg/ffmpeg/ffmpeg
    

    This is from https://github.com/homebrew-ffmpeg/homebrew-ffmpeg. It says the default already includes x265, but you can then optionally pass some arguments like

    brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-xvid --with-fdk-aac
    

    You can take a look at what options are available by doing

    brew options homebrew-ffmpeg/ffmpeg/ffmpeg
    

提交回复
热议问题