LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 09-08-2006, 09:11 PM   #1
calande
Member
 
Registered: Oct 2005
Distribution: Urubu
Posts: 159

Rep: Reputation: 15
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,
 
Old 09-08-2006, 10:00 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
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.
 
Old 09-08-2006, 10:06 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
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
 
Old 09-08-2006, 10:11 PM   #4
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
...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!

Last edited by PerfectReign; 09-08-2006 at 11:13 PM.
 
Old 09-09-2006, 10:02 AM   #5
calande
Member
 
Registered: Oct 2005
Distribution: Urubu
Posts: 159

Original Poster
Rep: Reputation: 15
Very good, I'll try all this - Thanks, guys!
 
Old 09-09-2006, 10:44 PM   #6
calande
Member
 
Registered: Oct 2005
Distribution: Urubu
Posts: 159

Original Poster
Rep: Reputation: 15
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)?
 
Old 09-09-2006, 10:47 PM   #7
Eckstona
Member
 
Registered: Aug 2006
Location: Michigan, USA
Distribution: Kubuntu AMD64 6.10 Edgy Eft
Posts: 40

Rep: Reputation: 15
soundKonverter can convert all of that.
 
Old 09-10-2006, 02:27 AM   #8
calande
Member
 
Registered: Oct 2005
Distribution: Urubu
Posts: 159

Original Poster
Rep: Reputation: 15
Thank you, is there an alternative to soundKonverter? I see it hasn't been ported to PC-BSD yet...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting proprietary audio/video formats to ogg vorbis/theora? brynjarh Linux - Software 2 08-25-2006 11:52 PM
XMMS won't play mp3,wav,ogg files, but only audio cd Michaelx Slackware 10 06-29-2006 09:07 PM
any command line software for ogg concatenation but ogmcat.? Joining ogg files Emmanuel_uk Linux - Software 1 06-15-2006 09:52 AM
converting between proprietary sound formats q. Calum Linux - Software 2 05-08-2003 08:41 AM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration