Last active
August 29, 2015 14:22
-
-
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.
This file contains hidden or 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 | |
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use mkdir to make:
2496
16441
MP3