Created
August 25, 2010 13:24
-
-
Save hmert/549496 to your computer and use it in GitHub Desktop.
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/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