Why is the maximum ffmpeg mjpeg quality so low?

三世轮回 提交于 2020-01-06 06:47:04

问题


I used ffmpeg to generate a one-frame mjpeg video at the maximum possible quality, like this:

ffmpeg -i reference.png -frames:v 1 -codec:v mjpeg -q:v 1 -an 1.mkv

I also made a reference conversion to jpeg using imagemagick, at 85% quality:

convert reference.png -quality 85 85.jpg

The resulting "1.mkv" is only 83K, despite the fact that 85.jpg is 88K - and that's not even the highest possible jpeg quality.

At 95% imagemagick produces a file of 120K, and 207K at 100%. (Though it should be noted that image quality does not improve above 95%.) Since ffmpeg is set to maximum quality, I would expect frames of around this size.

Why are ffmpeg's mjpeg frames so small?

来源:https://stackoverflow.com/questions/50651998/why-is-the-maximum-ffmpeg-mjpeg-quality-so-low

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!