I've noticed something odd about the way TMPGEnc handles GOPs and I wonder whether anyone can help me understand.
I encoded a short sample at 4900 kbs using CBR (constant bit rate) and found that the sizes of the resulting frames throughout the clip were typically :
I - 120 Kb
P - 30 Kb
I - 9 Kb
[This clip contained little variation in subject matter and fairly little motion. I left the GOP structure at the default, which gave me IBBPBBPBBPBBP (13 frames).]
I then encoded the same sample at the same rate [4900 kbs] using VBR (variable, 2-pass); the bitrate ended up pretty consistent at 4900 kbs throughout (as expected, since there wasn't much variation in the content), but I now found that the resulting frames were typically :
I - 65 Kb
P - 30 Kb
B - 15 Kb
Note that in CBR the ration of I-size to B-size is about 13:1 whereas in VBR it's less than 5:1. It looks as though VBR is giving much more weight to the motion content (by expanding the B-frames) at the expense of detail or image quality (by compressing the I-frames much more heavily).
This seems to me a very significant difference and I don't see why it occurs. As I understand it, the I-frames are critical in defining the amount of detail in the image, since B and P frames are based on that set of data. Moreover, my experience of using JPGs tells me that while you can compress a 720x576 image to 120 Kb without noticing any artefacts, going on down to 65 Kb degrades the image considerably..
Obviously, VBR gives compensating, benefits over a longer clip by allocating higher bitrates to certain sequences; but, on the face of it, this treatment of an "average" clip suggests to me that CBR is likely to produce better results than VBR here.
Am I missing something? By the way, I tried to tweak the algorithm by changing the "spoiling" values for B and P-frames - but that seemed to have no effect at all on anything...
+ Reply to Thread
Results 1 to 3 of 3
-
-
In using a 2 pass VBR, TMPG does a first pass to give an average bitrate, and takes note of motion. During the 2nd pass it takes that information and attempts to maintain a certain quality (Constant Quality) acording to motion movement, and desired bitrate acording to quantization.
Since the clip had very little high motion sequences, TMPG decided to dedicate more bits to the B frames, which aids in fluid motion during still sequences, and slight panning.
Given a different sequence of video, the results can be quite different. If you look at a whole movie (2Fast 2Furious) which include both high motion and no motion, you'll see that TMPG does allocate bits more appropriately according to motion.
If TMPG's bit allocation doesn't suit your needs, you can tell it what to do to each frame. Including asigning I,P,B per frame, quality per frame, quantize matrix per frame, and bitrate per frame. -
Thanks for the reply - and for understanding what I meant despite my typo in a critical place [ I wrote "I - 9Kb" where I meant to write "B - 9Kb".. - which rather destroyed my point !! ]
I hadn't considered that B frames might be of more significance in "still sequences"
Similar Threads
-
cbr to vbr
By dynamix1 in forum AudioReplies: 1Last Post: 17th Mar 2009, 14:12 -
CBR vs VBR
By prl in forum Newbie / General discussionsReplies: 5Last Post: 11th Jan 2009, 18:48 -
question about vbr v/s cbr and 2 pass vbr
By perfection in forum Newbie / General discussionsReplies: 4Last Post: 14th Dec 2008, 03:55 -
VBR, ABR and CBR ??
By moiz in forum AudioReplies: 11Last Post: 19th Oct 2008, 17:22 -
VBR or CBR?
By dizzie in forum ffmpegX general discussionReplies: 1Last Post: 29th Jun 2007, 14:28