From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 9yAzCoqRF2XUYwAAauVa8A:P1 (envelope-from ) for ; Sat, 30 Sep 2023 05:10:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 9yAzCoqRF2XUYwAAauVa8A (envelope-from ) for ; Sat, 30 Sep 2023 05:10:02 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 08AAA43F15 for ; Sat, 30 Sep 2023 05:10:02 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=qsrIMGl1; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696043402; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=SYXMVMIlrCBZ3od7ZDI2PL2FDPQF4jV0gXPz9piy6lY=; b=lS6Rr2gs98eGexxn8FwFtPRxBNYSaoMT7DSRHRqrDnEsQCxD5/6PQYe+s1DFy1NJPa92+7 5DK9ak4IrRNIe89NbsX8fAI+QKLOjoDBlZavvTW4+C93Hu61gA8fPo37x86Zqzdy/Bl1Av PXkwvFkdTHKogetqvzxOAUJjF23gf3dQoUazjR3hWbZdyP76ooUwsL9BQrE/EvLfLvgBpQ +/YIRHPManEm1+sqJHmeZg7a6tevQ8CD3M4F0oH1dscuJOlpzfJJ0mji54Cv7qEzTWjYDp O6dhlqSqnssvFY5kuJFv0NVgyzn7DTEgpm/UN6WdzPKgUY12Th6tR83wwk5g+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696043402; a=rsa-sha256; cv=none; b=dSbZYxWQD+4JKKrbSRBEmxNjc3g2frDMkgm6tkYCFkPnEhwQC6wccnYpJUYlkAY6wOAwWb R1PUYTQnaXc3JjyOm+MmtvN/LaxHKyt3b+zslS+q7xjsCJblK51u/MyIIZAmD6wxswf31S AWVwah3KndFLaseN2MTAtYxLMNF97gZ0AH1Cbo5ZadKYBsK4Kl4CuSSZQHrNmdnWynFjdy Gr5MkMFF33eLcuCl1i6EQGKvf0qmgTHIM8VuqyyNTnx/CKaESPgEzSdsxe/0jeySb00sua GtJTMV/HqMlp048ID0hFiBTLqkDb9WJR39U4Ftr18jxZzI1IVj8tR4Znummg4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=qsrIMGl1; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) 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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -3.84 X-Spam-Score: -3.84 X-Migadu-Queue-Id: 08AAA43F15 X-TUID: 8x9Pj/cHy+6c * 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") -- 2.39.2