View ogg_converter
This file contains 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/sh | |
# Convert wav and aiff files (named with .wav and .aiff) to 320kbps Ogg Vorbis | |
for i in *; do | |
suffix="${i##*.}" | |
if [ "$suffix" = wav ] || [ "$suffix" = aiff ]; then | |
avconv -i "$i" -b 320k "${i%$suffix}ogg" | |
printf "Converted %s to %s\n" "$i" "${i%$suffix}ogg" | |
fi |