Skip to content

Commit

Permalink
ffmpeg: enable libvmaf
Browse files Browse the repository at this point in the history
Closes #88959.

Closes #88821.

Signed-off-by: Carlo Cabrera <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
barrbrain authored and BrewTestBot committed Nov 8, 2021
1 parent d17ba40 commit b8e351f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/ffmpeg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Ffmpeg < Formula
depends_on "librist"
depends_on "libsoxr"
depends_on "libvidstab"
depends_on "libvmaf"
depends_on "libvorbis"
depends_on "libvpx"
depends_on "opencore-amr"
Expand Down Expand Up @@ -91,6 +92,7 @@ def install
--enable-libtesseract
--enable-libtheora
--enable-libvidstab
--enable-libvmaf
--enable-libvorbis
--enable-libvpx
--enable-libwebp
Expand Down Expand Up @@ -121,6 +123,13 @@ def install
# Needs corefoundation, coremedia, corevideo
args << "--enable-videotoolbox" if OS.mac?

# Replace hardcoded default VMAF model path
%w[doc/filters.texi libavfilter/vf_libvmaf.c].each do |f|
inreplace f, "/usr/local/share/model", HOMEBREW_PREFIX/"share/libvmaf/model"
# Since libvmaf v2.0.0, `.pkl` model files have been deprecated in favor of `.json` model files.
inreplace f, "vmaf_v0.6.1.pkl", "vmaf_v0.6.1.json"
end

system "./configure", *args
system "make", "install"

Expand Down

0 comments on commit b8e351f

Please sign in to comment.