Skip to content

Instantly share code, notes, and snippets.

@agrathwohl
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save agrathwohl/9d2a00d259afc8415711 to your computer and use it in GitHub Desktop.

Select an option

Save agrathwohl/9d2a00d259afc8415711 to your computer and use it in GitHub Desktop.
Convert all WAVs in directory to 16/44.1 and to LAME's standard JS stereo MP3.
#!/bin/bash
FILES=*.wav
for f in $FILES
do
echo "Processing $f at 16/44.1..."
sox "$f" -b 16 "16441/$f" rate -v 44100
mv "$f" "2496/$f"
echo "Moved $f to 24/96"
echo "Processing $f as an MP3..."
lame -h "16441/$f" "MP3/$f.mp3"
done
@agrathwohl
Copy link
Author

Use mkdir to make:
2496
16441
MP3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment