Log in

View Full Version : Quant 1 decisions, impact on quality


Zarxrax
26th June 2004, 06:43
I have normally been encoding with the minimun quantizers set to 2 instead of 1. Tonight I made an encode with default b-frame settings, and it came out undersized, and with an average quant of about 3.2.
So I set the quantizer offset to 0 (so b-frames will be encoded at quant 3 instead of quant 4). The filesize only got a tiny bit larger, but now the average quantizer is 2.6, which is quite a bit better.
I still wanted to try and squeeze more quality out of it though, as I still hadn't met the target filesize, so I changed the minimum quants to 1, under the impression that this would improve the quality even more. To my surprize, the average quant of this encode was a whopping 3.6! It used quantizers as high as 7! I looked at the frames with DRF analyzer, and saw that it used quite a few quant 1 frames.

Now, it would make sense if everything was encoded exactly the same as before, and the codec only threw quant 1 frames out only to meet the filesize (which I thought was what its supposed to do), but it used so many quant 1 frames that it had a very adverse effect on the quality!

I wonder if this is something that can be looked into, and possibly improved? I think quant 1 is very important, though many people downplay it a lot. I can definately see the difference between quant 1 and 2 sometimes, so I know that it has the ability to improve the quality of the encode if used smartly.

lordadmira
26th June 2004, 13:49
Heheh, what u are experiencing is what we call "rate control anarchy". That's why allowing quant 1 isn't recommended. When u did it normal did it come out undersized after a 2 pass encode? If so there's not much u can do since it will use the lowest quants possible to try to achieve that file size. I would just accept the file size. But if want to try to get a little bit more quality you can totally disable B frames. Or u can set the BVOP ratio and offset to 1/0 so they'll be full quality. It's completely source dependant as to whether that will improve quality. It could do nothing or look worse. Another thing u can do to eat up more space is enable quarter pel. If ur still not happy then the only thing left is to use a higher quality matrix.

LA