Skip to content

Instantly share code, notes, and snippets.

View thelionroars's full-sized 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 December 9, 2014 20:06
Wav,Aiff -> Ogg sh conversion script
#!/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