<<新主題 | 舊主題>>
娛樂滿紛 26FUN » DIYinHK.com » Aspect Ratios
返回列表 回復 發帖

Aspect Ratios

reference: http://www.mir.com/DMG/aspect.html#definitions

Aspect Ratios and Frame Sizes
(You can skip directly to the Handy Reference Table. The following discussion is actually a simplification of the truth, but it captures the important details. See the references for even more details.)
DefinitionsIn computer graphics, pixels are square. In video, pixels are rectangular. This is equivalent to saying that video has different spatial sampling in the horizontal and vertical directions.
A square pixel has a pixel aspect ratio (or sample aspect ratio [SAR]) of 1:1. A non-square pixel has an aspect ratio W:H where W and H are not equal.
Do not confuse this with the display aspect ratio [DAR], which describes the shape of the physically displayed image. This describes the shape of the frame as measured with a ruler.
The other two parameters describing video frame are the width and height measured in pixels. These parameters are related to each other as follows:
width      DAR
-------- = -----
height     SAR
Quick FactsThe industry standards (i.e. as practiced) for digital video sampling are derived from ITU-R BT.601 (also known as "CCIR-601" or "Rec.601"), and presume a horizontal sampling rate of 13.5 MHz and an active line of 720 samples. The pixel aspect ratio for 525-line video (NTSC) is 10:11. The pixel aspect ratio for 625-line video (PAL) is 59:54. Exactly. (Well, not exactly; see "What is square anyway?" below.)
An image with a standard display aspect ratio of 4:3 (i.e. TV) with 480 lines (i.e. NTSC) would thus have:
  • 640 square pixels per line, or
  • 704 non-square 10:11 pixels per line
Note that a 720 pixel scanline has thus captured an extra 8 pixels on either side! A 720x480 frame is not actually a 4:3 image. An image with a standard display aspect ratio of 4:3 (i.e. TV) with 576 lines (i.e. PAL) would thus have:
  • 768 square pixels per line, or
  • 702+54/59 non-square 59:54 pixels per line
