Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th November 2011, 14:54   #1  |  Link
infoeater
Registered User
 
Join Date: May 2007
Posts: 46
Different quantizers inside the same frame

In H.264, as far as I understand each block in the same frame can be encoded with different quantizer. Whole frame however have the quantizer too. So what does quantizer of the whole frame mean?

Also XVID's AQ is working in constant quantizer mode too. How is it possible? Is constant quantizer in XVID in fact varying through the frame? Is it varying in constant quantizer mode without AQ too?

EDIT:
Thank you for your words of knowledge, Lord.

Last edited by infoeater; 29th November 2011 at 07:47.
infoeater is offline   Reply With Quote
Old 28th November 2011, 15:05   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 12,811
Quote:
In H.264, as far as I understand each block in the same frame can be encoded with different quantizer. Whole frame however have the quantizer too. So what does quantizer of the whole frame mean?
AFAIK the quantizers of individual blocks are coded as offsets to the frame's "base" quantizer.

Apart from that, there is no relation per se, I think. It completely depends on which algorithm is used to decide the quantizer value of each block.

That's also the reason why "frame" quantizers don't mean anything, as soon as AQ is used.

In general, the frame quantizer is not equal to the average or median block quantizer, although a specific AQ algorithm might be tailored that way.

(In theory, even if the frame quantizer is 10, the quantizers of all blocks in that frame could be forced to 30, by applying the proper offsets)

Quote:
Also XVID's AQ is working in constant quantizer mode too. How is it possible? Is constant quantizer in XVID in fact varying through the frame? Is it varying in constant quantizer mode without AQ too?
In x264, CQ mode means real "constant quantizer", i.e. each block in each frame has the same quantizer (i.e. VAQ and MB-Tree is disabled).

Xvid has nothing like a CRF mode, only a CQ mode. That's probably why they (optionally?) apply AQ in CQ mode.

It means that first Xvid's rate controls sets the same quantizer for each frame and then the AQ algorithm is applied to modify the quantizers of individual blocks.

Note that here the relation between the "frame" quantizer and the "block" quantizers is an implementation detail of how the AQ is applied.
__________________
There was of course no way of knowing whether you were being watched at any given moment.
How often, or on what system, the Thought Police plugged in on any individual wire was guesswork.



Last edited by LoRd_MuldeR; 28th November 2011 at 15:32.
LoRd_MuldeR is offline   Reply With Quote
Reply

Tags
h.264, quantizer, x264, xvid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.