{"id":454,"date":"2019-06-14T23:52:18","date_gmt":"2019-06-14T11:52:18","guid":{"rendered":"http:\/\/wp.gaborhargitai.hu\/?p=454"},"modified":"2019-06-14T23:54:02","modified_gmt":"2019-06-14T11:54:02","slug":"install-ffmpeg-on-macos-using-homebrew-for-x256-h-265-hevc-encoding","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/install-ffmpeg-on-macos-using-homebrew-for-x256-h-265-hevc-encoding\/","title":{"rendered":"Install FFMPEG on macOS using Homebrew for x256\/H.265\/HEVC encoding"},"content":{"rendered":"\n

Consulting the official FFMPEG Compilation \/ Installation guide<\/a> only tells us how to do a basic install of FFMPEG. For day to day encoding we would need some additional options enabled at compile time.<\/p>\n\n\n\n

Searching around lead me to a GitHub gist discussion<\/a> where multiple users shared their then-current ways of installing FFMPEG on their Macs with x265 enabled.<\/p>\n\n\n\n

For those of you in a hurry, I also have the current workaround up on my GitHub repo for download: install_ffmpeg.sh<\/a><\/p>\n\n\n\n

The first step is to have Homebrew<\/a> directed to the latest release trunk by issuing the following in a Terminal window:<\/p>\n\n\n\n

brew tap varenc\/ffmpeg
\nbrew tap-pin varenc\/ffmpeg<\/pre>\n\n\n\n

And after that, we would actually install FFMPEG with all available options. As of writing (14\/06\/2019) this actually failed for me, but for completeness’ sake, this is the command you would normally want to use:<\/p>\n\n\n\n

brew install ffmpeg $(brew options ffmpeg --compact)<\/pre>\n\n\n\n

Problem is for some reason the decklink<\/strong> option fails, so I went ahead and copied out all options to one consecutive line so that you don’t have to:<\/p>\n\n\n\n

brew install ffmpeg --with-chromaprint --with-fdk-aac --with-librsvg\u00a0 --with-libsoxr --with-libssh --with-tesseract --with-libvidsta --with-opencore --with-openh264 --with-openjpeg --with-openssl\u00a0 --with-rubberban --with-webp --with-zeromq --with-zimg --with-srt --with-libvmaf\u00a0 --with-libxml2 --with-g --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplu --with-rtmpdump --with-speex --with-two-lame --with-wavpack\u00a0--with-xvid<\/pre>\n","protected":false},"excerpt":{"rendered":"

Consulting the official FFMPEG Compilation \/ Installation guide only tells us how to do a basic install of FFMPEG. For day to day encoding we would need some additional options enabled at compile time. Searching around lead me to a GitHub gist discussion where multiple users shared their then-current ways of installing FFMPEG on their […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/454"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=454"}],"version-history":[{"count":3,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/454\/revisions"}],"predecessor-version":[{"id":459,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/454\/revisions\/459"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}