Note that a 720 pixel scanline has thus captured an extra 17+5/59 pixels! (Too bad it doesn't work out to an even 8 per side...) A 720x576 frame is not actually a 4:3 image. DV Frame SizesStandard (non-widescreen) provides a frame size of 720x480 (DV-NTSC) or 720x576 (DV-PAL) using appropriate Rec.601 pixel aspect ratios. Thus, according to the previous calculations, these frames contain a visual image which is slightly wider than TV's 4:3 display aspect ratio. To be displayed properly in a 4:3 screen or window, the frames should be cropped by 8 pixels on each side. Widescreen Format
Standard TV has a 4:3 aspect ratio. The new widescreen format (HDTV, anamorphic DVD's, wide DV, etc.) has a 16:9 display aspect ratio. Frames are encoded at the same size, but with an appropriately scaled pixel aspect ratio:
  • 525-line (NTSC): 10:11 / 4:3 * 16:9 = 40:33
  • 625-line (PAL): 59:54 / 4:3 * 16:9 = 118:81
VCD RequirementsAn NTSC VCD contains an MPEG-1 video stream with 352x240 frames. The NTSC-VCD pixel aspect ratio is just Rec.601's standard 10:11. The frames implicitly are downsampled from a source containing 704x480 pixels. This is equivalent to a truly 4:3 source containing 640x480 square pixels.
Similarly, a PAL VCD contains on MPEG-1 video stream with 352x288 frames. The PAL-VCD pixel aspect ratio is just Rec.601's standard 59:54. The frames implicitly are downsampled from a source containing 704x576 pixels. This is equivalent to a source containing approximately 768x576 square pixels.
DV source material (with 720x480 or 720x576 sized frames) must be cropped by 8 pixels on each side (16 total) before scaling and encoding for VCD.
Exact 4:3 source material with Rec.601 pixels (i.e. 704x480 or 704x576 sized frames) or square pixels (i.e. 640x480 or 768x576 sized frames) does not require any cropping or padding before scaling and encoding for VCD.
The actual MPEG-1 specification specifies the following pixel aspect ratios:
  • 1.0950 for "CCIR Rec. 601, 525-line" images with frames of "711x487 at 4:3"
  • 0.9157 for "CCIR Rec. 601, 625-line" images with frames of "702x575 at 4:3"
These numbers are self-consistent, but otherwise rather contrived. They should have just said "10:11 for CCIR Rec.601, 525-line" and "59:54 for CCIR Rec.601, 625-line" since that is apparently what they meant and that is how they are used.
SVCD RequirementsSVCD's are, like everything in the video world, just a little bit different.
An NTSC SVCD contains on MPEG-2 video stream with 480x480 frames. The frames implicitly are scaled from a source containing 720x480 Rec.601 (10:11) pixels. This is equivalent to a source containing approximately 654.5x480 square pixels. One could even say that the NTSC-SVCD pixel aspect ratio is:
        10     720     480       10 * 3       15
Rp  =  ---- * ----- * -----  =  --------  =  ----
        11     480     480       11 * 2       11
Similarly, a PAL SVCD contains on MPEG-2 video stream with 480x576 frames. The frames implicitly are scaled from a source containing 720x576 Rec.601 (59:54) pixels. This is equivalent to a source containing approximately 786.67x576 square pixels. One could even say that the PAL-SVCD pixel aspect ratio is:
        59     720     576       59 * 3       59
Rp  =  ---- * ----- * -----  =  --------  =  ----
        54     576     480       54 * 2       36
Since it uses MPEG-2, SVCD also allows for encoding/specifying 16:9 material. Scaling appropriately, the requisite pixel aspect ratios for such sources are:
  • NTSC 16:9 source: 15:11 / 4:3 * 16:9 = 20:11
  • PAL 16:9 source: 59:36 / 4:3 * 16:9 = 59:27
DV source material (with 720x480 or 720x576 sized frames) can be directly encoded to SVCD --- with 2:3 scaling, of course, but no padding or cropping.
Exact 4:3 source material (with Rec.601 pixels, i.e. 704x480 or 704x576 sized frames) needs to be padded to a width of 720 before scaling and encoding for SVCD.
Square-pixel 4:3 source material (640x480 or 768x576 sized frames) likewise needs to be padded (to widths of 654 and 786 respectively) before scaling and encoding for SVCD.
According to the actual MPEG-2 specification, the video stream sequence header specifies the intended display aspect ratio rather than the pixel aspect ratios, from one of these choices:
  • 4:3
  • 16:9
  • 2.21:1
(Oh, and you can also specify "1:1 pixel aspect ratio".) This is supposed to be an improvement over MPEG-1's contrived pixel aspect ratio descriptions. It's not, because in practice, MPEG-2 sources are 720x480 or 720x576 with CCIR-601 pixels, which are slightly wider than 4:3 or 16:9. So, as before, the actual numbers in the specification don't mean very much.
Handy Reference TableAspect ratios are in terms of "WIDTH:HEIGHT". Frame sizes are in terms of "WIDTHxHEIGHT".

systemsource/destformatpixel aspect ratioframe size
525-line, NTSCframegrabber4:310:11704x480, 720x480, 352x240
DV4:310:11720x480
16:940:33720x480
graphics4:31:1 (square)640x480
16:91:1 (square)854x480
VCD4:310:11352x240, 704x480 (stills)
CVD4:320:11352x480
SVCD4:315:11480x480
10:11704x480 (stills)
16:920:11480x480
625-line, PALframegrabber4:359:54704x576, 720x576, 352x576
DV4:359:54720x576
16:9118:81720x576
graphics4:31:1 (square)768x576
16:91:1 (square)1024x576
VCD4:359:54352x288, 704x576 (stills)
CVD4:359:27352x576
SVCD4:359:36480x576
59:54704x576 (stills)
16:959:27480x576

Note that one typically tries to keep a constant frame height, by scaling the width as needed. With interlaced frames, scaling between scanlines becomes a complicated operation.
Note also that all the non-square pixel aspect ratios are derived in some way from the CCIR-Rec.601 ratios (via some combination of 3:4 and/or 2:3 to account for widescreen and/or SVCD). What is "square" anyway?
Just a note about the industry standards: With the sampling rates chosen by the Industry, "Industry Standard square pixels" are not actually square! According to Aho (see References), they have an aspect ratio of 768:767, which is very close to 1:1, but which is not truly exactly 1:1. To arrive at the "true" physical pixel aspect ratios of the various formats, all the numbers listed above need to be multiplied by 768:767.
However, all the conversions between formats --- e.g. any scaling to convert from one to another --- are referenced to the "Industry Standard square pixel". Unless you need to make physical measurements off of your screen, you will want to use the numbers above and live under the illusion that the Standard square pixel is truly a square pixel.

References:
return to the video library
浪子~孤獨就是良伴~
返回列表 回復 發帖
<<新主題 | 舊主題>>
娛樂滿紛 26FUN » DIYinHK.com » Aspect Ratios

重要聲明:26fun.com為一個討論區服務網站。本網站是以即時上載留言的方式運作,26fun.com對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。 由於本討論區受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者發現有留言出現問題,請聯絡我們。26fun.com有權刪除任何留言及拒絕任何人士上載留言,同時亦有不刪除留言的權利。切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。