Skip to content

How to convert ogg to mp3? #387

Answered by kokorin
kolisnichenko2828 asked this question in Q&A
Discussion options

You must be logged in to vote

I would recommend you checking ffmpeg documentation first. The command is very simple ffmpeg -i input.ogg output.mp3.
See whole example (with progress tracking) here.

FFmpeg.atPath()
  .addInput(UrlInput.fromUrl(pathToOgg))
  .setOverwriteOutput(true)
  .addOutput(UrlOutput.fromUrl(pathToMp3))
  .execute();

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kolisnichenko2828
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants