[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/13: gnu: Add ffmpeg-normalize.
|
From: |
guix-commits |
|
Subject: |
02/13: gnu: Add ffmpeg-normalize. |
|
Date: |
Mon, 30 Oct 2023 07:19:53 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit a0eb6652b3ce386a2d3cceda3dd3723afc87ac59
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sat Sep 30 03:08:23 2023 +0000
gnu: Add ffmpeg-normalize.
* gnu/packages/video.scm (ffmpeg-normalize): New variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/video.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 420fc502bd..a6dfec06bf 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1973,6 +1973,48 @@ videoformats depend on the configuration flags of
ffmpeg.")
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")
- branch master updated (5d79012073 -> 5746d043a6), guix-commits, 2023/10/30
- 02/13: gnu: Add ffmpeg-normalize.,
guix-commits <=
- 05/13: gnu: Add python-online-judge-api-client., guix-commits, 2023/10/30
- 04/13: gnu: Add aerich., guix-commits, 2023/10/30
- 03/13: gnu: Add python-ddlparse., guix-commits, 2023/10/30
- 01/13: gnu: Add ffmpeg-progress-yield., guix-commits, 2023/10/30
- 09/13: gnu: Remove python-resolvelib@0.5., guix-commits, 2023/10/30
- 06/13: gnu: Add online-judge-tools., guix-commits, 2023/10/30
- 07/13: gnu: Add r-consort., guix-commits, 2023/10/30
- 08/13: gnu: ansible-core: Update to 2.15.5 and fix tests., guix-commits, 2023/10/30
- 11/13: gnu: labwc: Update to 0.6.5., guix-commits, 2023/10/30
- 12/13: gnu: cockatrice: Update to 2.9.0., guix-commits, 2023/10/30