Skip to content

Commit

Permalink
add OpenVINO support (homebrew-ffmpeg#148)
Browse files Browse the repository at this point in the history
* add OpenVINO support

* fix lib name

* fix lib name

* fix homebrew syntax
  • Loading branch information
retokromer authored Nov 13, 2023
1 parent 192591f commit 3b87c1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Formula/ffmpeg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Ffmpeg < Formula
version "6.1-with-options" # to distinguish from homebrew-core's ffmpeg
sha256 "488c76e57dd9b3bee901f71d5c95eaf1db4a5a31fe46a28654e837144207c270"
license "GPL-2.0-or-later"
revision 1
revision 2
head "https://github.com/FFmpeg/FFmpeg.git", branch: "master"

option "with-chromaprint", "Enable the Chromaprint audio fingerprinting library"
Expand All @@ -29,6 +29,7 @@ class Ffmpeg < Formula
option "with-openh264", "Enable OpenH264 library"
option "with-openjpeg", "Enable JPEG 2000 image format"
option "with-openssl", "Enable SSL support"
option "with-openvino", "Enable OpenVINO"
option "with-rav1e", "Enable AV1 encoding via librav1e"
option "with-svt-av1", "Enable Scalable Video Technology for AV1"
option "with-rtmpdump", "Enable RTMP dumping support"
Expand Down Expand Up @@ -86,6 +87,7 @@ class Ffmpeg < Formula
depends_on "openh264" => :optional
depends_on "openjpeg" => :optional
depends_on "[email protected]" => :optional
depends_on "openvino" => :optional
depends_on "rav1e" => :optional
depends_on "rtmpdump" => :optional
depends_on "rubberband" => :optional
Expand Down Expand Up @@ -171,6 +173,7 @@ def install
args << "--enable-libopenh264" if build.with? "openh264"
args << "--enable-libopenjpeg" if build.with? "openjpeg"
args << "--enable-libopenmpt" if build.with? "libopenmpt"
args << "--enable-openvino" if build.with? "openvino"
args << "--enable-librav1e" if build.with? "rav1e"
args << "--enable-libsvtav1" if build.with? "svt-av1"
args << "--enable-librist" if build.with? "librist"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ This formula features the following libraries optionally:
| `openh264` | OpenH264 library |
| `openjpeg` | JPEG 2000 image format |
| `openssl` | SSL support |
| `openvino` | OpenVINO support |
| `rav1e` | AV1 encoding via librav1e |
| `svt-av1` | Scalable Video Technology for AV1 (encoder and decoder) |
| `rtmpdump` | rtmpdump support |
Expand Down

0 comments on commit 3b87c1a

Please sign in to comment.