LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-17-2006, 10:44 AM   #1
Antarctica
Member
 
Registered: Aug 2006
Location: South Mississippi
Distribution: Fedora Core 5
Posts: 36

Rep: Reputation: 15
Easy way to convert OGG Vorbis to mp3 on Fedora


First off, I'd like to say that this thread isn't a question, but instead an answer to many questions Fedora users may have.

Recently I have searched for a way to convert OGG Vorbis to mp3 so that I could send mp3 files to Windows users so that they don't have to download an OGG player. I read that SoX (Sound Exchange) was a great program, but it was used only in the Terminal and you needed to enable mp3 support for it, which was a hassle to many users. So, I stumbled upon a simpler solution: Sound Converter.

Downloading Sound Converter

In this solution, I am assuming that you have GNOME as the default destkop environment. Go to Applications, Add/Remove Software. If you are not logged in as root, you will need to type in your password to open the program. After the Package Manager has loaded, go to Applications, Sound and Video, and click on the Optional Packages button. A new window will popup showing you all the available sound and video packages. Scroll down until you see soundconverter. A description of the program will appear beside it. Place a checkmark beside its name and click close. Then, click Apply and wait for the program to download and install. Once the installation is complete, you may now use Sound Converter.

Using Sound Converter

Sound Converter is a nice, easy to use program with a simple user interface. You can convert a single file, a multitude of files, or even a folder of files at once. To use, click on one of the buttons that say Add File or Add Folder. An open file dialog will appear. Choose a file and click Open. Then, to change your conversion options, go to Edit, Preferences. The Preferences dialog will appear. Under the heading "Type of Result?," you may choose from OGG Vorbis, MP3, FLAC, and WAV. Once you have chosen your conversion type, you may change your bitrate mode (MP3 only) or quality (OGG Vorbis and MP3 only). You can change several other options if you wish, but when you're finished, click Close. When you are ready to convert, simply click the Convert button. When you are finished, you may convert another file or folder or simply close Sound Converter.

Happy Converting!
 
Old 09-25-2006, 04:10 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 64
For those who are more CLI oriented you may like to try the script linked in my sig
 
Old 09-25-2006, 10:02 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I thought converting Ogg Vorbis to MP3 (and vice versa) wasn't a good idea, since both are "lossy" formats and so converting one to the other means you get even more loss.. or something like that. If the Windows users you know were using Winamp (I'm sure there's other software, but this is used lots I imagine), then you wouldn't need to convert because Winamp can play Ogg Vorbis. Of course, people are free to use whatever software they want! Lastly, only the "O" in "Ogg" is capitalised.
 
Old 09-25-2006, 05:01 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 64
It's true Nylex...

However, some have more sensitive ears than others. I have been converting mp3s to ogg for a long time, and as long as the mp3 is a decent bitrate in the first place I cannot tell the difference. I suggest that anyone who is wanting to re-encode compare their new track with the original, and see if they can live with it. Like I said, maybe it was all the punk shows I went to as a kid, but my damaged ears can't tell a difference

Plus, there are some situation where you _must_ re-encode. What if you buy yourself an iPod but have GBs worth of Flac or Ogg Vorbis files? Are you going to re-rip all your CDs?
 
Old 09-26-2006, 09:55 AM   #5
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
Quote:
Originally Posted by bulliver
Plus, there are some situation where you _must_ re-encode. What if you buy yourself an iPod but have GBs worth of Flac or Ogg Vorbis files? Are you going to re-rip all your CDs?
Just an aside, but Flac is a lossless system, so converting from Flac to another MP3 would be no different to ripping to MP3 in the first place.
 
Old 09-26-2006, 05:24 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 64
Yeah, bad example...sorry.
 
Old 11-12-2006, 10:35 PM   #7
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
Quote:
Originally Posted by bulliver
For those who are more CLI oriented you may like to try the script linked in my sig
Hey I like it. I've been looking for a sneetchalizer.
It seems to work well but I cannot get http://www.unixgods.org/~tilo/Ruby/I...ocs/index.html to load. So no mp3 tags.

I did find id3lib-ruby-0.4.1 here:
http://rubyforge.org/frs/?group_id=1384&release_id=6609
but I cannot get it to build. I have very little experience with Ruby so it could easily be a pebkac.

Code:
$ sudo gem install id3lib-ruby
Select which gem to install for your platform (i486-linux)
 1. id3lib-ruby 0.4.1 (mswin32)
 2. id3lib-ruby 0.4.1 (ruby)
 3. id3lib-ruby 0.4.0 (mswin32)
 4. id3lib-ruby 0.4.0 (ruby)
 5. id3lib-ruby 0.3.1 (mswin32)
 6. id3lib-ruby 0.3.1 (ruby)
 7. id3lib-ruby 0.3.0 (ruby)
 8. id3lib-ruby 0.3.0 (mswin32)
 9. id3lib-ruby 0.2.1 (ruby)
 10. id3lib-ruby 0.2.0 (ruby)
 11. id3lib-ruby 0.1.0 (ruby)
 12. Cancel installation
> 2
Building native extensions.  This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:1

ERROR:  While executing gem ... (RuntimeError)
    ERROR: Failed to build gem native extension.
Gem files will remain installed in /var/lib/gems/1.8/gems/id3lib-ruby-0.4.1 for inspection.


Results logged to /var/lib/gems/1.8/gems/id3lib-ruby-0.4.1/ext/gem_make.out
glenn@hestviken:~/Downloads/id3lib-ruby-0.4.1$ sudo cat /var/lib/gems/1.8/gems/id3lib-ruby-0.4.1/ext/gem_make.out
So much for the log file eh?
Try it another way:

Code:
$ sudo ruby setup.rb
---> lib
---> lib/id3lib
<--- lib/id3lib
<--- lib
---> ext
/usr/bin/ruby1.8 /home/glenn/Downloads/id3lib-ruby-0.4.1/ext/extconf.rb
/home/glenn/Downloads/id3lib-ruby-0.4.1/ext/extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
        from /home/glenn/Downloads/id3lib-ruby-0.4.1/ext/extconf.rb:1
setup.rb:655:in `command': system("/usr/bin/ruby1.8" "/home/glenn/Downloads/id3lib-ruby-0.4.1/ext/extconf.rb") failed (RuntimeError)
        from setup.rb:660:in `ruby'
        from setup.rb:1238:in `extconf'
        from setup.rb:1230:in `config_dir_ext'
        from setup.rb:1532:in `__send__'
        from setup.rb:1532:in `traverse'
        from setup.rb:1549:in `dive_into'
        from setup.rb:1530:in `traverse'
        from setup.rb:1524:in `exec_task_traverse'
        from setup.rb:1519:in `each'
        from setup.rb:1519:in `exec_task_traverse'
        from setup.rb:1223:in `exec_config'
        from setup.rb:991:in `exec_config'
        from setup.rb:812:in `invoke'
        from setup.rb:773:in `invoke'
        from setup.rb:1578
And from here I'm clueless. Debian Sid BTW.
 
Old 12-01-2006, 05:56 PM   #8
robinst
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by rickenbacherus
And from here I'm clueless. Debian Sid BTW.
Hey.. In Debian, Ruby is divided into several packages, maybe you are missing one of those. Try installing ruby1.8-dev. You will also need libid3-3.8.3-dev. Good luck
 
Old 12-29-2006, 05:51 PM   #9
joemacnz
LQ Newbie
 
Registered: Oct 2006
Location: Murchison
Distribution: ubuntu dapper
Posts: 2

Rep: Reputation: 0
All well and god, However when I go into "preferences" in sound converter the mp3 option is not available to me. I can click on the others but mp3 is dulled. How can I change that please?
 
Old 02-07-2007, 08:08 AM   #10
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
IIRC you need lame installed to convert to mp3. Try firing up soundconverter from cli and it should tell you the problem.
 
Old 04-26-2007, 07:06 PM   #11
Gazbo Satyr
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian
Posts: 3

Rep: Reputation: 0
You need to run:
Code:
$ sudo apt-get install ruby1.8-dev
Then you can re-try:
Code:
$ sudo gem install id3lib-ruby
Quote:
Code:
Building native extensions.  This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:1

ERROR:  While executing gem ... (RuntimeError)
    ERROR: Failed to build gem native extension.
Gem files will remain installed in /var/lib/gems/1.8/gems/id3lib-ruby-0.4.1 for inspection.
 
Old 10-22-2007, 05:08 PM   #12
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
Re converting ogg to mp3 on the command line:

Quote:
Originally Posted by bulliver View Post
For those who are more CLI oriented you may like to try the script linked in my sig
wot sig?

I'm sure you meant:

oggdec file.ogg && lame file.wav

where:
* oggdec is in the vorbis-tools package available from xiph.org and
* lame is an mp3 encoder available from sourceforge.

I'm sorry, but just now I don't know of a decent way of playing .ogg from inside a web page. VLC plays vorbis movies nicely from inside a page but for audio it behaves as if it's chopping off the first few hundred bytes of data. Three cheers for the ogg team but they have just a li'l further to go before I can convert completely.
 
Old 10-22-2007, 08:40 PM   #13
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 64
Quote:
wot sig?

I'm sure you meant:
Nope. I mean the script linked in my sig:

Quote:
sneetchalizer: the Swiss-Army Knife of audio conversion tools.
 
Old 10-23-2007, 07:45 PM   #14
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
Sorry, had a blind moment. Thought you were saying that once you've gone to ogg there should be NO RETURN. Eventually I'm sure that'll be right.

Last edited by Tischbein; 10-23-2007 at 07:47 PM.
 
  


Reply

Tags
converter, fedora, flac, gnome, mp3, ogg, sound, soundconverter, vorbis, wav


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
Convert Mp3 To Ogg TigerLinux Linux - General 11 02-12-2008 03:32 AM
convert ogg to mp3 caleb star Linux - Software 10 01-04-2007 08:28 AM
converting ogg vorbis to mp3 Samoth Linux - Software 3 11-28-2005 07:05 PM
Need to convert MP3s to OGG Vorbis files crash_override_me Linux - Software 3 09-24-2005 12:13 PM
can't convert mp3 to ogg Imek Linux - Software 3 07-13-2004 10:10 PM


All times are GMT -5. The time now is 07:39 AM.

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