適用於廣告插播的 SCTE-35 訊息 - AWS Elemental MediaTailor

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

適用於廣告插播的 SCTE-35 訊息

使用 MediaTailor,您可以根據源位置和 VOD 源資源創建內容頻道。然後,您可以在頻道的時間表中為每個節目設置一個或多個廣告插播時間。您可以使用根據 SCTE-35 規格的訊息來調節廣告插播的內容。舉例來說,您可以使用 SCTE-35 訊息提供關於廣告插播的中繼資料。如需 SCTE-35 規格的詳細資訊,請參閱數位程式插入提示訊息

您可以使用下列兩種方式之一來設定廣告插播:

  • 附加帶有消息的 time_signal SCTE-35 segmentation_descriptor 消息。此訊segmentation_descriptor息包含更多進階中繼資料欄位 (例如內容識別碼),可傳送有關廣告插播的詳細資訊。 MediaTailor 將廣告中繼資料寫入輸出資訊清單,做為 EXT-X-DATERANGE (HLS) 或 EventStream (DASH) 廣告標記 SCTE-35 資料的一部分。

  • 附加 splice_insert SCTE-35 訊息,以提供廣告插播的基本中繼資料。

  • HLS:

    • 如果廣告標記類型為Daterange,則會在資訊清單中將廣告插播EXT-X-DATERANGE標記指定為標記。

    • 當廣告標記類型為時Scte35 Enhanced,請使用下列代碼 MediaTailor 指定廣告插播時間:

      • MediaTailor EXT-X-CUE-OUT在廣告平板的第一個區段上放置一個,表示從內容切斷到廣告插播。它包含廣告插播的預期持續時間,例如EXT-X-CUE-OUT:Duration=30

      • >EXT-X-ASSET: 此標記出現在相同的區段上,EXT-X-CUE-OUT且包含建立或更新程式 AdBreak 時所提供的廣告插播中繼資料。它總是包含CAID

      • EXT-OATCLS-SCTE35:此標記會出現在相同的區段上,EXT-X-CUE-OUT且包含 SCTE-35 訊息的 base64 編碼位元組。

      • EXT-X-CUE-OUT-CONT: 這個標記會出現在廣告版面中的每個後續區段上,並包含持續時間和經過時間資訊。它也包含基 64 編碼的 SCTE-35 訊息,以及. CAID

      • EXT-X-CUE-IN:廣告插播結束後,這個標記會顯示在內容的第一個區段上,並代表廣告插播內容的縮減。

下圖顯示使用 SCTE-35 訊息在頻道中設定廣告插播的兩種方式:

  • 使用splice_insert()訊息設定包含基本中繼資料的廣告插播。

  • 將訊息與time_signal()segmentation_descriptor()息一起使用,設定包含更詳細中繼資料的廣告插播。


        使用 SCTE-35 訊息在頻道中設定廣告插播的兩種方式。

如需使用的相關資訊time_signal,請參閱 2022 年 SCTE-35 規格〈數位程式插入提示訊息〉第 9.7.4 節

廣告插播資訊會顯示在輸出 splice_info_section SCTE-35 資料中。使用 MediaTailor,您可以將單一segmentation_descriptor訊息與單一time_signal訊息配對。

注意

如果您傳送segmentation_descriptor訊息,則必須將其作為time_signal訊息類型的一部分傳送。該time_signal消息僅包含使用給定時間戳 MediaTailor 構造的splice_time字段。

下表說明每segmentation_descriptor封郵件所 MediaTailor 需的欄位。有關更多信息,請參閱 2022 年 SCTE-35 規範的第 10.3.3.1 節,您可以在 ANSI 網上商店網站上購買。

segmentation_descriptor訊息的必要欄位
欄位 類型 預設值 說明
segmentation_event_id integer 1 這是寫入的segmentation_descriptor.segmentation_event_id
segmentation_upid_type integer 十四 (0E) 這是寫入的segmentation_descriptor.segmentation_upid_type。此值必須介於 0 到 256 (含) 之間。
segmentation_upid string ""(空字串) 這是寫入的segmentation_descriptor.segmentation_upid。該值必須是十六進制字符串,其中包含字符0-9A-F
segmentation_type_id integer 48 這是寫入的segmentation_descriptor.segmentation_type_id。此值必須介於 0 到 256 (含) 之間。
segment_num integer 0 這是寫入的segmentation_descriptor.segment_num。此值必須介於 0 到 256 (含) 之間。
segments_expected integer 0 這是寫入的segmentation_descriptor.segments_expected。此值必須介於 0 到 256 (含) 之間。
sub_segment_num integer null 這是寫入的segmentation_descriptor.sub_segment_num。此值必須介於 0 到 256 (含) 之間。
sub_segments_expected integer null 這是寫入的segmentation_descriptor.sub_segments_expected。此值必須介於 0 到 256 (含) 之間。

下表顯示 MediaTailor 自動為某些segmentation_descriptor郵件欄位設定的值。

segmentation_descriptor訊息欄位所 MediaTailor 設定的值
欄位 類型
segmentation_event_cancel_indicator 布林值 True
program_segmentation_flag 布林值 True
delivery_not_restricted_flag 布林值 True

MediaTailor 永遠設定segmentation_duration_flagTrue。 MediaTailor在segmentation_duration欄位中填入狀態內容的持續時間 (以刻度為單位)。

注意

MediaTailor 發送time_signal消息時,它將消splice_info_section息中的splice_command_type字段設置為 6(0x06)。

在 HLS 輸出中,對於AdBreak帶有time_signal消息,輸出EXT-X-DATERANGE標籤包括設置為消息的序列化版本的SCTE-35splice_info_section字段。例如,下列EXT-X-DATERANGE標記會顯示splice_info_section郵件的序列化版本:

#EXT-X-DATERANGE:ID=\"1\",START-DATE=\"2020-09-25T02:13:20Z\",DURATION=300.0,SCTE35-OUT=0xFC002C00000000000000FFF00506800000000000160214435545490000000100E000019BFCC00E0030000000000000

在 DASH 輸出中,對於AdBreak帶有time_signal消息的輸出元素,輸出EventStream元素包括具有scte35:TimeSignalscte35:SpliceInfoSectionscte35:SegmentationDescriptor素作為其子項的元素。該scte35:TimeSignal元素具有子scte35:SpliceTime元素,並且該scte35:SegmentationDescriptor元素具有子scte35:SegmentationUpid元素。例如,下列 DASH 輸出會顯示EventStream元素的子元素結構:

<EventStream schemeIdUri="urn:scte:scte35:2013:xml" timescale="90000"> <Event duration="27000000"> <scte35:SpliceInfoSection protocolVersion="0" ptsAdjustment="0" tier="4095"> <scte35:TimeSignal> <scte35:SpliceTime ptsTime="0" /> </scte35:TimeSignal> <scte35:SegmentationDescriptor segmentNum="0" segmentationDuration="27000000" segmentationEventCancelIndicator="false" segmentationEventId="1" segmentationTypeId="48" segmentsExpected="0"> <scte35:SegmentationUpid segmentationUpidFormat="hexBinary" segmentationUpidType="14">012345</scte35:SegmentationUpid> </scte35:SegmentationDescriptor> </scte35:SpliceInfoSection> </Event> </EventStream>

您了解到如何使用 SCTE-35 訊息在頻道組件中設定廣告插播、這些訊息的結構和必要欄位,以及包含 SCTE-35 訊息的 HLS 和 DASH 輸出範例。