Convert wma to ogg

Write small shell script to perform batch conversion. However it works only with files from current directory, and with files what has only one period in file name (for example ASOT-280.wma)

Following script will convert all wma files to ogg format:

for i in *.wma ;
ii=`echo $i | cut -d'.' -f1`
`mplayer -vo null -vc dummy -af resample=44100 \
-ao pcm:waveheader:file=$ii.wav $i`
`oggenc -q 5 $ii.wav`

(!) Do not forget to manually remove original wma and temporarily created wav files.

I will not explain here all mplayer and oggenc params. If you would like to know more, please look to man pages

If you would like to convert wma to mp3 you need replace line:

`oggenc -q 5 $ii.wav


`lame -m j -h --vbr-new -b 192 $ii.wav -o $ii.mp3`

That’s all.

Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl


Youconvertit said...

This is a great blog that explains the various benefits of ogg. You can opt for various types of conversion such as Convert ogg to mp3 absolutely free.

markson said...

AnyConv is an online file converter. It allows users to convert files without downloading a software tool, and supports over 1,200 different conversion types. The service supports the conversion of documents, images, audio, video, e-Books, CAD files and compressed file formats.

markson said...

The third step of getting careful yield according to your particular interest is the most extreme significant advance while you are good to go to change over your ideal DVD to any appropriate organization that will permit to play your video records on Mac.FLV to MP4 video converter

tanzir hossain said...

Lots of informative blogs. Here are the various benefits of ogg and how to use them. As a result, you can easily choose any converter. Through which you can convert free ogg to mp3,wav to mp3

zeltrack zeltrack said...

Just wanna remark that you have a very nice web site , I like the layout it actually stands out.

mtom00000 said...

I thought it was going to be some boring old publish, but it really compensated for my time. I will publish a link to this page on my blog. I am confident my visitors will discover that quite useful digitaltrends

mtom00000 said...

I recently realized your website the other day and that i happen to be following it’s routinely. You’ve got great deal of tips proper here so i delight in your lifestyle of online site likewise. Preserve acknowledge that there are succeed!

mtom said...

An impressive share, I merely given this onto a colleague who had been doing a small analysis within this. And that he actually bought me breakfast since I discovered it for him.. smile. So ok, i’ll reword that: Thnx for the treat! But yeah Thnkx for spending time to talk about this, I’m strongly about this and love reading regarding this topic. If you can, as you grow expertise, would you mind updating your website with more details? It is extremely of great help for me. Massive thumb up for this text!

solusiprinting said...

Oh my goodness! a wonderful post dude. Thanks a ton Nonetheless My business is experiencing issue with ur rss . Do not know why Struggling to sign up for it. Will there be anyone acquiring identical rss difficulty? Anybody who knows kindly respond. Thnkx

gamingpcdesks said...

You need to get involved in a tournament for starters of the highest quality blogs on-line. I am going to suggest this web site! Soundcloud Plays

Post a Comment

Popular Posts