Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home ยป Command-line Based OGG to MP3 (batch) Converter for Ubuntu Linux – ogg2mp3
    Ubuntu

    Command-line Based OGG to MP3 (batch) Converter for Ubuntu Linux – ogg2mp3

    GayanBy GayanJanuary 22, 2012Updated:September 26, 20121 Comment3 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    MP3 is an old lossy proprietary audio codec (compression format) and when compared to the open source answer to it (OGG Vorbis), it has many drawbacks.

    For instance, OGG can hold more than 2 audio channels where MP3 can only hold 2, it can give better quality outputs in the same bitrate, it also compresses better than MP3 at both lower and higher bitrates and the list goes on ;-). But MP3 is still one of the widely used formats and is supported by most audio players etc.

    There are a few that supports OGG Vorbis too but that’s nowhere near the level of MP3 support. So in that sense, even if it sucks ๐Ÿ˜‰ if you have a large collection of OGG Vorbis files, then to play it in your portable audio player for instance, you will have to convert them into MP3 and for that you can try ‘ogg2mp3.

    As easy as 123 ๐Ÿ˜‰ …

    The only issue that I have with it is that it is really sensitive. Meaning that if one of your OGG files has a bit of a improper coding in its meta-data header, it won’t encode it. Other than that, it’s an extremely useful tool.

    Main features …

    *. It’s actually a tool that uses the ‘lame’ (default MP3 encoder) and most of its commands are the commands of ‘lame’.

    *. Supports average and constant bitrate modes.

    *. Channel output support include: stereo, mono, dual-mono etc.

    *. Other than entering a bitrate, you can change the quality by using a number which enables a preset (0 to 9, lover the better. Default level is 5).

    *. Individual and batch file converting.

    If interested, you can install “ogg2mp3” in Ubuntu 12.04 Precise Pangolin, 11.10 Oneiric Ocelot, 11.04 Natty Narwhal, 10.10 and 10.04 by first getting the “.deb” file from this ogg2mp3 download page.

    Once the download completes, just double click on it and Ubuntu Software Center should install it for you.

    A simple example … (singe file mode)

    Let’s say that I have a Vorbis audio called “1.ogg”. Then to convert it to MP3 format using an average audio bitrate of say “96 kbit/s” I’d use the below command.

    ogg2mp3 1.ogg -a 96

    If I wanted to use a variable bitrate, then I’d use the below command instead.

    ogg2mp3 1.ogg -v 6

    The number represents the quality (read the manual of ‘lame’).

    Batch conversion …

    First put all the files that you want convert into a single folder (let’s call it “temp”). Then simply give “ogg2mp3” the folder path with the appropriate audio parameters (bitrate, channels etc) and it will automatically convert one by one.

    In this instance I’ll use the below command.

    ogg2mp3 /home/gayan/temp -a 96

    For more information please read its manual (including the actual converting tool called “lame” by using the below commands.

    man ogg2mp3

    man lame

    Other than its a too sensitive nature where it won’t encode a file if its meta-tag is not set according to general standards as mentioned above, ‘ogg2mp3a is a very useful tool.

    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    Debian vs Ubuntu Server: A Brief Comparison for Beginners

    July 2, 2023

    CPU Based Simple System Stability and Benchmark Tester for Ubuntu Linux – systester

    June 16, 2023

    Typespeed: Typing Speed Testing Game for Ubuntu Linux

    March 12, 2023

    Debian vs Ubuntu in 2023- Which Linux OS is Right for You?

    January 6, 2023

    1 Comment

    1. alfredbobes on April 27, 2015 3:03 pm

      I use iDealshare VideoGo to batch convert OGG to MP3, WAV, WMA, FLAC, M4A, etc.
      It also can convert MP3 to OGG.

      Reply
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.