Created
April 30, 2013 15:54
-
-
Save jkogara/5489635 to your computer and use it in GitHub Desktop.
find mp3s less than 128k bit rate using sox. need to update to allow for sox returning an error or a float for the 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
find ./ -type f -iname "*.mp3" | while read mp3 ; | |
do | |
RATE=`soxi -B "$mp3" | sed 's/k//'` | |
if [ $RATE -le 128 ] | |
then | |
echo $RATE $mp3 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment