4

Is there an app or a method that I can use from Terminal to convert audio files to the OGG format?

I know about afconvert but that doesn't provide the ogg format that I want.

9

Ogg is a container format. It typically uses the Vorbis audio codec. You can download a static build of ffmpeg and use the bundled libvorbis encoder:

ffmpeg -i input.wav -c:a libvorbis -qscale:a 5 output.ogg

According to the Vorbis encoding guide, the quality range is from 0–10, where 10 is the highest quality and 3–6 are a good range to try. In the above example we used 5 as quality.

1

I've come across this question a couple of times, this is what worked for me:

$ ffmpeg -y -i foo.mp3  -strict -2 -acodec vorbis -ac 2 -aq 50 foo.ogg

Source: http://infoheap.com/ffmpeg-convert-mp3-to-ogg-on-mac/

-1

have a look at sox and ffmpeg they should do it.

ffmpeg -i file.mp3 -acodec ogg file.ogg

i think that was the command i used. not sure used to be a long time ago.

also have a look here why you probably wont do a conversion: https://askubuntu.com/questions/147944/bulk-batch-convert-mp3-files-to-ogg-via-command-line

  • ogg is not a valid FFmpeg encoder. Your command does not work. – slhck Feb 15 '14 at 11:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .