

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

# 支援的輸入和輸出
<a name="supported-inputs"></a>

本節說明 AWS Elemental MediaPackage 針對即時和隨選視訊 (VOD) 內容所支援的輸入類型、輸入和輸出編解碼器。

**Topics**
+ [即時支援的轉碼器和輸入類型](supported-inputs-live.md)
+ [Live-to-VOD 支援的轉碼器和輸入類型](supported-inputs-ltov.md)
+ [VOD 支援的轉碼器和輸入類型](supported-inputs-vod.md)

# 即時支援的轉碼器和輸入類型
<a name="supported-inputs-live"></a>

下列各節說明即時串流內容支援的輸入類型、輸入轉碼器和輸出轉碼器。

## 支援的輸入類型
<a name="supported-types-live"></a>

這些是 MediaPackage 支援即時內容的輸入類型。


| MediaPackage 輸入類型 | 使用案例 | 
| --- | --- | 
| HLS | 使用 HTTPS 通訊協定從外部來源或編碼器 (例如 AWS Elemental MediaLive) 推送 HLS 串流。其他需求：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html) | 

## 支援的輸入轉碼器
<a name="suported-inputs-codecs-live"></a>

這些是 MediaPackage 支援用於來源內容串流的視訊、音訊和字幕轉碼器。


| 媒體容器 | 視訊轉碼器 | 音訊轉碼器 | 字幕/字幕格式 | 
| --- | --- | --- | --- | 
|  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html) | 

## 支援的輸出轉碼器
<a name="suported-outputs-codecs-live"></a>

這些是 MediaPackage 在交付即時內容時支援的視訊、音訊和字幕轉碼器。


| 端點類型 | 資訊清單格式 | 媒體容器 | 視訊轉碼器 | 音訊轉碼器 | 字幕/字幕格式 | 
| --- | --- | --- | --- | --- | --- | 
| Apple HLS | HLS |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  | 
| DASH-ISO | MPEG-DASH | MP4 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  | 
| Microsoft Smooth | MSS | MP4 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  | DFXP | 
| CMAF | HLS | CMAF |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-live.html)  | 

# Live-to-VOD 支援的轉碼器和輸入類型
<a name="supported-inputs-ltov"></a>

下列各節說明從串流內容收集的live-to-VOD送資產支援的輸入類型、輸入轉碼器和輸出轉碼器 AWS Elemental MediaPackage。

## 支援的輸入類型
<a name="supported-types-ltov"></a>

這些是 MediaPackage 針對live-to-VOD播送資產支援的輸入類型。


| MediaPackage 輸入類型 | 使用案例 | 
| --- | --- | 
| HLS | 在 MediaPackage 中擷取部分即時 HLS 或 DASH 端點，並將其儲存為live-to-VOD送資產。 其他需求：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html) | 

## 支援的輸入轉碼器
<a name="supported-inputs-codecs-ltov"></a>

這些是 MediaPackage 支援用於live-to-VOD隨選播送資產的視訊、音訊和字幕轉碼器。


| 媒體容器 | 視訊轉碼器 | 音訊轉碼器 | 字幕/字幕格式 | 
| --- | --- | --- | --- | 
|  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  | 

## 支援的輸出轉碼器
<a name="supported-outputs-codecs-ltov"></a>

這些是 MediaPackage 在將live-to-VOD隨選播送資產儲存至 Amazon S3 儲存貯體時支援的視訊、音訊和字幕轉碼器。端點必須提供清除 （未加密） 或加密的 DASH 或 HLS 內容。


| 端點類型 | 資訊清單格式 | 媒體容器 | 視訊轉碼器 | 音訊轉碼器 | 字幕/字幕格式 | 
| --- | --- | --- | --- | --- | --- | 
| Apple HLS | HLS |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  | 
| DASH-ISO | MPEG-DASH | MP4 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-ltov.html)  | 

# VOD 支援的轉碼器和輸入類型
<a name="supported-inputs-vod"></a>

下列各節說明檔案型隨選視訊 (VOD) 內容支援的輸入類型、輸入轉碼器和輸出轉碼器。

