Rewrote mp3gain scripts to python-rgain.

This commit is contained in:
2015-08-09 01:05:44 +02:00
parent 6f1e23a346
commit 23f253fadb
3 changed files with 7 additions and 3 deletions

View File

@ -1,2 +1,3 @@
#!/bin/sh
mp3gain -k -p -a -s i *.mp3
#mp3gain -k -p -a -s i *.mp3
replaygain *.mp3

View File

@ -1,2 +1,3 @@
#!/bin/sh
mp3gain -k -p -r -s i "$@"
#mp3gain -k -p -r -s i "$@"
replaygain --no-album "$@"

View File

@ -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."