Use proper mp3gain tool.

This commit is contained in:
Markus Birth 2017-12-05 02:26:56 +01:00
parent bc9c7977c0
commit ec4b788e09
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
3 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,4 @@
#!/bin/sh
#mp3gain -k -p -a -s i *.mp3
replaygain *.mp3
# Install mp3gain from: https://launchpad.net/~flexiondotorg/+archive/ubuntu/audio
mp3gain -k -p -a -s i *.mp3
#replaygain *.mp3

View File

@ -1,3 +1,4 @@
#!/bin/sh
#mp3gain -k -p -r -s i "$@"
replaygain --no-album "$@"
# Install mp3gain from: https://launchpad.net/~flexiondotorg/+archive/ubuntu/audio
mp3gain -k -p -r -s i "$@"
#replaygain --no-album "$@"

View File

@ -1,4 +1,5 @@
#!/bin/sh
# Install mp3gain from https://launchpad.net/~flexiondotorg/+archive/ubuntu/audio
if [ "$#" = "0" ]; then
echo "Usage: $0 file1 [file2 file3 ... fileN]"
echo "(Needs package python-rgain to be installed!)"
@ -10,7 +11,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 {} replaygain --no-album "{}"
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."