2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, nasm }:
|
2019-10-08 22:50:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libvmaf";
|
2021-01-20 04:20:00 +00:00
|
|
|
version = "2.1.1";
|
2019-10-08 22:50:39 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netflix";
|
|
|
|
repo = "vmaf";
|
|
|
|
rev = "v${version}";
|
2021-01-20 04:20:00 +00:00
|
|
|
sha256 = "0dynk1pmsyf23vfxljaazqkr27vfrvhj3dyjzm06zxpzsn59aif3";
|
2019-10-08 22:50:39 +01:00
|
|
|
};
|
|
|
|
|
2020-02-29 09:20:00 +00:00
|
|
|
sourceRoot = "source/libvmaf";
|
|
|
|
|
2020-08-25 00:40:00 +01:00
|
|
|
nativeBuildInputs = [ meson ninja nasm ];
|
2020-12-30 04:20:00 +00:00
|
|
|
|
|
|
|
mesonFlags = [ "-Denable_avx512=true" ];
|
|
|
|
|
2019-10-08 22:50:39 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2020-12-30 04:20:00 +00:00
|
|
|
doCheck = false;
|
2019-10-08 22:50:39 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-08 22:50:39 +01:00
|
|
|
homepage = "https://github.com/Netflix/vmaf";
|
2019-10-22 18:33:30 +01:00
|
|
|
description = "Perceptual video quality assessment based on multi-method fusion (VMAF)";
|
2020-12-30 04:20:00 +00:00
|
|
|
changelog = "https://github.com/Netflix/vmaf/blob/v${version}/CHANGELOG.md";
|
2020-02-29 09:20:00 +00:00
|
|
|
platforms = platforms.unix;
|
2020-07-03 05:18:37 +01:00
|
|
|
license = licenses.bsd2Patent;
|
2020-02-29 09:21:00 +00:00
|
|
|
maintainers = [ maintainers.cfsmp3 maintainers.marsam ];
|
2019-10-08 22:50:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|