

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 影片擴展行為和長寬比
<a name="video-scaling"></a>

您可以選擇 如何使用 **Scaling 行為**，將輸入視訊影像 AWS Elemental MediaConvert 擴展到您指定的輸出解析度。

下表顯示**擴展行為**、**擴展填補**、**高度**和**寬度**如何互動以變更輸出映像。

**Topics**
+ [設定預設擴展 （適配填補）](video-scaling-default.md)
+ [設定延伸到輸出擴展](video-scaling-stretch-ratio.md)
+ [設定擬合擴展](video-scaling-fit-ratio.md)
+ [設定適合度而不擴展規模](video-scaling-fit-without-upscaling.md)
+ [設定填充擴展](video-scaling-fill-ratio.md)

# 設定預設擴展 （適配填補）
<a name="video-scaling-default"></a>

如果您為**擴展行為**選擇**預設 （具有填補的調整）**，MediaConvert 會將您的視訊映像擴展到您的輸出解析度。然後，如果您的輸入解析度與輸出解析度的長寬比不同，MediaConvert 會填補您的視訊影像，直到其符合您輸出解析度的維度為止。

例如，如果您的輸入檔案是`1280`像素乘`720`以像素，而且您指定的輸出解析度是`640`像素乘以`480`像素，MediaConvert 會將影像大小縮減為 ，`640x360`然後填補影像的頂部和底部，以便最終影片解析度為 `640x480`。MediaConvert 不會針對**預設**擴展行為使用裁切。

**索引鍵**

下列索引鍵圖形顯示輸入和輸出影像寬度、高度、裁切和填補。在此關鍵圖形中，輸入維度 （在頂部和左側） 為藍色，輸出維度 （在右側和底部） 為紅色。

