Last active
December 14, 2015 03:49
-
-
Save mmakowski/5023961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mediainfo "$1" | grep "Bit rate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for dir in `ls -1`; do | |
pushd "$dir" | |
for file in `ls -1 *.mp3`; do | |
echo "converting $file" | |
lame --preset extreme "$file" "${file}.tmp" | |
rm -f "$file" | |
mv "${file}.tmp" "$file" | |
done | |
popd | |
done | |
IFS=$SAVEIFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment