

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

# 將輸出編碼映射至來源
<a name="channel-map-output-source"></a>

在規劃頻道的第一個步驟中，您已識別每個輸出群組中所需的編碼數量。您現在必須決定您可以使用來源中的哪些資產來產生這些編碼。

**此程序的結果**  
執行此程序後，您將識別以下您將在頻道中建立的關鍵元件：
+ 視訊輸入選擇器 
+ 音訊輸入選擇器
+ 字幕輸入選擇器

識別這些元件是規劃頻道*輸入*端的最後一個步驟。

**將輸出映射至來源**

1. 取得您要產生的*輸出編碼清單*。您在[上一個步驟](planning-encodes.md)中建立此清單。將此清單整理成資料表非常有用。例如：  
**範例**    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/channel-map-output-source.html)

1. 取得您在評估*來源內容和收集的識別符時建立的來源清單*。如需這類清單的範例，請參閱 [評估上游系統](evaluate-upstream-system.md)。

1. 在輸出編碼資料表中，再新增兩個資料欄，在來源中標記為*來源*和識別符。 **

1. 針對每個編碼 （資料欄 2)，在可產生該編碼*的來源清單中*尋找一行。新增來源轉碼器和該來源轉碼器的識別符。此範例顯示已完成的資料表。  
**範例**    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/channel-map-output-source.html)

   當您建立頻道時，將使用此資訊：
   + 當您[建立輸入選取](input-video-selector.md)器時，將使用來源和來源識別符資訊。
   + 當您在輸出群組中[建立編碼時，](creating-a-channel-step6.md)將使用特性資訊。

1. 識別來源資產之後，請將正在使用超過一次的資產分組，以移除重複的資產。

1. 依其類型標記每個資產：視訊、音訊或字幕。  
**範例**    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/channel-map-output-source.html)

## 映射範例
<a name="channel-map-example"></a>

下圖說明將輸出編碼映射回來源資產。第一個圖表顯示輸出 （位於頂端） 和來源 （位於底部）。其他三個圖表顯示與視訊、音訊和字幕映射相同的輸出和來源。

**編碼和資產**

![\[Diagram showing HLS, RTMP, and Archive sections with various video, audio, and caption sources.\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/images/channel-design-map-in-out.png)


**將影片編碼映射至資產**

![\[Diagram showing video, audio, and caption sources mapped to HLS, RTMP, and Archive outputs.\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/images/channel-design-map-in-out-V.png)


**將音訊編碼映射至資產**

![\[Diagram showing audio and video sources mapped to HLS, RTMP, and Archive outputs.\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/images/channel-design-map-in-out-A.png)


**將字幕編碼映射至資產**

![\[Diagram showing video, audio, and caption sources mapped to HLS, RTMP, and Archive outputs.\]](http://docs.aws.amazon.com/zh_tw/medialive/latest/ug/images/channel-design-map-in-out-C.png)
