Skip to content

Instantly share code, notes, and snippets.

Avatar

thelionroars thelionroars

  • No thanks, I'm not feeling very sociable right now. But let's do brunch at some later indefinite time
  • /dev/random
View GitHub Profile
@thelionroars
thelionroars / ogg_converter
Created Dec 9, 2014
Wav,Aiff -> Ogg sh conversion script
View ogg_converter
#!/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