diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-12 23:28:02 +0200 |
---|---|---|
committer | Chess Griffin <chess@slackbuilds.org> | 2010-05-12 23:28:02 +0200 |
commit | 5fb3d819a50e3c5103d5c826ef45964ba79b0e2f (patch) | |
tree | 15c4fdf44aa2c734764262d004780ff6ee179de6 /audio | |
parent | 2c66183963eeb7a74ae17871e7ec35a555715cbd (diff) |
audio/mp3gain: Added to 12.2 repository
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mp3gain/README | 8 | ||||
-rw-r--r-- | audio/mp3gain/mp3gain.1 | 117 | ||||
-rw-r--r-- | audio/mp3gain/mp3gain.SlackBuild | 57 | ||||
-rw-r--r-- | audio/mp3gain/mp3gain.info | 8 | ||||
-rw-r--r-- | audio/mp3gain/slack-desc | 19 |
5 files changed, 209 insertions, 0 deletions
diff --git a/audio/mp3gain/README b/audio/mp3gain/README new file mode 100644 index 0000000000000..7702e1a6db900 --- /dev/null +++ b/audio/mp3gain/README @@ -0,0 +1,8 @@ +mp3gain (adjusts mp3 files so they have the same volume) + +MP3Gain does not just do peak normalization, as many normalizers +do. Instead, it does some statistical analysis to determine how loud +the file actually sounds to the human ear. Also, the changes MP3Gain +makes are completely lossless. There is no quality lost in the change +because the program adjusts the mp3 file directly, without decoding +and re-encoding. diff --git a/audio/mp3gain/mp3gain.1 b/audio/mp3gain/mp3gain.1 new file mode 100644 index 0000000000000..fb3cf2ddbd9d0 --- /dev/null +++ b/audio/mp3gain/mp3gain.1 @@ -0,0 +1,117 @@ +.TH MP3GAIN "1" "April 2009" "mp3gain version 1.4.6" "User Commands" +.SH NAME +mp3gain \- analyzes and adjusts mp3 files so that they have the same volume +.SH SYNOPSIS +.B mp3gain +[\fIoptions\fR] \fI<infile> \fR[\fI<infile 2> \fR...] +.SH DESCRIPTION +Tired of reaching for your volume knob every time your mp3 player changes to a new song? +MP3Gain analyzes and adjusts mp3 files so that they have the same volume. +.PP +MP3Gain does not just do peak normalization, as many normalizers do. Instead, it does some statistical analysis to determine how loud the file actually sounds to the human ear. +.PP +Also, the changes MP3Gain makes are completely lossless. There is no quality lost in the change because the program adjusts the mp3 file directly, without decoding and re-encoding. +.SH OPTIONS +.TP +\fB\-v\fR +show version number +.TP +\fB\-g\fR <i> +apply gain i to mp3 without doing any analysis +.TP +\fB\-l\fR 0 <i> +apply gain i to channel 0 (left channel) of mp3 +without doing any analysis (ONLY works for STEREO mp3s, +not Joint Stereo mp3s) +.TP +\fB\-l\fR 1 <i> +apply gain i to channel 1 (right channel) of mp3 +.TP +\fB\-r\fR +apply Track gain automatically (all files set to equal loudness) +.TP +\fB\-k\fR +automatically lower Track/Album gain to not clip audio +.TP +\fB\-a\fR +apply Album gain automatically (files are all from the same +album: a single gain change is applied to all files, so +their loudness relative to each other remains unchanged, +but the average album loudness is normalized) +.TP +\fB\-m\fR <i> +modify suggested MP3 gain by integer i +.TP +\fB\-d\fR <n> +modify suggested dB gain by floating\-point n +.TP +\fB\-c\fR +ignore clipping warning when applying gain +.TP +\fB\-o\fR +output is a database\-friendly tab\-delimited list +.TP +\fB\-t\fR +mp3gain writes modified mp3 to temp file, then deletes original +instead of modifying bytes in original file +.TP +\fB\-q\fR +Quiet mode: no status messages +.TP +\fB\-p\fR +Preserve original file timestamp +.TP +\fB\-x\fR +Only find max. amplitude of mp3 +.TP +\fB\-f\fR +Force mp3gain to assume input file is an MPEG 2 Layer III file +(i.e. don't check for mis\-named Layer I or Layer II files) +.TP +\-? or \fB\-h\fR +show this message +.TP +\fB\-s\fR c +only check stored tag info (no other processing) +.TP +\fB\-s\fR d +delete stored tag info (no other processing) +.TP +\fB\-s\fR s +skip (ignore) stored tag info (do not read or write tags) +.TP +\fB\-s\fR r +force re\-calculation (do not read tag info) +.TP +\fB\-u\fR +undo changes made by mp3gain (based on stored tag info) +.TP +\fB\-w\fR +"wrap" gain change if gain+change > 255 or gain+change < 0 +(use "\-? wrap" switch for a complete explanation) +.PP +If you specify \fB\-r\fR and \fB\-a\fR, only the second one will work. +If you do not specify \fB\-c\fR, the program will stop and ask before +applying gain change to a file that might clip. +.SH AUTHORS +Coding by Glen Sawyer +.br +Unix-ification by Stefan Partheymüller +.br +DLL-ification by John Zitterkopf +.br +Additional tweaks by Artur Polaczynski, Mark Armbrust, and others +.PP +Man page created by B. Watson for the SlackBuilds.org project, but may +be used by others. +.SH COPYRIGHT +Copyright(c) 2001-2004 by Glen Sawyer. +.PP +mp3gain uses mpglib, which can be found at \fIhttp://www.mpg123.de\fR. +.PP +mp3gain is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. +.SH SEE ALSO +\fBnormalize(1)\fR diff --git a/audio/mp3gain/mp3gain.SlackBuild b/audio/mp3gain/mp3gain.SlackBuild new file mode 100644 index 0000000000000..7003b5b24bc20 --- /dev/null +++ b/audio/mp3gain/mp3gain.SlackBuild @@ -0,0 +1,57 @@ +#!/bin/sh + +# Slackware build script for mp3gain + +# Written by B. Watson (yalhcru@gmail.com) + +PRGNAM=mp3gain +VERSION=${VERSION:-1.4.6} +SRCVER=$( echo $VERSION | sed 's/\./_/g' ) +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM +mkdir -p $PRGNAM +cd $PRGNAM +unzip $CWD/$PRGNAM-$SRCVER-src.zip +chown -R root:root . +chmod -R a-s,u+w,go+r-w . + +sed -i -e "s/-O3/$SLKCFLAGS/" Makefile + +make +strip $PRGNAM +mkdir -p $PKG/usr/bin +install -m0755 -o root -g root $PRGNAM $PKG/usr/bin + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp lgpl.txt $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/usr/man/man1 +gzip -9c $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/audio/mp3gain/mp3gain.info b/audio/mp3gain/mp3gain.info new file mode 100644 index 0000000000000..78921283baa12 --- /dev/null +++ b/audio/mp3gain/mp3gain.info @@ -0,0 +1,8 @@ +PRGNAM="mp3gain" +VERSION="1.4.6" +HOMEPAGE="http://mp3gain.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/mp3gain/mp3gain-1_4_6-src.zip" +MD5SUM="4327167375dce5bce97625729a95fdb9" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" +APPROVED="chess" diff --git a/audio/mp3gain/slack-desc b/audio/mp3gain/slack-desc new file mode 100644 index 0000000000000..e58b8ef08d345 --- /dev/null +++ b/audio/mp3gain/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +mp3gain: mp3gain (adjusts mp3 files so they have the same volume) +mp3gain: +mp3gain: MP3Gain does not just do peak normalization, as many normalizers +mp3gain: do. Instead, it does some statistical analysis to determine how loud +mp3gain: the file actually sounds to the human ear. Also, the changes MP3Gain +mp3gain: makes are completely lossless. There is no quality lost in the change +mp3gain: because the program adjusts the mp3 file directly, without decoding +mp3gain: and re-encoding. +mp3gain: +mp3gain: +mp3gain: |