![\[長寬比金鑰\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/key.png)


下表顯示當您的輸入和輸出解析度不同時的範例影像擴展行為。如需關於讀取影像的詳細資訊，請參閱上一個索引鍵圖形。


|  條件  |  輸入  |  Output  | 
| --- | --- | --- | 
|  輸入寬度小於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon with dimensions labeled: 200x200 inner square, 300x400 outer rectangle.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input1-thumb.png)  |  ![\[Diagram showing a blue figure icon centered within a frame with dimensions labeled.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit1-padded-thumb.png)  | 
|  輸入寬度小於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue pawn-shaped figure on a checkered background with red measurement lines.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input2-thumb.png)  |  ![\[Diagram showing a blue figure centered within a white rectangle surrounded by black bars.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit2-padded-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon centered within a rectangular frame with dimensions labeled.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input3-thumb.png)  |  ![\[Diagram showing dimensions of a rectangle: 500 width, 400 height, with inner area of 300x200.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit3-padded-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue silhouette icon of a person within a red square frame on a grid background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input4-thumb.png)  |  ![\[Blue 3D snowman-like figure centered within nested squares on a checkered background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit4-padded-thumb.png)  | 

# 設定延伸到輸出擴展
<a name="video-scaling-stretch-ratio"></a>

如果您選擇**擴展來輸出****擴展行為**，MediaConvert 會將視訊映像擴展或縮減為輸出解析度。

例如，如果您的輸入影像是`200`像素乘`200`以像素，而且您想要輸出解析度是`300`像素乘以`400`像素，MediaConvert 會將輸入影像的大小增加為`300`像素乘以`400`像素，使輸出影像的比例失真。MediaConvert 不會使用**擴展至輸出**擴展行為的填補或裁切。

**重要**  
如果您的輸入解析度與輸出解析度具有不同的長寬比，則與輸入影像相比，輸出影像將會失真。

**索引鍵**

下列索引鍵圖形顯示輸入和輸出影像寬度、高度、裁切和填補。在此關鍵圖形中，輸入維度 （在頂部和左側） 為藍色，輸出維度 （在右側和底部） 為紅色。

![\[長寬比金鑰\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/key.png)


下表顯示當您的輸入和輸出解析度不同時的範例影像擴展行為。如需關於讀取影像的詳細資訊，請參閱上一個索引鍵圖形。


|  條件  |  輸入  |  Output  | 
| --- | --- | --- | 
|  輸入寬度小於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon with dimensions labeled: 200x200 inner square, 300x400 outer rectangle.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input1-thumb.png)  |  ![\[Blue 3D object resembling a chess pawn piece with dimensions labeled around it.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/stretch1-thumb.png)  | 
|  輸入寬度小於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue pawn-shaped figure on a checkered background with red measurement lines.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input2-thumb.png)  |  ![\[Diagram showing dimensions of a blue cylindrical object on a checkered background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/stretch2-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon centered within a rectangular frame with dimensions labeled.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input3-thumb.png)  |  ![\[Diagram showing a blue bowling pin shape centered within nested rectangles and numerical labels.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/stretch3-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue silhouette icon of a person within a red square frame on a grid background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input4-thumb.png)  |  ![\[Blue 3D figure resembling a snowman or stacked spheres centered in a square frame.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/stretch4-thumb.png)  | 

# 設定擬合擴展
<a name="video-scaling-fit-ratio"></a>

如果您選擇**適合****擴展行為**，MediaConvert 會擴展您的輸入映像，直到符合輸出解析度的維度，而不會超過輸出解析度的維度。

例如，如果您的輸入檔案是`200`像素乘`200`以像素，而且您想要輸出解析度是`300`像素乘以`400`像素，MediaConvert 會將影像乘`300`以`300`像素。當您選擇**擬**合時，MediaConvert 不會將填補新增至輸出。

**索引鍵**

下列索引鍵圖形顯示輸入和輸出影像寬度、高度、裁切和填補。在此關鍵圖形中，輸入維度 （在頂部和左側） 為藍色，輸出維度 （在右側和底部） 為紅色。

![\[長寬比金鑰\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/key.png)


下表顯示當您的輸入和輸出解析度不同時的範例影像擴展行為。如需關於讀取影像的詳細資訊，請參閱上一個索引鍵圖形。


|  條件  |  輸入  |  Output  | 
| --- | --- | --- | 
|  輸入寬度小於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon with dimensions labeled: 200x200 inner square, 300x400 outer rectangle.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input1-thumb.png)  |  ![\[Blue figure icon with size dimensions labeled around it: 400 width, 300 height, 200 top and left.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit1-unpadded-thumb.png)  | 
|  輸入寬度小於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue pawn-shaped figure on a checkered background with red measurement lines.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input2-thumb.png)  |  ![\[Diagram showing a blue figure centered in a 400x200 pixel area with surrounding measurements.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit2-unpadded-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon centered within a rectangular frame with dimensions labeled.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input3-thumb.png)  |  ![\[Diagram showing a rectangle with dimensions 400x300 inside a larger 500x200 area.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit3-unpadded-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue silhouette icon of a person within a red square frame on a grid background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input4-thumb.png)  |  ![\[Blue 3D figure resembling a snowman or stacked spheres centered in a square frame.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit4-unpadded-thumb.png)  | 

# 設定適合度而不擴展規模
<a name="video-scaling-fit-without-upscaling"></a>

如果您選擇**適配而不進行擴展****，**MediaConvert 會減少輸入映像的大小，直到符合輸出解析度的維度，而不會超過輸出解析度的任何維度。如果您的輸入映像小於輸出映像，MediaConvert 不會增加映像的大小。

例如，如果您的輸入影像是`400`像素乘`400`以像素，而且您想要輸出解析度是`200`像素乘以`300`像素，MediaConvert 會將您的輸入影像縮減為`200`像素乘以`200`像素。當您選擇**適配而不進行擴展**時，MediaConvert 不會新增填補。

**注意**  
當您在 **Apple HLS**、**DASH** 或 **CMAF** 輸出群組中啟用**自動 ABR** 時，您無法在**無擴展的情況下選擇擬**合。

**索引鍵**

下列索引鍵圖形顯示輸入和輸出影像寬度、高度、裁切和填補。在此關鍵圖形中，輸入維度 （在頂部和左側） 為藍色，輸出維度 （在右側和底部） 為紅色。

![\[長寬比金鑰\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/key.png)


下表顯示當您的輸入和輸出解析度不同時的範例影像擴展行為。如需關於讀取影像的詳細資訊，請參閱上一個索引鍵圖形。


|  條件  |  輸入  |  Output  | 
| --- | --- | --- | 
|  輸入寬度小於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon with dimensions labeled: 200x200 inner square, 300x400 outer rectangle.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input1-thumb.png)  |  ![\[Diagram showing a blue user icon surrounded by numbered dimensions: 200, 300, and 400.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/keep1-unpadded-thumb.png)  | 
|  輸入寬度小於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue pawn-shaped figure on a checkered background with red measurement lines.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input2-thumb.png)  |  ![\[Diagram showing a blue figure centered in a 400x200 pixel area with surrounding measurements.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit2-unpadded-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon centered within a rectangular frame with dimensions labeled.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input3-thumb.png)  |  ![\[Diagram showing a rectangle with dimensions 400x300 inside a larger 500x200 area.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit3-unpadded-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue silhouette icon of a person within a red square frame on a grid background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input4-thumb.png)  |  ![\[Blue 3D figure resembling a snowman or stacked spheres centered in a square frame.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fit4-unpadded-thumb.png)  | 

# 設定填充擴展
<a name="video-scaling-fill-ratio"></a>

如果您選擇**填補****擴展行為**，MediaConvert 會擴展輸入映像，直到填滿輸出解析度的維度，並裁剪任何超過輸出解析度維度的項目。

例如，如果您的輸入檔案是`200`像素乘`200`以像素，而您想要的輸出解析度是`300`像素乘以`400`像素，MediaConvert 會將輸入影像的大小增加為`400`像素乘以`400`像素，裁切出頂部和底部`50`像素，並傳回`300`像素乘以`400`像素檔案。當您選擇**填充**時，MediaConvert 不會將填補新增至輸出。

**索引鍵**

下列索引鍵圖形顯示輸入和輸出影像寬度、高度、裁切和填補。在此關鍵圖形中，輸入維度 （在頂部和左側） 為藍色，輸出維度 （在右側和底部） 為紅色。

![\[長寬比金鑰\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/key.png)


下表顯示當您的輸入和輸出解析度不同時的範例影像擴展行為。如需關於讀取影像的詳細資訊，請參閱上一個索引鍵圖形。


|  條件  |  輸入  |  Output  | 
| --- | --- | --- | 
|  輸入寬度小於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon with dimensions labeled: 200x200 inner square, 300x400 outer rectangle.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input1-thumb.png)  |  ![\[Blue figure icon with dimensions and sizing information overlaid on a checkered background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fill1-thumb.png)  | 
|  輸入寬度小於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue pawn-shaped figure on a checkered background with red measurement lines.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input2-thumb.png)  |  ![\[Diagram showing a blue figure with dimensions: 200 height, 300 width, 400 total height.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fill2-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度小於輸出高度  |  ![\[Blue user icon centered within a rectangular frame with dimensions labeled.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input3-thumb.png)  |  ![\[Blue hourglass-shaped icon with numerical values indicating dimensions around it.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fill3-thumb.png)  | 
|  輸入寬度大於輸出寬度 輸入高度大於輸出高度  |  ![\[Blue silhouette icon of a person within a red square frame on a grid background.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/input4-thumb.png)  |  ![\[Blue 3D figure centered in a square frame with measurement indicators on the sides.\]](http://docs.aws.amazon.com/zh_tw/mediaconvert/latest/ug/images/fill4-thumb.png)  | 