The Computer Oracle

How do I convert MP4 to OGV while still retaining the same quality using FFMPEG?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Over Ancient Waters Looping

--

Chapters
00:00 How Do I Convert Mp4 To Ogv While Still Retaining The Same Quality Using Ffmpeg?
00:19 Accepted Answer Score 36
00:40 Thank you

--

Full question
https://superuser.com/questions/1096841/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#ffmpeg

#avk47



ACCEPTED ANSWER

Score 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.