廣告休息時間的 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,MediaTailor 會將廣告休息時間指定為資訊清單中的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:此標籤會出現在廣告板內的每個後續區段上,並包含持續時間和經過時間資訊。它還包含 base64 編碼的 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的欄位。

下表說明 MediaTailor 為每個segmentation_descriptor訊息所需的欄位。如需詳細資訊,請參閱 2022 SCTE-35 規格的第 10.3.3.1 節,您可以在 ANSI Webstore 網站購買。

segmentation_descriptor 訊息的必填欄位
欄位 Type 預設值 描述
segmentation_event_id integer 1 這是寫入 segmentation_descriptor.segmentation_event_id
segmentation_upid_type integer 14 (0x0E) 這是寫入 segmentation_descriptor.segmentation_upid_type。值必須介於 0 到 256 之間,包括 。
segmentation_upid string "" (空字串) 這是寫入 segmentation_descriptor.segmentation_upid。值必須是十六進位字串,其中包含字元 0-9A-F
segmentation_type_id integer 48 (0x30) 這是寫入 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訊息欄位設定的值。

MediaTailor 為segmentation_descriptor訊息欄位設定的值
欄位 Type Value
segmentation_event_cancel_indicator Boolean True
program_segmentation_flag Boolean True
delivery_not_restricted_flag Boolean True

MediaTailor 一律將 設定為 segmentation_duration_flag True。MediaTailor 會在segmentation_duration欄位中填入狀態內容的持續時間,以刻度表示。

注意

當 MediaTailor 傳送訊息時time_signal,它會將splice_info_section訊息中的 splice_command_type 欄位設定為 6 (0x06)。

在 HLS 輸出中,對於AdBreak具有time_signal訊息的 ,輸出EXT-X-DATERANGE標籤包含一個欄位,該SCTE-35欄位設定為splice_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:SpliceInfoSection具有 scte35:TimeSignal和 元素的scte35: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 輸出。