18

I'm not familiar with FFMPEG at all and would like to know how to convert MP4 to OGV format while still keeping the same video and audio quality?

2

1 Answer 1

36

Basic command is

ffmpeg -i input.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 output.ogv

You'll have to fiddle with the q values for video and audio if the result's not acceptable. Lower values are better but produce bigger files. For libtheora, it's the opposite - higher values are better. Range is 0-10.

2
  • 2
    Also see FFmpeg Wiki: Theora & Vorbis.
    – llogan
    Commented Jul 4, 2016 at 22:32
  • ... -acodec libopus -b:a 128000 worked for me for opus, the quality level isn't supported apparently. Commented Mar 15, 2019 at 1:03

You must log in to answer this question.

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