## 支援的輸入類型
<a name="supported-types-vod"></a>

這些是 MediaPackage 針對 VOD 內容支援的輸入類型。


| MediaPackage 輸入類型 | 使用案例 | 
| --- | --- | 
| HLS | 從 Amazon S3 儲存貯體中提取 HLS 串流集，無論是否有安全連線。其他需求：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html) | 
| SMIL | 從 Amazon S3 儲存貯體中提取由 .smil 資訊清單參考的 MP4 串流集，無論是否具有安全連線。如需有關 .smil 資訊清單的資訊，請參閱 [.smil 資訊清單的需求](supported-inputs-vod-smil.md)。其他需求：[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html) | 

## 支援的輸入轉碼器
<a name="suported-inputs-codecs-vod"></a>

這些是 MediaPackage 針對檔案型來源內容支援的視訊、音訊和字幕轉碼器。


| 輸入類型 | 媒體容器 | 視訊轉碼器 | 音訊轉碼器 | 字幕/字幕格式 | 
| --- | --- | --- | --- | --- | 
| HLS |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  | 
| SMIL | MP4 (未切割分段) |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  | SRT | 

## 支援的輸出轉碼器
<a name="suported-outputs-codecs-vod"></a>

這些是 MediaPackage 支援用於交付 VOD 內容的視訊、音訊和字幕轉碼器。


| 端點類型 | 資訊清單格式 | 媒體容器 | 視訊轉碼器 | 音訊轉碼器 | 字幕/字幕格式 | 
| --- | --- | --- | --- | --- | --- | 
| Apple HLS | HLS |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  | 
| DASH-ISO | MPEG-DASH | MP4 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  | 
| Microsoft Smooth | MSS | MP4 |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  | DFXP | 
| CMAF | HLS | CMAF |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  |  [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/mediapackage/latest/ug/supported-inputs-vod.html)  | 

# .smil 資訊清單的需求
<a name="supported-inputs-vod-smil"></a>

傳送 VOD MP4 資產至 時 AWS Elemental MediaPackage，必須包含 .smil 資訊清單。.smil 資訊清單是一種 XML 檔案，可做為資產中所有檔案的包裝函式，讓 MediaPackage 知道哪些 MP4s屬於單一資產。

**資源**
+ 如需建立 .smil 資訊清單的指引，請參閱[使用 AWS Elemental MediaPackage VOD （部落格） 的 .smil](https://aws.amazon.com/blogs/media/smil-using-aws-elemental-mediapackage-vod/)。
+ 如需同步多媒體整合語言 (SMIL) 的一般資訊，請參閱 [SMIL 3.0 規格。](https://www.w3.org/TR/SMIL/)

MediaPackage 支援 .smil 資訊清單中的下列屬性。

**Attributes**
+ `audioName` - 音軌的名稱，例如 `English 2`。
+ `includeAudio` - 布林值，指出是否應包含音軌。此屬性應包含定義語言的任意值。如果未指定，所有 追蹤都會預設為 `true`。
+ `src` 或 `name` - 相對於資訊清單位置的文字串流或視訊檔案的名稱或來源。
+ `subtitleName` - 字幕名稱，例如 `English`。
+ `systemLanguage` 或 `language` - 系統語言，例如 `eng`。

**Example .smil 資訊清單**  
以下是 `.smil` 資訊清單的範例。  

```
<?xml version="1.0" encoding="utf-8"?>
<smil>
    <body>
        <alias value="Example"/>
        <switch>
            <video name="example_360.mp4" systemLanguage="eng,fra,spa" audioName="English,French,Spanish" includeAudio="true,true,true"/>
            <video name="example_480.mp4" systemLanguage="eng" audioName="English 2" includeAudio="false"/>
            <textstream src="example_subs_eng.srt" systemLanguage="eng" subtitleName="English" includeAudio="false"/>
            <textstream src="example_subs_fra.srt" systemLanguage="fra" subtitleName="French" includeAudio="false"/>
            <textstream src="example_subs_spa.srt" systemLanguage="spa" subtitleName="Spanish" includeAudio="false"/>
    </switch>
</body>
</smil>
```