Skip to content

Instantly share code, notes, and snippets.

@jkogara
Created April 30, 2013 15:54
Show Gist options
  • Save jkogara/5489635 to your computer and use it in GitHub Desktop.
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
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