Patchwork gnu: Add bs1770gain.

login
register
mail settings
Submitter Alex Griffin
Date Aug. 3, 2016, 10:38 p.m.
Message ID <1470263926.2786226.685358969.59FB39EA@webmail.messagingengine.com>
Download mbox | patch
Permalink /patch/14298/
State New
Headers show

Comments

Alex Griffin - Aug. 3, 2016, 10:38 p.m.
This patch adds bs1770gain, a tool for adjusting and normalizing the
loudness of audio and video files.
Leo Famulari - Aug. 7, 2016, 2:50 a.m.
On Wed, Aug 03, 2016 at 05:38:46PM -0500, Alex Griffin wrote:
> This patch adds bs1770gain, a tool for adjusting and normalizing the
> loudness of audio and video files.
> 
> * gnu/packages/video.scm (bs1770gain): New variable.

Thanks!

The license headers say GPL version 2 or later, so I changed it to
gpl2+.

And, since it operates on audio, I moved it to the audio package module.

Pushed as e87c7ec2

Patch

From 166ed6d602c21bdc6544775327424187ac19cc3d Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Wed, 3 Aug 2016 15:02:04 -0500
Subject: [PATCH 1/2] gnu: Add bs1770gain.

* gnu/packages/video.scm (bs1770gain): New variable.
---
 gnu/packages/video.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index e3da8f1..169cbb5 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1562,3 +1562,26 @@  and MPEG system streams.")
                    license:lgpl2.1
                    license:lgpl2.1+
                    license:gpl2))))
+
+(define-public bs1770gain
+  (package
+    (name "bs1770gain")
+    (version "0.4.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://sourceforge/bs1770gain/bs1770gain/"
+                           version "/bs1770gain-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1syr8qchs8091z9ayivj723szlidx81gll099bmk9kgpykmckd62"))))
+    (build-system gnu-build-system)
+    (inputs `(("ffmpeg" ,ffmpeg)
+              ("sox" ,sox)))
+    (home-page "http://bs1770gain.sourceforge.net/")
+    (synopsis "Tool to adjust loudness of media files")
+    (description
+     "BS1770GAIN is a loudness scanner compliant with ITU-R BS.1770 and its
+flavors EBU R128, ATSC A/85, and ReplayGain 2.0.  It helps normalizing the
+loudness of audio and video files to the same level.")
+    (license license:gpl2)))
-- 
2.9.2