From patchwork Sat Sep 30 03:08:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 54419 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 5FB0127BBE9; Sat, 30 Sep 2023 04:08:59 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED 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 98A1127BBE2 for ; Sat, 30 Sep 2023 04:08:57 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmQLY-0000x2-MI; Fri, 29 Sep 2023 23:08:48 -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 ) id 1qmQLX-0000qx-LN for guix-patches@gnu.org; Fri, 29 Sep 2023 23:08:47 -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 ) id 1qmQLW-0007Tr-VB for guix-patches@gnu.org; Fri, 29 Sep 2023 23:08:46 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmQLm-0003vT-27 for guix-patches@gnu.org; Fri, 29 Sep 2023 23:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66271] [PATCH 1/2] gnu: Add ffmpeg-progress-yield. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Sep 2023 03:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66271 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66271@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 66271-submit@debbugs.gnu.org id=B66271.169604334015084 (code B ref 66271); Sat, 30 Sep 2023 03:09:02 +0000 Received: (at 66271) by debbugs.gnu.org; 30 Sep 2023 03:09:00 +0000 Received: from localhost ([127.0.0.1]:57502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmQLk-0003vB-6v for submit@debbugs.gnu.org; Fri, 29 Sep 2023 23:09:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmQLi-0003uv-59 for 66271@debbugs.gnu.org; Fri, 29 Sep 2023 23:08:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6232C240101 for <66271@debbugs.gnu.org>; Sat, 30 Sep 2023 05:08:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696043317; bh=oDbWOzYJqZtRoWQBes7KD04qE7ynRJqpRrAMf/+WRRA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=MriU9IcfeCXtakKQ6nzhXdroHV92ZEQBh49ND+VAlT3adh4My7vfQUpQl/nZh7j7o 6k6GQGtgir2/QFj5ooAY+yo8pPHnpJcfZUV7JWC73ZdwT5rixn4n9nfgGh1DzQJ3DV TM/jc1qrEChz7p5dKR8VoTUdnIcO7BCxesHSnL1JRJ1mF1ATtea5GxR5yEn4iMx23s 7NkhlgNzCcF5takOWRvls8Iee8UGLVfzVBERDt5gD8HpknQCRWO0sBLjfhKrCyZmYr GQnlyRDZnptrGWeHXXvcFxPRk40HasMMETwVplVo2edamaQWFYlxSEDqx69luGThEx 1LC6TA1TaNzag== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RyBxc0YH0z9rxB; Sat, 30 Sep 2023 05:08:35 +0200 (CEST) From: Vinicius Monego Date: Sat, 30 Sep 2023 03:08:22 +0000 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (ffmpeg-progress-yield): New variable. --- gnu/packages/video.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 5375424ce6..a707541b68 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1940,6 +1940,39 @@ (define-public ffmpegthumbnailer videoformats depend on the configuration flags of ffmpeg.") (license license:gpl2+))) +(define-public ffmpeg-progress-yield + (package + (name "ffmpeg-progress-yield") + (version "0.7.8") + (source (origin + (method url-fetch) + (uri (pypi-uri "ffmpeg-progress-yield" version)) + (sha256 + (base32 + "07j6m8p8z8ybl75h0d4xzjl1pvkfzr0i73siysqcgrrahdgsxrls")))) + (build-system pyproject-build-system) + (arguments + ;; Not sure if the test file actually does anything. + (list #:phases #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "test/test.py")))) + (add-after 'wrap 'wrap-program + ;; Wrap ffmpeg on the executable. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((fpy "bin/ffmpeg-progress-yield") + (ffm "bin/ffmpeg")) + (wrap-program (search-input-file outputs fpy) + `("PATH" ":" prefix + (,(search-input-file inputs ffm)))))))))) + (inputs (list bash-minimal ffmpeg)) + (home-page "https://github.com/slhck/ffmpeg-progress-yield") + (synopsis "Run an ffmpeg command with progress") + (description "This package allows an ffmpeg command to run with progress. +It is usually a complement to @code{ffmpeg-normalize}.") + (license license:expat))) + (define-public vlc (package (name "vlc") From patchwork Sat Sep 30 03:08:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 54420 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 B9FE227BBEA; Sat, 30 Sep 2023 04:10:02 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 DBCCC27BBE2 for ; Sat, 30 Sep 2023 04:10:01 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmQMW-000148-2P; Fri, 29 Sep 2023 23:09:48 -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 ) id 1qmQMU-00013z-Vd for guix-patches@gnu.org; Fri, 29 Sep 2023 23:09:46 -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 ) id 1qmQMU-0007tv-LA for guix-patches@gnu.org; Fri, 29 Sep 2023 23:09:46 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmQMj-0003xT-OS for guix-patches@gnu.org; Fri, 29 Sep 2023 23:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66271] [PATCH 2/2] gnu: Add ffmpeg-normalize. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Sep 2023 03:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66271 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66271@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 66271-submit@debbugs.gnu.org id=B66271.169604335115146 (code B ref 66271); Sat, 30 Sep 2023 03:10:01 +0000 Received: (at 66271) by debbugs.gnu.org; 30 Sep 2023 03:09:11 +0000 Received: from localhost ([127.0.0.1]:57506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmQLu-0003wD-JN for submit@debbugs.gnu.org; Fri, 29 Sep 2023 23:09:10 -0400 Received: from mout02.posteo.de ([185.67.36.66]:55957) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmQLt-0003vw-AE for 66271@debbugs.gnu.org; Fri, 29 Sep 2023 23:09:09 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8927B240101 for <66271@debbugs.gnu.org>; Sat, 30 Sep 2023 05:08:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696043328; bh=ccDj1LnHpzlWxIG/Wd6XOvxfJGG4Xyqr0uK44CVKwSo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=qsrIMGl162W/vgh5wrLmtqGjApJF2sUj+mVtszrLSt3uEiuOFsBiPH8MawklqHXEy iAbOMzoZFTnESahGLBAHB9oA6kY1GnU7Q4BTgRdkiqTMHKBp7S+B3UBJtwesphBv+j nfzKNajkQUirNTq3j2U7usayqHYlmQk0OUCrLNYyU+7koX+kdGa+xDvLEuOsSVu2h8 hL+fAt0PKAQ4WXrVE5x5Hpz6QWwE/YPCfKGG/359QK565w8L3qiVXGBBtpGVwOREo8 0xs6TR6B0uTip3zco2ttDKA2yZKrZ9aepT+X2XkZiWceDMT2+fEN2AZwjNE3VdCs9G gYNuT/lsJTTuw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RyBxq3sq4z9rxD; Sat, 30 Sep 2023 05:08:47 +0200 (CEST) From: Vinicius Monego Date: Sat, 30 Sep 2023 03:08:23 +0000 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/video.scm (ffmpeg-normalize): New variable. --- gnu/packages/video.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index a707541b68..44fe322a3b 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -1973,6 +1973,48 @@ (define-public ffmpeg-progress-yield It is usually a complement to @code{ffmpeg-normalize}.") (license license:expat))) +(define-public ffmpeg-normalize + (package + (name "ffmpeg-normalize") + (version "1.27.7") + (source (origin + (method url-fetch) + (uri (pypi-uri "ffmpeg-normalize" version)) + (sha256 + (base32 + "0idqqgsr3p840vx2x3idn851qwghjdbm6v4yrq2kprppyfvglni7")))) + (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" + "test/test.py")))) + (add-after 'wrap 'wrap-ffmpeg + ;; Wrap ffmpeg on the executable. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((ffn (search-input-file outputs + "bin/ffmpeg-normalize")) + (ffm (search-input-file inputs "bin/ffmpeg"))) + (wrap-program ffn + `("FFMPEG_PATH" = (,ffm))))))))) + (native-inputs (list python-pytest)) + (inputs (list bash-minimal ffmpeg)) + (propagated-inputs (list ffmpeg-progress-yield + python-colorama + python-colorlog + python-tqdm)) + (home-page "https://github.com/slhck/ffmpeg-normalize") + (synopsis "Normalize audio via ffmpeg") + (description "This program normalizes media files to a certain loudness +level using the EBU R128 loudness normalization procedure. It can also +perform RMS-based normalization (where the mean is lifted or attenuated), +or peak normalization to a certain target level. Batch processing of several +input files is possible, including video files.") + (license license:expat))) + (define-public vlc (package (name "vlc")