2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, gitUpdater
|
|
|
|
, cmake
|
|
|
|
, nasm
|
|
|
|
}:
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-01-09 10:05:03 +00:00
|
|
|
pname = "svt-av1";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.6.0";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
src = fetchFromGitLab {
|
2021-01-09 10:05:03 +00:00
|
|
|
owner = "AOMediaCodec";
|
|
|
|
repo = "SVT-AV1";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-rGe4h3d2Ql8tB/5vKFJGPkhmjMHnqgMUpnGzeh+PasA=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
nasm
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1";
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "AV1-compliant encoder/decoder library core";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
longDescription = ''
|
|
|
|
The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an
|
|
|
|
AV1-compliant encoder/decoder library core. The SVT-AV1 encoder
|
|
|
|
development is a work-in-progress targeting performance levels applicable
|
|
|
|
to both VOD and Live encoding / transcoding video applications. The
|
|
|
|
SVT-AV1 decoder implementation is targeting future codec research
|
|
|
|
activities.
|
|
|
|
'';
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
changelog = "https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
|
|
license = with licenses; [ aom bsd3 ];
|
|
|
|
maintainers = with maintainers; [ Madouura ];
|
2021-01-09 10:05:03 +00:00
|
|
|
platforms = platforms.unix;
|
2023-02-09 11:40:11 +00:00
|
|
|
# error: use of undeclared identifier 'kCVPixelFormatType_444YpCbCr16BiPlanarVideoRange'
|
|
|
|
broken = stdenv.isAarch64 && stdenv.isDarwin;
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
2023-01-11 07:51:40 +00:00
|
|
|
})
|