Message ID | 3e0b2b90b037404da7bf9be8932f9b0d69c1a39a.1693537692.git.maxim.cournoyer@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 78A8E27BBE2; Fri, 1 Sep 2023 04:09:00 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C3FA827BBE9 for <patchwork@mira.cbaines.net>; Fri, 1 Sep 2023 04:08:59 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1qbuWk-00013G-KB; Thu, 31 Aug 2023 23:08:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qbuWj-00012u-6n for guix-patches@gnu.org; Thu, 31 Aug 2023 23:08:53 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qbuWi-0001ra-VE for guix-patches@gnu.org; Thu, 31 Aug 2023 23:08:52 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qbuWr-0006oi-Og; Thu, 31 Aug 2023 23:09:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65668] [PATCH] gnu: gst-plugins-bad: Remove the svt-hevc input. Resent-From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, rg@raghavgururajan.name, guix-patches@gnu.org Resent-Date: Fri, 01 Sep 2023 03:09:01 +0000 Resent-Message-ID: <handler.65668.B.169353771826171@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65668 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65668@debbugs.gnu.org, maxim.cournoyer@gmail.com Cc: Liliana Marie Prikler <liliana.prikler@gmail.com>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Raghav Gururajan <rg@raghavgururajan.name> X-Debbugs-Original-To: guix-patches@gnu.org, maxim.cournoyer@gmail.com X-Debbugs-Original-Xcc: Liliana Marie Prikler <liliana.prikler@gmail.com>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Raghav Gururajan <rg@raghavgururajan.name> Received: via spool by submit@debbugs.gnu.org id=B.169353771826171 (code B ref -1); Fri, 01 Sep 2023 03:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Sep 2023 03:08:38 +0000 Received: from localhost ([127.0.0.1]:59558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1qbuWU-0006o3-6c for submit@debbugs.gnu.org; Thu, 31 Aug 2023 23:08:38 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maxim.cournoyer@gmail.com>) id 1qbuWR-0006np-VV for submit@debbugs.gnu.org; Thu, 31 Aug 2023 23:08:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>) id 1qbuWD-00010d-0c for guix-patches@gnu.org; Thu, 31 Aug 2023 23:08:21 -0400 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <maxim.cournoyer@gmail.com>) id 1qbuWA-0001ni-OH for guix-patches@gnu.org; Thu, 31 Aug 2023 23:08:20 -0400 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-76f08e302a1so95546785a.1 for <guix-patches@gnu.org>; Thu, 31 Aug 2023 20:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693537697; x=1694142497; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=0WxoVIY1afsefOFdR2IWYED/5scH4IYnZyoUO86wbaQ=; b=fu1ARpR3+z2GKfnrm5JuhpxtBO72EtaX38N8jW2tX3Qgj1mHTApUSJ8sVdbyouzuwj F80cFAG7TWBgHozZCMXvetLaudIHbkcuIXLuhQfvR56RND3ScHpRAs3ejh43HEnY/y0M /RmTPSESA9RAi9lWijQzwp6u7Sk657lnoabEhZeIY7mtlseslu+i8RSB/v1hvHtHKfca kdTG/2oBDzMmfOUEoBq/+UXHOXrxttMeOV9Mj5Y+70So1Zk8RXNstwj4+ROxpTWE9dMH zWQYk/O9Zy7ATzOGq8Kc8AzEynnzcm0Ur5IBcgQDzygC18vNsT9Vt6WbAsJ8ntxuwROM RkOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693537697; x=1694142497; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0WxoVIY1afsefOFdR2IWYED/5scH4IYnZyoUO86wbaQ=; b=Nd8InKgiHbh06ZAsc7fMUx1TMxwvoAWucJfZREwfZjL/nHoe1PyMtlKnKeREnz3Y0d U0hJvK8c6e3ixWvH6mjsYhWsxw8I+DUbNrVtR0A1fAwAmBpxx1uPihA7FOSm46BY29d1 8g/qRNSE2ZZYRrqk7XLHMzpyOkvS39xxlQTiAA4KqICCXCn68WW5vA+sxMA0usZwiLar /bglyVHdZd916RuPnGMqeRhHA9eavE9JHD4SYUZCCQt+1Roa1KUecpX6cnj7SrwKz3jH l6T3hVvb5HI+PL2mP4HH8WuTrGERWBJbDcPVUz0jKB3XC3Dywy/QCD0m1yqDMz8Fx15c kITw== X-Gm-Message-State: AOJu0YwmmbFvUD/f2OQhpXOiuphl/RmwDWC6fBz38czWesB5JmiHZsGB eIdxGUOs9EEnLlOu4ImgZmvgsW5r2uY= X-Google-Smtp-Source: AGHT+IFyZZhGbP/RIzpkQuIKgMp3s6sQftlQzMXgn6OI21j3kq9sJyGUDYdh1P2E+xW9ra7EttBL4A== X-Received: by 2002:a05:620a:c90:b0:76c:e9e1:2b2 with SMTP id q16-20020a05620a0c9000b0076ce9e102b2mr990703qki.13.1693537697308; Thu, 31 Aug 2023 20:08:17 -0700 (PDT) Received: from localhost.localdomain (dsl-10-128-23.b2b2c.ca. [72.10.128.23]) by smtp.gmail.com with ESMTPSA id y21-20020a37e315000000b0076827ce13f6sm1095806qki.10.2023.08.31.20.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 20:08:16 -0700 (PDT) From: Maxim Cournoyer <maxim.cournoyer@gmail.com> Date: Thu, 31 Aug 2023 23:08:12 -0400 Message-ID: <3e0b2b90b037404da7bf9be8932f9b0d69c1a39a.1693537692.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x733.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#65668] gnu: gst-plugins-bad: Remove the svt-hevc input.
|
|
Commit Message
Maxim Cournoyer
Sept. 1, 2023, 3:08 a.m. UTC
* gnu/packages/gstreamer.scm (gst-plugins-bad) [inputs]: Remove svt-hevc; add comment. --- gnu/packages/gstreamer.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) base-commit: d6966b8a5b4f2ddda2bc685b9642e7a1c2cbe17c prerequisite-patch-id: c9372a1255e3bfb4f2e820f4e7c9706e3bf04203 prerequisite-patch-id: 5cbcf4b4ec5ee0db003b10898a2197c6b741973e prerequisite-patch-id: 0a763f65a4b5042a187bd4aa039e80a3c173015d prerequisite-patch-id: 71a9ea33b991aa2829aef26c51a3e892d34ab4e1
Comments
Am Donnerstag, dem 31.08.2023 um 23:08 -0400 schrieb Maxim Cournoyer: > * gnu/packages/gstreamer.scm (gst-plugins-bad) > [inputs]: Remove svt-hevc; add comment. > --- > gnu/packages/gstreamer.scm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm > index 86886c025f..f38d2157bd 100644 > --- a/gnu/packages/gstreamer.scm > +++ b/gnu/packages/gstreamer.scm > @@ -849,7 +849,9 @@ (define-public gst-plugins-bad > (inputs > (append > (if (target-x86?) (list mediasdk) '()) > - (if (target-x86-64?) (list svt-hevc) '()) > + ;; Note: svt-hevc cannot be used, as it would break the > package for > + ;; older x86_64 CPUs such as Core 2 Duo that lack AVX2 (see: > + ;; > https://github.com/OpenVisualCloud/SVT-HEVC/issues/573#issuecomment-680678144 > ). > (list bluez > bzip2 > cairo I think you should put that comment above the commented existing line rather than deleting it outright. We should also look into building svt-hevc without those CPU extensions; perhaps using tuning instead. The comment could itself be shortened to svt-hevc is broken on older x86_64 CPUs [such as…] see also <URL> but you do you in terms of phrasing :) Cheers
Hi Liliana, Liliana Marie Prikler <liliana.prikler@gmail.com> writes: > Am Donnerstag, dem 31.08.2023 um 23:08 -0400 schrieb Maxim Cournoyer: >> * gnu/packages/gstreamer.scm (gst-plugins-bad) >> [inputs]: Remove svt-hevc; add comment. >> --- >> gnu/packages/gstreamer.scm | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm >> index 86886c025f..f38d2157bd 100644 >> --- a/gnu/packages/gstreamer.scm >> +++ b/gnu/packages/gstreamer.scm >> @@ -849,7 +849,9 @@ (define-public gst-plugins-bad >> (inputs >> (append >> (if (target-x86?) (list mediasdk) '()) >> - (if (target-x86-64?) (list svt-hevc) '()) >> + ;; Note: svt-hevc cannot be used, as it would break the >> package for >> + ;; older x86_64 CPUs such as Core 2 Duo that lack AVX2 (see: >> + ;; >> https://github.com/OpenVisualCloud/SVT-HEVC/issues/573#issuecomment-680678144 >> ). >> (list bluez >> bzip2 >> cairo > I think you should put that comment above the commented existing line > rather than deleting it outright. We should also look into building > svt-hevc without those CPU extensions; perhaps using tuning instead. It's not possible to build svt-hevc without those extensions: they are depended upon. Because it can't be used, I think it makes sense to not leave dead code (since it's not going to be resolved in the future and re-enabled). > The comment could itself be shortened to > svt-hevc is broken on older x86_64 CPUs [such as…] > see also <URL> > but you do you in terms of phrasing :) :-) I've moved things a bit. Is it a 'LGTM' from you?
Am Freitag, dem 01.09.2023 um 21:51 -0400 schrieb Maxim Cournoyer: > Hi Liliana, > > Liliana Marie Prikler <liliana.prikler@gmail.com> writes: > > > Am Donnerstag, dem 31.08.2023 um 23:08 -0400 schrieb Maxim > > Cournoyer: > > > * gnu/packages/gstreamer.scm (gst-plugins-bad) > > > [inputs]: Remove svt-hevc; add comment. > > > --- > > > gnu/packages/gstreamer.scm | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/gnu/packages/gstreamer.scm > > > b/gnu/packages/gstreamer.scm > > > index 86886c025f..f38d2157bd 100644 > > > --- a/gnu/packages/gstreamer.scm > > > +++ b/gnu/packages/gstreamer.scm > > > @@ -849,7 +849,9 @@ (define-public gst-plugins-bad > > > (inputs > > > (append > > > (if (target-x86?) (list mediasdk) '()) > > > - (if (target-x86-64?) (list svt-hevc) '()) > > > + ;; Note: svt-hevc cannot be used, as it would break the > > > package for > > > + ;; older x86_64 CPUs such as Core 2 Duo that lack AVX2 > > > (see: > > > + ;; > > > https://github.com/OpenVisualCloud/SVT-HEVC/issues/573#issuecomment-680678144 > > > ). > > > (list bluez > > > bzip2 > > > cairo > > I think you should put that comment above the commented existing > > line rather than deleting it outright. We should also look into > > building svt-hevc without those CPU extensions; perhaps using > > tuning instead. > > It's not possible to build svt-hevc without those extensions: they > are depended upon. Because it can't be used, I think it makes sense > to not leave dead code (since it's not going to be resolved in the > future and re-enabled). Looking at the code of svt-hevc, these additional libraries appear to be just adding versions of the methods already implemented in C. You might want to look into commenting the following lines add_subdirectory(ASM_SSE2) add_subdirectory(ASM_SSSE3) add_subdirectory(ASM_SSE4_1) add_subdirectory(ASM_AVX2) HTH > > The comment could itself be shortened to > > svt-hevc is broken on older x86_64 CPUs [such as…] > > see also <URL> > > but you do you in terms of phrasing :) > > :-) I've moved things a bit. Is it a 'LGTM' from you? Well, I'd rather keep the svt-hevc issue above open than concluding it cannot be done, but otherwise, yes, LGTM. Cheers
Hi Liliana, Liliana Marie Prikler <liliana.prikler@gmail.com> writes: [...] >> It's not possible to build svt-hevc without those extensions: they >> are depended upon. Because it can't be used, I think it makes sense >> to not leave dead code (since it's not going to be resolved in the >> future and re-enabled). > Looking at the code of svt-hevc, these additional libraries appear to > be just adding versions of the methods already implemented in C. > > You might want to look into commenting the following lines > > add_subdirectory(ASM_SSE2) > add_subdirectory(ASM_SSSE3) > add_subdirectory(ASM_SSE4_1) > add_subdirectory(ASM_AVX2) From my understanding and per upstream comments linked earlier, svt-hevc is all about implementing some video codec using latest Intel technologies. The project synopsis on Github reads: --8<---------------cut here---------------start------------->8--- SVT HEVC encoder. Scalable Video Technology (SVT) is a software-based video coding technology that is highly optimized for Intel® Xeon® processors --8<---------------cut here---------------end--------------->8--- So I don't think it can be made to work (at least usefully) on older processors, and it's explicitly an upstream non-goal. [...] > Well, I'd rather keep the svt-hevc issue above open than concluding it > cannot be done, but otherwise, yes, LGTM. I think it's safe to conclude that it cannot be done, given what I've written above. Does it make sense?
Hi, Maxim Cournoyer <maxim.cournoyer@gmail.com> writes: [...] >> Well, I'd rather keep the svt-hevc issue above open than concluding it >> cannot be done, but otherwise, yes, LGTM. > > I think it's safe to conclude that it cannot be done, given what I've > written above. Does it make sense? I've now installed the change; closing.
diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm index 86886c025f..f38d2157bd 100644 --- a/gnu/packages/gstreamer.scm +++ b/gnu/packages/gstreamer.scm @@ -849,7 +849,9 @@ (define-public gst-plugins-bad (inputs (append (if (target-x86?) (list mediasdk) '()) - (if (target-x86-64?) (list svt-hevc) '()) + ;; Note: svt-hevc cannot be used, as it would break the package for + ;; older x86_64 CPUs such as Core 2 Duo that lack AVX2 (see: + ;; https://github.com/OpenVisualCloud/SVT-HEVC/issues/573#issuecomment-680678144). (list bluez bzip2 cairo