1
0

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
+2 -1
View File
@@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
mp3gain -k -p -a -s i *.mp3 #mp3gain -k -p -a -s i *.mp3
replaygain *.mp3
+2 -1
View File
@@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
mp3gain -k -p -r -s i "$@" #mp3gain -k -p -r -s i "$@"
replaygain --no-album "$@"
+3 -1
View File
@@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
if [ "$#" = "0" ]; then if [ "$#" = "0" ]; then
echo "Usage: $0 file1 [file2 file3 ... fileN]" echo "Usage: $0 file1 [file2 file3 ... fileN]"
echo "(Needs package python-rgain to be installed!)"
exit 1 exit 1
fi fi
@@ -9,6 +10,7 @@ if [ -z "$CONCURRENCY_LEVEL" ]; then
fi fi
echo "Processing using $CONCURRENCY_LEVEL processes..." 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." echo "All done."