libvmaf 1.3.9 (new formula)
Closes #32937. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
26add82978
commit
b84f548d1e
1 changed files with 21 additions and 0 deletions
21
Formula/libvmaf.rb
Normal file
21
Formula/libvmaf.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class Libvmaf < Formula
|
||||
desc "Perceptual video quality assessment based on multi-method fusion"
|
||||
homepage "https://github.com/Netflix/vmaf"
|
||||
url "https://github.com/Netflix/vmaf/archive/v1.3.9.tar.gz"
|
||||
sha256 "c9e4fc850f66cf959a36c9603cef26c4298eec20d6c26f9482a355c5753c092d"
|
||||
|
||||
def install
|
||||
system "make"
|
||||
system "make", "install", "INSTALL_PREFIX=#{prefix}"
|
||||
system "make", "testlib", "INSTALL_PREFIX=#{prefix}"
|
||||
pkgshare.install "wrapper/testlib"
|
||||
pkgshare.install "python/test/resource/yuv/src01_hrc00_576x324.yuv"
|
||||
end
|
||||
|
||||
test do
|
||||
yuv = "#{pkgshare}/src01_hrc00_576x324.yuv"
|
||||
pkl = "#{share}/model/vmaf_v0.6.1.pkl"
|
||||
output = shell_output("#{pkgshare}/testlib yuv420p 576 324 #{yuv} #{yuv} #{pkl}")
|
||||
assert_match "VMAF score = ", output
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue