Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Convert ogg vorbis to mp3

  1. #1
    Join Date
    Apr 2006
    Beans
    423

    Convert ogg vorbis to mp3

    I ripped some CD's using my lubuntu portable without noticing that it was ripping to OV. I wanted MP3.

    The CD's are now in another city which I will not return to for a month or so and I want to be able to listen to the music in my car. OV doesn't work in the car radio, but MP3 does.

    Can I somehow convert them to MP3 without losing all semblance of quality? And if so, how please?

    TIA
    I'm old, in the way, and still a noob, but want to learn and trying, so replies in "A-B-C" with code/specifics are appreciated. Most of my posts are in the Absolute Beginners Forum, so please advise me as the beginner that I am. Many thanks.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    5,141
    Distro
    Ubuntu

    Re: Convert ogg vorbis to mp3

    I think audacity can do that.
    Though that one is probably overtop for this purpose.

    Another would be soundconverter, which in a gnome app.
    Should work with lubuntu as well.

    There probably a super simple ffmpeg command line solution which you could also try.
    Again, though, I don't off the top know it/remember it.

    Those are a couple I can think of off the top.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Aug 2013
    Beans
    2,293

    Re: Convert ogg vorbis to mp3

    ffmpeg can do that.

    Code:
    ffmpeg -i audiofile.ogg -acodec limpmp3lame audiofile.mp3
    But why do you want to do that? You are converting a lossy format to another lossy format and ogg has better quality than mp3 anyway. I rip my cds in flac.
    Last edited by monkeybrain20122; March 31st, 2014 at 02:40 AM.

  4. #4
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,516
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Convert ogg vorbis to mp3

    Quote Originally Posted by monkeybrain20122 View Post
    ..
    But why do you want to do that? You are converting a lossy format to another lossy format and ogg has better quality than mp3 anyway. ...
    His car radio needs mp3 (first post).
    de gustibus et coloribus non est disputandum -- Wiktionary

  5. #5
    Join Date
    Apr 2006
    Beans
    423

    Re: Convert ogg vorbis to mp3

    Code:
    The CD's are now in another city which I will not return to for a month or so and I want to be able to listen to the music in my car. OV doesn't work in the car radio, but MP3 does.
    This is a "temporary" fix.

    Am I missing something obvious here?
    I'm old, in the way, and still a noob, but want to learn and trying, so replies in "A-B-C" with code/specifics are appreciated. Most of my posts are in the Absolute Beginners Forum, so please advise me as the beginner that I am. Many thanks.

  6. #6
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    5,141
    Distro
    Ubuntu

    Re: Convert ogg vorbis to mp3

    Quote Originally Posted by Odyssey1942 View Post
    Code:
    The CD's are now in another city which I will not return to for a month or so and I want to be able to listen to the music in my car. OV doesn't work in the car radio, but MP3 does.
    This is a "temporary" fix.

    Am I missing something obvious here?
    I don't think you're missing anything.
    Car stereo seems to be mp3 compatible but not ogg compatible.
    If something isn't compatible to play a certain format, then it won't.

    However, that said, it might be possible that even though it can't play ogg files, it might be able to play flac files.
    (Maybe possible, but no guarantee)

    But for what's it is worth, the above mentioned soundconverter can easily convert whole folders at once, so I'll stick with that recommendation.
    (You have to go to preferences first to set formats and stuff like that, easypeasy though)
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  7. #7
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    6,516
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Convert ogg vorbis to mp3

    Quote Originally Posted by Odyssey1942 View Post
    ...
    This is a "temporary" fix.

    Am I missing something obvious here?
    Two suggestions have been offered: Audacity and ffmpeg. If you have a "full" install of Lubuntu (restricted extras installed), you shouldn't have a problem. Where are you getting stuck?
    de gustibus et coloribus non est disputandum -- Wiktionary

  8. #8
    Join Date
    Dec 2006
    Beans
    7,164

    Re: Convert ogg vorbis to mp3

    Quote Originally Posted by monkeybrain20122 View Post
    ffmpeg can do that.

    Code:
    ffmpeg -i audiofile.ogg -acodec limpmp3lame audiofile.mp3
    Mind you the default bitrate is 128.0kbits/s which may or may not be appropriate...
    You think that's air you're breathing now?

  9. #9
    Join Date
    Mar 2006
    Location
    Bucharest
    Beans
    604

    Re: Convert ogg vorbis to mp3

    You can also do it with oggdec and lame, however converting between lossy audio files is not recommended. But anyway, you can install vorbis-tools and lame (e.g. sudo apt-get install vorbis-tools lame) and then convert them like this:
    Code:
    oggdec song.ogg
    lame -b 128 song.wav
    The first command will convert the Ogg into a resulting WAV file, and then lame will convert the WAV to MP3.

    You can also use wildcards for all the Ogg files, like oggdec *.ogg. However, I think lame doesn't support wildcards (I may be wrong though). Also, replace 128 with the desired bitrate, and keep in mind the resulting MP3 files will have a bit lower quality than the Ogg ones.

  10. #10
    Join Date
    Apr 2006
    Beans
    423

    Re: Convert ogg vorbis to mp3

    Vasa, a very cogent question. I think maybe I haven't installed the restricted extras. How does one do that? (If I can rip to MP3 in future, I want to be able to do that.)

    Thanks all for the program recommendations. Will also try Flac to see if the car radio will play that.
    I'm old, in the way, and still a noob, but want to learn and trying, so replies in "A-B-C" with code/specifics are appreciated. Most of my posts are in the Absolute Beginners Forum, so please advise me as the beginner that I am. Many thanks.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •