2024-01-13 08:15:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ffmpeg-full
|
|
|
|
, libaom
|
|
|
|
, meson
|
|
|
|
, nasm
|
|
|
|
, ninja
|
|
|
|
, testers
|
|
|
|
, xxd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libvmaf";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netflix";
|
|
|
|
repo = "vmaf";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
sha256 = "sha256-6mwU2so1YM2pyWkJbDHVl443GgWtQazbBv3gTMBq5NA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
sourceRoot = "${finalAttrs.src.name}/libvmaf";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeBuildInputs = [ meson ninja nasm xxd ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
mesonFlags = [ "-Denable_avx512=true" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit libaom ffmpeg-full;
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
pkg-config = testers.hasPkgConfigModules {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
moduleNames = [ "libvmaf" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Perceptual video quality assessment based on multi-method fusion (VMAF)";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/Netflix/vmaf";
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/Netflix/vmaf/blob/v${finalAttrs.version}/CHANGELOG.md";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.bsd2Patent;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.cfsmp3 maintainers.marsam ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "vmaf";
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-01-13 08:15:51 +00:00
|
|
|
})
|