Skip to content

Commit

Permalink
delete not longer needed libvmaf modifications (homebrew-ffmpeg#117)
Browse files Browse the repository at this point in the history
* delete not longer needed `libvmaf` modifications

* bump revision
  • Loading branch information
retokromer authored Jul 23, 2022
1 parent e5140d3 commit 5ab700c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Formula/ffmpeg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +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
head "https://github.com/FFmpeg/FFmpeg.git"

option "with-chromaprint", "Enable the Chromaprint audio fingerprinting library"
Expand Down Expand Up @@ -190,15 +191,6 @@ def install
args << "--enable-libopencore-amrwb"
end

if build.with? "libvmaf"
# 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
end

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

Expand Down

0 comments on commit 5ab700c

Please sign in to comment.