ogg2mp3.pl will do the trick.
If you can't find it, let me know, and I'll post it.
I have for some time tried using OGG only for audio, and about three years ago converted my entire archive from MP3/WMA to OGG. But now I need to convert to MP3. Are there any scripts or tools that can do this for me? I remember that there was some perl script to do MP3 to OGG. Is there one for going the other way?
TIA
ogg2mp3.pl will do the trick.
If you can't find it, let me know, and I'll post it.
not the most elagant - won't save ids info, but the output is an mp3 from an ogg vorbis.
Code:#!/bin/bash for i in *.ogg do name=$(echo $i|sed 's/\.ogg$//') ogg123 -d wav -f "$name.wav" "$i" lame -q 6 "$name.wav" "$name.mp3" rm "$name.wav" done
Thanks Paul. I will see how to keep the ID3 info and add that and let y'all know what the result is. Linspire's LSongs may be able to do that, but I would rather not risk it since most are done right as we speak. I have ALOT and dont want to redo them all.
Just a side note. MP3 is a lossy codec, and so is Ogg. When you convert from wav to ogg, you lose quality. Similarly, when you convert from wav to mp3 you lose quality. There's no way for mp3s to be directly translated into ogg files; the encoding schemes are entirely different. So, to convert between mp3 and ogg, a wav (or flac or apple lossless or whatever lossless format you're using) is first created, and the song is re-encoded. So when you convert from mp3->ogg, you lose quality. Similarly, when you convert back from ogg->mp3, you lose more quality still. You can never get this loss of quality back, so I'd recommend you choose a format and stick with it.
Bookmarks