From patchwork Sat Jan 12 00:24:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dr. Arne Babenhauserheide" X-Patchwork-Id: 722 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CAD8716A61; Sat, 12 Jan 2019 02:16:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 756B516A1E for ; Sat, 12 Jan 2019 02:16:36 +0000 (GMT) Received: from localhost ([127.0.0.1]:60745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gi8qh-0003U6-TD for patchwork@mira.cbaines.net; Fri, 11 Jan 2019 21:16:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gi7NG-0003qn-Vl for guix-patches@gnu.org; Fri, 11 Jan 2019 19:42:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gi7NF-0005eD-H1 for guix-patches@gnu.org; Fri, 11 Jan 2019 19:42:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:57180) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gi7NC-0005dL-Jr for guix-patches@gnu.org; Fri, 11 Jan 2019 19:42:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gi7NC-0007BY-DD for guix-patches@gnu.org; Fri, 11 Jan 2019 19:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34050] [PATCH] gnu: Add libaom and activate AV1 support in ffmpeg. Resent-From: Arne Babenhauserheide Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Jan 2019 00:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34050 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34050@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154725368427570 (code B ref -1); Sat, 12 Jan 2019 00:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jan 2019 00:41:24 +0000 Received: from localhost ([127.0.0.1]:56461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gi7MZ-0007Ab-Mr for submit@debbugs.gnu.org; Fri, 11 Jan 2019 19:41:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gi7MY-0007AP-1s for submit@debbugs.gnu.org; Fri, 11 Jan 2019 19:41:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:53521) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gi7MS-0005Lq-TO for submit@debbugs.gnu.org; Fri, 11 Jan 2019 19:41:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gi7MR-0003Gy-MQ for guix-patches@gnu.org; Fri, 11 Jan 2019 19:41:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gi7G2-0000zA-2h for guix-patches@gnu.org; Fri, 11 Jan 2019 19:34:38 -0500 Received: from mout.web.de ([212.227.15.14]:41011) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gi7G1-0000xP-Nw for guix-patches@gnu.org; Fri, 11 Jan 2019 19:34:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1547253272; bh=uMvleU9LDtvD5IcXkCMoLmIFGBzqKMlTxqS767CdZbg=; h=X-UI-Sender-Class:From:To:Subject:Date; b=bPSaeKH+sOHuo46itAt/egrLw5YPP0rEDK7wdvYf3JDJNzS3p18Ije4P9rJfzkzeo afBEjpdIlin5ECi5NfuZg31AYPcFU/imujYYv1a52RfIjEmf9YIxrAy3F2x29eNi0q /W/iFXpPZrjySNVcu1RiwDLszh72LBmpw7jbYuPo= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from fluss ([80.136.18.3]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MNc5a-1gc3Va1r5O-007F76; Sat, 12 Jan 2019 01:34:32 +0100 User-agent: mu4e 1.0; emacs 26.1 From: Arne Babenhauserheide Date: Sat, 12 Jan 2019 01:24:58 +0100 Message-ID: <871s5iemss.fsf@web.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:UKlJ9Db3S4Jf7WE6+SgNFP6PLt9bGQ2VkAtsHCitjlNHvtz5MSt uGGx+i7yzV7I7T7VAF8Ot2aWyyTZIY9gHWBRPRQOXN98PoNdPeTnH428upJ/QtuwhVb16vE VIHV8BevjuAngxBJizQsMVDMouDgdYDsNtMrFIkezm1nExrlgjZ6sxWrMOquBdiUnxuep76 hnFJKNWvSXrNu/k+NwW0A== X-UI-Out-Filterresults: notjunk:1;V03:K0:lGjCu7cCzQs=:Fuwu/C32BYSL+PAUs3cfiH oz39uqNEC2Oq0wpsZYgsmhj37nxHCG/lDKX8n09HmYOqbH+CpS6RS+MOsd4K+Bnuo+PPaqJ3l ND9xbOU5ueQa9F6BY4bRH5Te2q7S/QyvxOiNnXjNZMs4ExcZkbkSVfzg0GYr3JxcT2bNBeMhR aW24AxKktbXmKY5u37fOfep9Vm2yMTjuONbOHLFiW/BJrC8ASn4dvSqjI+i5sNvX0j4cyPe42 5kfztZZB3VO2hrx2MuhkJiXAwH5Ovxnc4LgwYRnpFdxrUaZ29PZ/hQqIgdXJONFBF9EHRUKLp Oxq7qTe8XA5DPoWyJ2Xc47haDCo5zULcKJENGHZnCrEIJQeGqFJveICVnU8a3F4lLXLouiulZ pDwhOdPKOsH1azFzA3nxEP0vpgxBwXg56BDPh0Zhb94hwLlMLiWBa1ck5AsQWhz0jhtnmhfIR 5kImjdBg0iLpUyx7RI+rP4+cWZzhuocEWTzQWnrXJ7WqXy2CDbXCqSG1K8NayU+nirz+eDMxV mqee2K4jeTRVEys9nV8/vCH9vRjKJvL5hV7vSd+B+XWUs3G2TK49XPWc7T+4LUy8gZiGJISF7 i7urZHsG7eeQY8gj22/VBkGYTgZ7ZvHSkcekGUuUPKE23HMh6twc7hStLajm3HIG1K8/TrINI Iq9hFbly39lpX5QJSZVpVTyo1xBdQrwoGgJZf8nBu5pIfQpl2g7mlEawiuIUbwnoSKFEX2xc4 MiYc7r7QYR2jKOHjf6ZeYiQdEjsAspc8s/zEieCqmje63rnmkpHjkPhCxYXmyAmS0nLqsVuNe xXQMo1qZgRLa1ol+icXXr19JjS8n11LByaq9Aq2d0PkVAI1RujioGu3IaD9mVPkaqLEhT7h5M aClQUghhgcPQxTpvQPRE5sCmtJjcL3gbWbmCSuIPI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-Mailman-Approved-At: Fri, 11 Jan 2019 21:16:32 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (libaom): New variable. * gnu/packages/video.scm (ffmpeg): Add libaom support. [inputs] new input libaom. [arguments] new configure-flag --enable-libaom. --- gnu/packages/video.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 52facebe4..97ae20b05 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -236,6 +236,40 @@ A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3.") (license license:gpl2+))) +(define-public libaom + (package + (name "libaom") + (version "22b150bf040608028a56d8bf39e72f771383d836") ;; master + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://aomedia.googlesource.com/aom/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1pdd5h3n42607n6qmggz4yv8izhjr2kl6knb3kh7gh4v0vy47h1r")))) + (build-system cmake-build-system) + (native-inputs + `(("git" ,git) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("python" ,python))) ; to detect the version + (arguments + `(#:tests? #f ;no check target + #:configure-flags + ;; build dynamic library + (list "-DBUILD_SHARED_LIBS=YES" + "-DENABLE_PIC=TRUE" + "-DAOM_TARGET_CPU=generic" + (string-append "-DCMAKE_INSTALL_PREFIX=" + (assoc-ref %outputs "out"))))) + (home-page "https://aomedia.googlesource.com/aom/") + (synopsis "AV1 Codec Library") + (description "libaom is the reference encoder of AV1.") + (license license:bsd-2))) + + (define-public libmpeg2 (package (name "libmpeg2") @@ -700,6 +734,7 @@ standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).") ("opus" ,opus) ("ladspa" ,ladspa) ("lame" ,lame) + ("libaom" ,libaom) ("libass" ,libass) ("libbluray" ,libbluray) ("libcaca" ,libcaca) @@ -778,7 +813,8 @@ standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).") ;; --enable-libzmq enable message passing via libzmq [no] ;; --enable-libzvbi enable teletext support via libzvbi [no] ;; --enable-opencl enable OpenCL code - '("--enable-avresample" + '("--enable-libaom" ; for AV1 + "--enable-avresample" "--enable-gpl" ; enable optional gpl licensed parts "--enable-shared" "--enable-frei0r"