From 23f253fadbfe36699da9bd39e75510190b43ba94 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sun, 9 Aug 2015 01:05:44 +0200 Subject: [PATCH] Rewrote mp3gain scripts to python-rgain. --- mp3gain_album.sh | 3 ++- mp3gain_track.sh | 3 ++- mp3gain_tracks.sh | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mp3gain_album.sh b/mp3gain_album.sh index 68ce039..a87a7e0 100755 --- a/mp3gain_album.sh +++ b/mp3gain_album.sh @@ -1,2 +1,3 @@ #!/bin/sh -mp3gain -k -p -a -s i *.mp3 +#mp3gain -k -p -a -s i *.mp3 +replaygain *.mp3 diff --git a/mp3gain_track.sh b/mp3gain_track.sh index 4fb9de8..709ac74 100755 --- a/mp3gain_track.sh +++ b/mp3gain_track.sh @@ -1,2 +1,3 @@ #!/bin/sh -mp3gain -k -p -r -s i "$@" +#mp3gain -k -p -r -s i "$@" +replaygain --no-album "$@" diff --git a/mp3gain_tracks.sh b/mp3gain_tracks.sh index febe180..5db7d18 100755 --- a/mp3gain_tracks.sh +++ b/mp3gain_tracks.sh @@ -1,6 +1,7 @@ #!/bin/sh if [ "$#" = "0" ]; then echo "Usage: $0 file1 [file2 file3 ... fileN]" + echo "(Needs package python-rgain to be installed!)" exit 1 fi @@ -9,6 +10,7 @@ if [ -z "$CONCURRENCY_LEVEL" ]; then fi echo "Processing using $CONCURRENCY_LEVEL processes..." -nice -n2 find "$@" -print0 | xargs -0 -P $CONCURRENCY_LEVEL -n 1 -I {} mp3gain -q -k -p -r -s i "{}" +#nice -n2 find "$@" -print0 | xargs -0 -P $CONCURRENCY_LEVEL -n 1 -I {} mp3gain -q -k -p -r -s i "{}" +nice -n2 find "$@" -print0 | xargs -0 -P $CONCURRENCY_LEVEL -n 1 -I {} replaygain --no-album "{}" echo "All done."