Skip to content

Commit

Permalink
added option to build with svt-av1 (homebrew-ffmpeg#119)
Browse files Browse the repository at this point in the history
* added option to build with svt-av1

* bump revision and alphabetical order

Co-authored-by: רטו • Reto <[email protected]>
  • Loading branch information
sputnik13 and retokromer authored Aug 12, 2022
1 parent 5ab700c commit 225ad57
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 "5.1-with-options" # to distinguish from homebrew-core's ffmpeg
sha256 "55eb6aab5ee235550fa54a33eaf8bf1b4ec66c01453182b12f6a993d75698b03"
license "GPL-2.0-or-later"
revision 1
revision 2
head "https://github.com/FFmpeg/FFmpeg.git"

option "with-chromaprint", "Enable the Chromaprint audio fingerprinting library"
Expand All @@ -26,6 +26,7 @@ class Ffmpeg < Formula
option "with-openjpeg", "Enable JPEG 2000 image format"
option "with-openssl", "Enable SSL support"
option "with-rav1e", "Enable AV1 encoding via librav1e"
option "with-svt-av1", "Enable AV1 encoding via libsvtav1"
option "with-rtmpdump", "Enable RTMP dumping support"
option "with-rubberband", "Enable rubberband library"
option "with-webp", "Enable using libwebp to encode WEBP images"
Expand Down Expand Up @@ -81,6 +82,7 @@ class Ffmpeg < Formula
depends_on "rubberband" => :optional
depends_on "speex" => :optional
depends_on "srt" => :optional
depends_on "svt-av1" => :optional
depends_on "tesseract" => :optional
depends_on "two-lame" => :optional
depends_on "webp" => :optional
Expand Down Expand Up @@ -142,6 +144,7 @@ def install
args << "--enable-libopenjpeg" if build.with? "openjpeg"
args << "--enable-libopenmpt" if build.with? "libopenmpt"
args << "--enable-librav1e" if build.with? "rav1e"
args << "--enable-libsvtav1" if build.with? "svt-av1"
args << "--enable-librist" if build.with? "librist"
args << "--enable-librsvg" if build.with? "librsvg"
args << "--enable-librtmp" if build.with? "rtmpdump"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ This formula features the following libraries optionally:
| `openjpeg` | JPEG 2000 image format |
| `openssl` | SSL support |
| `rav1e` | AV1 encoding via librav1e |
| `svt-av1` | AV1 encoding via libsvt-av1 |
| `rtmpdump` | rtmpdump support |
| `rubberband` | rubberband library |
| `speex` | speex support |
Expand Down

0 comments on commit 225ad57

Please sign in to comment.