Skip to content

Instantly share code, notes, and snippets.

@hmert
Created August 25, 2010 13:24
Show Gist options
  • Save hmert/549496 to your computer and use it in GitHub Desktop.
Save hmert/549496 to your computer and use it in GitHub Desktop.
#! /bin/bash
# ubuntu'da vorbis-tools ve mplayer yuklu olmalidir
echo "Bu bash kod ile tum mp3leriniz converted klasorune ogg olarak donusturulur"
mkdir converted
for i in *.mp3; do
mv "$i" `echo $i | tr ' ' '_'`
echo $i
mplayer $i -ao pcm:file=tmp.wav
oggenc tmp.wav -q 7 -o converted/$i.ogg
mv $i ${i%.mp3.ogg}.ogg
rm -f tmp.wav
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment