Find the answer to your Linux question:
Results 1 to 5 of 5
I was wondering if there is a media converter out there for Linux that can accurately convert a WMA file to an OGG file accurately, and handle at least MP3 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jul 2008
    Location
    Anaheim, CA
    Posts
    114

    WMA/MP3/OGG compatible media converter?


    I was wondering if there is a media converter out there for Linux that can accurately convert a WMA file to an OGG file accurately, and handle at least MP3 files, as well. I tried using Sound Converter, available from the Ubuntu repositories, but it produced some glitchy OGG files from the WMA source files.

    I know VLC can do this, and I happen to have it installed. If nothing else, could somebody tell me how to properly use the converter? It's been a while since I last did it, and I don't remember how I got it to work.

    I have a few gigabytes of files I want to convert, so bulk conversion is a deal breaker.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Quote Originally Posted by arinlares View Post
    I was wondering if there is a media converter out there for Linux that can accurately convert a WMA file to an OGG file accurately, and handle at least MP3 files, as well. I tried using Sound Converter, available from the Ubuntu repositories, but it produced some glitchy OGG files from the WMA source files.
    Have you tried to convert to WAV? Is it glitchy too?
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Newbie
    Join Date
    Jul 2008
    Location
    Anaheim, CA
    Posts
    114
    Actually, no, it worked out fine. I went a little farther by converting a test file (a WMA I had tried but came out bad) to WAV, then OGG, and loaded it into VLC, and it worked fine, whereas WMA directly to OGG didn't work out as well. Plus, it's overall twenty minutes faster on my netbook.

  4. #4
    Linux Guru
    Join Date
    Jul 2004
    Posts
    4,593
    You may want to consider using a terminal program to do the conversions. This way it can also be scripted to run on a whole directory of files.

    It looks like ffmpeg can handle the conversion, something like this:
    Code:
    ffmpeg -i <filename>.wma -acodec libvorbis <filename>.ogg
    This will output at the default bit rate of 64k. To increase that to, say, 128k use this:
    Code:
    ffmpeg -i <filename>.wma -acodec libvorbis -ab 128k <filename>.ogg
    For a script that will convert an entire folder of wma files using ffmpeg, Google it. There are many that I found.
    Please do not send Private Messages to me with requests for help. I will not reply.

  5. #5
    Linux Newbie
    Join Date
    Jul 2008
    Location
    Anaheim, CA
    Posts
    114
    I can find a whole lot of stuff on batch converting video files, but nothing on audio, more specifically, wma->ogg conversion. The closest I've found was for a FLV to some other video format with the following commands:

    Code:
    ffmpeg -i $1 -s 176144 -vcodec h263 -r 25 -b 200 -ab 64 -acodec mp3  -ac 1 -ar 8000 $1.3gp
    I have a basic understanding of setting the bitrate, input file, and output file, but this makes no sense to me at all. I'm assuming "$1" refers to all files in the current directory, but I can't seem to figure out how to get this to work for wma->ogg conversion. Here's the best I can think of, which doesn't work:

    Code:
    ffmpeg -i $1 -acodec libvorbis -ab 128k $1.ogg
    Which spits up " -acodec: no such file or directory."

Posting Permissions

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