LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Converting proprietary audio files into .ogg (https://www.linuxquestions.org/questions/linux-software-2/converting-proprietary-audio-files-into-ogg-481746/)

calande 09-08-2006 09:11 PM

Converting proprietary audio files into .ogg
 
Are there open-source tools to:
- extract an audio CD into .ogg files?
- convert .wma files into .ogg files?
- convert .wav files into .ogg files?
- convert .mp3 files into .ogg files?

I already have the mplayer plugins on my computer and I can read all of the above but I want to convert them into .ogg files. I want to use only free software. Thanks,

matthewg42 09-08-2006 10:00 PM

Many CD rippers on Linux will convert to ogg by default (for example sound juicer) , oggenc typically being used as the ogg compression engine.

Not sure about wma.

oggenc can read wav files directly, although that is a bit simplistic since wav files come in many flavours, only some of which oggenc can read.

You can decode mp3 files into wav files with lame, and then encode with oggenc. I wrote a little script (documentation|download page) to do this on large numbers of files with minimal effort.

You can also use sox for most of these functions.

IBall 09-08-2006 10:06 PM

From some basic googling, you basically need to convert the files to WAV format using Mplayer, and then convert to OGG using oggenc.
Code:

mplayer -ao pcm -o wavFileName.wav wmaFileName.wma
Code:

oggenc -o oggFileName.ogg wmaFileName.wma
Obviously, to convert wav to ogg you don't need the mplayer step.

For mp3 to ogg, the following looks interesting:
Code:

mpg321 input.mp3 -w - | oggenc -o output.ogg -
I guess the mplayer method above would work for MP3s as well.

Be aware though, that MP3 and OGG are both lossy formats. It is not a good idea to convert from one lossy format to another, since you can lose different parts of the audio and end up with pretty bad results. Basically, OGG throws away some parts of the audio, and MP3 throws away some different parts.

I hope this helps
--Ian

PerfectReign 09-08-2006 10:11 PM

...all of the above, plus if you want to rip off of a CD and convert directly to .ogg format, use KAudioCreator.

In fact, I just remembered that I wrote an article about this:

http://www.perfectreign.com/?q=node/27

Enjoy!

calande 09-09-2006 10:02 AM

Very good, I'll try all this - Thanks, guys!

calande 09-09-2006 10:44 PM

I was able to extract an audio CD into .ogg and .mp3 files using kaudiocreator :)
Is there a GUI application that can do the conversion stated above (wav -> ogg; wma -> ogg; mp3 -> ogg)?

Eckstona 09-09-2006 10:47 PM

soundKonverter can convert all of that.

calande 09-10-2006 02:27 AM

Thank you, is there an alternative to soundKonverter? I see it hasn't been ported to PC-BSD yet...


All times are GMT -5. The time now is 06:25 PM.