ffmpeg: enable Apple VideoToolbox hardware encoder

Utilizes the framework introduced in macOS Mountain Lion [1]. Adds a H.264
hardware encoder (h264_videotoolbox) which, together with h264_vda, enable full
hardware-accelerated H.264 transcoding.

[1]: https://developer.apple.com/library/content/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_8.html#//apple_ref/doc/uid/TP40011634-SW12

Closes #17060.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Roman Le Négrate 2017-08-21 12:13:00 +02:00 committed by FX Coudert
parent 7191ac517b
commit 710ee3d4be

View file

@ -158,6 +158,7 @@ class Ffmpeg < Formula
args << "--enable-libzimg" if build.with? "zimg"
args << "--enable-libzmq" if build.with? "zeromq"
args << "--enable-opencl" if MacOS.version > :lion
args << "--enable-videotoolbox" if MacOS.version >= :mountain_lion
args << "--enable-openssl" if build.with? "openssl"
if build.with? "xz"