Created
January 13, 2015 13:22
-
-
Save ruslanskorb/a5adf0866c18e3cf77af to your computer and use it in GitHub Desktop.
Script to convert caf files into mp3 files.
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/zsh | |
| currentPath=${PWD} | |
| for i in **/*.caf; do | |
| n="${currentPath}/$i"; | |
| afconvert -f AIFF -d BEI16 $n; | |
| #rm -fv $n; | |
| lame ${n%.caf}.aiff ${n%.caf}.mp3; | |
| rm -fv ${n%.caf}.aiff; | |
| done | |
| #--rm3mix -q0 --id3v2-only --t "" -ta "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment