From patchwork Wed Nov 27 16:59:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jelle Licht X-Patchwork-Id: 16256 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 D3BE5177C7; Wed, 27 Nov 2019 17:05:52 +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,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 8CD7117793 for ; Wed, 27 Nov 2019 17:05:52 +0000 (GMT) Received: from localhost ([::1]:40664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia0lD-0004LG-Bi for patchwork@mira.cbaines.net; Wed, 27 Nov 2019 12:05:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35223) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia0fb-0008BM-TW for guix-patches@gnu.org; Wed, 27 Nov 2019 12:00:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ia0fa-0007Li-Cv for guix-patches@gnu.org; Wed, 27 Nov 2019 12:00:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50173) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ia0fa-0007LQ-5g for guix-patches@gnu.org; Wed, 27 Nov 2019 12:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ia0fa-0000kS-2Z for guix-patches@gnu.org; Wed, 27 Nov 2019 12:00:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38403] [PATCH] gnu: Add intel-vaapi-driver-g45-h264. Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Nov 2019 17:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38403 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38403@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15748739542790 (code B ref -1); Wed, 27 Nov 2019 17:00:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Nov 2019 16:59:14 +0000 Received: from localhost ([127.0.0.1]:56146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ia0eo-0000iw-5v for submit@debbugs.gnu.org; Wed, 27 Nov 2019 11:59:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:39226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ia0en-0000ip-90 for submit@debbugs.gnu.org; Wed, 27 Nov 2019 11:59:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35026) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ia0el-0007hA-2y for guix-patches@gnu.org; Wed, 27 Nov 2019 11:59:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ia0ei-0006Vp-61 for guix-patches@gnu.org; Wed, 27 Nov 2019 11:59:10 -0500 Received: from mail1.fsfe.org ([217.69.89.151]:56176) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ia0eh-0006UK-UA for guix-patches@gnu.org; Wed, 27 Nov 2019 11:59:08 -0500 From: Jelle Licht Date: Wed, 27 Nov 2019 17:59:02 +0100 Message-ID: <87y2w1uug9.fsf@jlicht.xyz> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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-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 Hey Guix, I am not sure if this package offers any practical benefit or not, so I defer to someone who actually knows what they are talking about to make a judgment call ;-). This variant of intel-vaapi-driver is a backport of the ancient g45-h264 branch that used to be maintained by the intel-vaapi-driver team. As far as I know, the reason they don't maintain this branch anymore is that hardware accelerated h264 decoding on the G45 chipset was much too slow for 1080p video, as by default it only had 32MB of VRAM to work with. It so happens that the librebooted Thinkpad T400 has one of these G45-based iGPUs, with one change: the iGPU has 256MB VRAM available. Using this package and a `hwdec=vaapi' setting in ~/.config/mpv/mpv.conf, I enjoy smooth video playback and low CPU usage for 1080p video using mpv. From 8727588a6bca185f17480efc7327774b041e240d Mon Sep 17 00:00:00 2001 From: Jelle Licht Date: Wed, 27 Nov 2019 16:16:47 +0100 Subject: [PATCH] gnu: Add intel-vaapi-driver-g45-h264. * gnu/packages/video.scm (intel-vaapi-driver-g45-h264): New variable. --- gnu/packages/video.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 9836f67386..5eb0c7175f 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2787,6 +2787,35 @@ post-processing of video formats like MPEG2, H.264/AVC, and VC-1.") (license (list license:bsd-2 ; src/gen9_vp9_const_def.c license:expat)))) ; the rest, excluding the test suite +(define-public intel-vaapi-driver-g45-h264 + (let ((base intel-vaapi-driver)) + (package + (inherit base) + (name "intel-vaapi-driver-g45-h264") + (version "2.3.0") + (source (origin + (method url-fetch) + (uri + (string-append + "https://bitbucket.org/alium/g45-h264/downloads/intel-driver-g45-h264-" + version ".tar.gz")) + (sha256 + (base32 + "0hf6h6754qf2sfhfq5i6pwn5dc06hjib6m05r8999ilbvrv4axar")))) + (arguments + (substitute-keyword-arguments (package-arguments base) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (add-before 'bootstrap 'skip-premature-configure + (lambda _ + (setenv "NOCONFIGURE" "set") + #t)))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ,@(package-native-inputs base)))))) + (define-public openh264 (package (name "openh264") -- 2.24.0