Results 1 to 6 of 6

Thread: Ogg to MP3 issue

Hybrid View

  1. #1
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Ogg to MP3 issue

    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

  2. #2
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:Ogg to MP3 issue

    ogg2mp3.pl will do the trick.

    If you can't find it, let me know, and I'll post it.

  3. #3

    Re:Ogg to MP3 issue

    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

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Ogg to MP3 issue

    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.

  5. #5

    Re:Ogg to MP3 issue

    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.

  6. #6
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Ogg to MP3 issue

    Actually the ogg2mp3.pl script has done the job. I see no noticeable loss either.

    Thanks guys!

Similar Threads

  1. ssh issue
    By pigpenstud01 in forum Redhat / Fedora
    Replies: 1
    Last Post: 05-02-2008, 09:42 PM
  2. Starnge DNS(?) Issue
    By cga in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 05-05-2006, 11:48 AM
  3. SMP related issue
    By jp_srirengan in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 01-08-2005, 02:20 AM
  4. PC Lockup Issue
    By GhostDawg in forum Linux - General Topics
    Replies: 5
    Last Post: 05-30-2004, 07:08 AM
  5. GLO IRC issue
    By babbing in forum General Chat
    Replies: 3
    Last Post: 11-14-2002, 08:52 PM

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
  •