FFMPEG Command to Convert OGG Audio File to Mp3 on Command Line

 

 

I use ffmpeg for sound conversion:

If your filename contains spaces don’t forget to quote it, e.g.:

To perform batch processing you can either use a for loop like

or – especially for many and/or large files! – GNU parallel:

This last command will convert every .ogg file in the current directory to .mp3 efficiently using your CPU(s) to perform multiple tasks in parallel.

To set the audio bitrate ffmpeg provides the -b:a BITRATE option, e.g. -b:a 192k. If you want to include metadata like title, album and so on, you can use these options:

 

Leave a Reply