Well to explain why we use 16pixels black borders on the left and the right I'll translate a part of a well done german written page.
NOTE: The copyrighter of this explanation is Angel an the original URL is
http://www.uni-kassel.de/~eckhardm/hq.htm
So I did only translate this section! Maybe you can use google's translation engine to translate the other contents of his page
So here it goes:
----------------------
http://www.uni-kassel.de/~eckhardm/hq.htm ----------
Explained in a case of 480x576 encoding but mpeg encoding is MACROBLOCK based and so you can use this example also on other sizes.
One Macroblock is exactly 16x16 pixels and if we fill out one Macroblock with black contents, we shurely will get better compression!
So if you just add an 8pixel boarder at the sides the peg routine will still encode the WHOLE 480 horizontal information!
Here an example based on an "P" Frame:
(the green macroblock will be missed out (motion detection) and the black macroblocks will NOT be encoded.
Size 480x576
(464x320) which will be letterboxed by using 8 pixels on each side afterwards by adding the black borders.
Size 480x576
(448x320) which will be letterboxed by using 16 pixels on each side afterwards by adding the black borders.
You can see very well that the border hast to be ONE Macroblock (16x16px) so that it will NOT be encoded, which lets us enjoy more compression
And why we crop the black boarders from the source exactly as we can?
Example:
2.35:1 Letterbox (Resize : 448 x 320 / AddBorder 16/128/16/12
As we see the macroblock encoding advantage will not be at these exat "vertical" cropping settings so we do an optimization:
Optimized:
2.35:1 Letterbox (Resize : 448 x 318 / AddBoarder 16/
129/16/
129)
You see that by doing this the last macroblock line between the black vertical borders and the movie is handled optimal. Ok, there will be a minimal aspect ratio error, but you won't recognise it.
------------------------------------------------------------------------------------
Well these optimizations are very detailed, but if we use all advantages including GOP optimization and max bitrate optimization, we'll receive the best compromise between quality and compression.
So please visit
http://www.uni-kassel.de/~eckhardm/hq.htm
he's the author
and use Google's translation engine to check out his very interesting guides.
Cause this is only a translated part of them!