From 554f5b62805b900a9e4e320cbbbb800c13557b7e Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Tue, 18 Feb 2020 14:57:38 -0500 Subject: gnu: Add SVT-AV1. * gnu/packages/video.scm (svt-av1): New variable. --- gnu/packages/video.scm | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 0e428f345d..074a1235a3 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -25,7 +25,7 @@ ;;; Copyright © 2018 Roel Janssen ;;; Copyright © 2018, 2019, 2020 Marius Bakke ;;; Copyright © 2018, 2019 Pierre Neidhardt -;;; Copyright © 2018, 2019 Leo Famulari +;;; Copyright © 2018, 2019, 2020 Leo Famulari ;;; Copyright © 2018 Brendan Tildesley ;;; Copyright © 2018 Arun Isaac ;;; Copyright © 2018 Björn Höfling @@ -3793,3 +3793,40 @@ Theora videos. Theorafile was written to be used for FNA's VideoPlayer.") DVD using @command{libdvdcss}, but does @strong{not} demux, remux, transcode or reformat the videos in any way, producing perfect backups.") (license license:gpl3+))) + +(define-public svt-av1 + (package + (name "svt-av1") + (version "0.8.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OpenVisualCloud/SVT-AV1.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "08sx9zhhks8wzq05f67jqmc1zqmmi7hqkgg2gyjpcsan5qc5476w")))) + (build-system cmake-build-system) + ;; SVT-AV1 only supports Intel-compatible CPUs. + (supported-systems '("x86_64-linux" "i686-linux")) + (arguments + ;; The test suite tries to download test data and git clone a 3rd-party + ;; fork of libaom. Skip it. + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-documentation + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref %outputs "out")) + (doc (string-append out "/share/doc/svt-av1-" ,version))) + (copy-recursively "../source/Docs" doc) + #t)))))) + (native-inputs + `(("yasm" ,yasm))) + (synopsis "AV1 video codec") + (description "SVT-AV1 is an AV1 codec implementation. The encoder is a +work-in-progress, aiming to support video-on-demand and live streaming +applications. It only supports Intel-compatible CPUs (x86).") + (home-page "https://github.com/OpenVisualCloud/SVT-AV1") + (license license:bsd-2))) -- cgit v1.2.3