find . -type f -name "*.mp3" -print0 | while IFS= read -r -d '' file; do echo "$file"; lame -b 192 "$file" "${file%.*}".192.mp3; done
NOTE: The bitrate is set to 192 kbps.
find . -type f -name "*.mp3" -print0 | while IFS= read -r -d '' file; do echo "$file"; [[ $(file "$file" | sed 's/.*, \(.*\)kbps.*/\1/' | tr -d " ") -gt 192 ]] && lame -b 192 "$file" "${file%.*}".192.mp3 && mv "${file%.*}".192.mp3 "$file"; done
WARNING: This uses the file command to determine the bitrate.
find . -type f -name "*.mp3" -print0 | while IFS= read -r -d '' file; do echo "$file"; [[ $(mp3info -r m -p "%r" "$file") -gt 192 ]] && lame -b 192 "$file" "${file%.*}".192.mp3 && mv "${file%.*}".192.mp3 "$file"; done
NOTE: This uses the mp3info command to determine the bitrate.