8
2
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?
8
2
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?
17
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.
... -acodec libopus -b:a 128000
worked for me for opus, the quality level isn't supported apparently. – Gringo Suave – 2019-03-15T01:03:39.287
When I convert a long video with this command (ffmpeg 4.1.3), sound stutters at some point, it [blank] like [blank] so [blank] can't [blank]stand [blank]thing. – Nicolas Raoul – 2019-05-27T13:30:53.890
That has to be related to your input. There's nothing in this command that distorts audio. – Gyan – 2019-05-27T13:54:55.887
This command re-encodes the stuff again. – Quadcubic – 2020-01-23T08:27:46.963
Related no quality request: https://superuser.com/questions/108237/convert-mp4-to-ogg-video
– Ciro Santilli 新疆改造中心法轮功六四事件 – 2019-09-07T14:33:06.600Both containers store different codecs. If the codec is H.264 then OGV cannot store it, you'll loose some quality in re-encoding, the quality may degrade further. TL;DR if the video codec isn't supported on both formats you're surely going to loose quality. – Quadcubic – 2020-01-01T09:35:55.020