監視清單更新時間 - AWS Elemental MediaPackage

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

監視清單更新時間

AWS Elemental MediaPackage播放回應包含下列自訂標題,指出 MediaPackage 上次在非動態廣告插入工作流程中修改資訊清單的時間。這些標頭在疑難排解與過時資訊清單相關的問題時很有幫助。

X-MediaPackage 清單-最後一個序列

這是資訊清單中最高的區段序號。

  • 對於 DASH,這是資訊清單最低轉譯中的最高區段編號。

  • 對於 HLS 和 CMAF 而言,這是媒體播放清單中最高的區段編號。

  • 對於 MSS,這是資訊清單中的最高區段編號。

如需資訊清單範例,請參閱下一節。

X-MediaPackage 清單上次更新

MediaPackage 產生中參照的區段時,紀元時間戳記 (以毫秒為單位X-MediaPackage-Manifest-Last-Sequence)。

清單示例

短跑清單示例

對於緊湊型和完整 DASH 清單,從清單的最低轉譯中的最高段號 MediaPackage 確定X-MediaPackage-Manifest-Last-Sequence值。服務會根據產生中所參照區段的時間來計算X-MediaPackage-Manifest-Last-UpdatedX-MediaPackage-Manifest-Last-Sequence

以下是使用具有持續時間模板的數字的緊湊 DASH 清單的示例。 MediaPackage 決X-MediaPackage-Manifest-Last-Sequence定資訊清單中最低轉譯中最高區段編號的值。例如,在下列資訊清單中,最高區段編號為index_video_5_0_175232.mp4,因此的值X-MediaPackage-Manifest-Last-Sequence175232。請參SegmentTemplate 中的 duration 屬性閱,以取得有關如何 MediaPackage計算序列$Number$值的資訊。的值X-MediaPackage-Manifest-Last-Updated是 MediaPackage 產生中所參照的區段時間戳記 (以毫秒為單位X-MediaPackage-Manifest-Last-Sequence)。

<?xml version="1.0" encoding="utf-8"?> <MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" id="201" type="dynamic" publishTime="2021-09-08T21:01:38" minimumUpdatePeriod="PT0S" availabilityStartTime="2018-11-16T19:08:30Z+00:00" minBufferTime="PT0S" suggestedPresentationDelay="PT0.000S" timeShiftBufferDepth="PT116.533S" profiles="urn:mpeg:dash:profile:isoff-live:2011"> <Period start="PT0.000S" id="1"> <AdaptationSet mimeType="video/mp4" segmentAlignment="true" subsegmentAlignment="true" startWithSAP="1" subsegmentStartsWithSAP="1" bitstreamSwitching="true"> <SegmentTemplate timescale="30000" media="index_video_$RepresentationID$_0_$Number$.mp4?m=1543947824" initialization="index_video_$RepresentationID$_0_init.mp4?m=1543947824" startNumber="175032" duration="90000"/> <Representation id="1" width="640" height="360" frameRate="30/1" bandwidth="749952" codecs="avc1.640029"/> <Representation id="2" width="854" height="480" frameRate="30/1" bandwidth="1000000" codecs="avc1.640029"/> <Representation id="3" width="1280" height="720" frameRate="30/1" bandwidth="2499968" codecs="avc1.640029"/> </AdaptationSet> </Period> </MPD>

以下是使用編號搭配時間軸範本的緊湊 DASH 資訊清單範例。 MediaPackage 決X-MediaPackage-Manifest-Last-Sequence定資訊清單中最低轉譯中最高區段編號的值。例如,在下列資訊清單中,最高區段編號為index_video_1_0_7.mp4,因此的值X-MediaPackage-Manifest-Last-Sequence7。的值X-MediaPackage-Manifest-Last-Updated是當 MediaPackage 產生中所參照的區段時,紀元時間戳記 (以毫秒為單位X-MediaPackage-Manifest-Last-Sequence)。

<?xml version="1.0" encoding="utf-8"?> <MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" id="201" type="static" mediaPresentationDuration="PT72.458S" minBufferTime="PT0S" profiles="urn:mpeg:dash:profile:isoff-main:2011"> <Period start="PT0.000S" id="1" duration="PT74.758S"> <AdaptationSet mimeType="video/mp4" segmentAlignment="true" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1" bitstreamSwitching="true"> <SegmentTemplate timescale="48000" media="index_video_$RepresentationID$_0_$Number$.mp4?m=1621616401" initialization="index_video_$RepresentationID$_0_init.mp4?m=1621616401" startNumber="1" presentationTimeOffset="108800"> <SegmentTimeline> <S t="110400" d="540000" r="5"/> <S t="3350400" d="238000"/> </SegmentTimeline> </SegmentTemplate> <Representation id="1" width="640" height="480" frameRate="24/1" bandwidth="5000000" codecs="avc1.4D401E"/> </AdaptationSet> <AdaptationSet mimeType="audio/mp4" segmentAlignment="0" lang="eng"> <Label>eng</Label> <SegmentTemplate timescale="48000" media="index_audio_$RepresentationID$_0_$Number$.mp4?m=1621616401" initialization="index_audio_$RepresentationID$_0_init.mp4?m=1621616401" startNumber="1" presentationTimeOffset="108800"> <SegmentTimeline> <S t="108800" d="541696"/> <S t="650496" d="540672"/> <S t="1191168" d="539648" r="1"/> <S t="2270464" d="540672"/> <S t="2811136" d="539648"/> <S t="3350784" d="236544"/> </SegmentTimeline> </SegmentTemplate> <Representation id="2" bandwidth="192000" audioSamplingRate="48000" codecs="mp4a.40.2"> <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></AudioChannelConfiguration> </Representation> </AdaptationSet> <SupplementalProperty schemeIdUri="urn:scte:dash:utc-time" value="2021-05-21T16:59:47.450Z"></SupplementalProperty> </Period> </MPD>

以下是使用具有持續時間模板的數字的緊湊 DASH 清單的示例。 MediaPackage 決X-MediaPackage-Manifest-Last-Sequence定資訊清單中最低轉譯中最高區段編號的值。例如,在下列資訊清單中,最高區段編號為index_video_1_0_1675200.mp4,因此的值X-MediaPackage-Manifest-Last-Sequence1675200。如需有SegmentTemplate 中的 media 屬性關如何 MediaPackage計算序號的資訊,請參閱。的值X-MediaPackage-Manifest-Last-Updated是當 MediaPackage 產生中所參照的區段時,紀元時間戳記 (以毫秒為單位X-MediaPackage-Manifest-Last-Sequence)。

<?xml version="1.0" encoding="utf-8"?> <MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" id="201" type="static" mediaPresentationDuration="PT72.458S" minBufferTime="PT0S" profiles="urn:mpeg:dash:profile:isoff-main:2011"> <Period start="PT0.000S" id="1" duration="PT74.758S"> <AdaptationSet mimeType="video/mp4" segmentAlignment="true" startWithSAP="1" subsegmentAlignment="true" subsegmentStartsWithSAP="1" bitstreamSwitching="true"> <SegmentTemplate timescale="48000" media="index_video_$RepresentationID$_0_$Time$.mp4?m=1621616401" initialization="index_video_$RepresentationID$_0_init.mp4?m=1621616401" startNumber="1" presentationTimeOffset="108800"> <SegmentTimeline> <S t="55200" d="270000" r="5"/> <S t="1675200" d="119000"/> </SegmentTimeline> </SegmentTemplate> <Representation id="1" width="640" height="480" frameRate="24/1" bandwidth="5000000" codecs="avc1.4D401E"/> </AdaptationSet> <AdaptationSet mimeType="audio/mp4" segmentAlignment="0" lang="eng"> <Label>eng</Label> <SegmentTemplate timescale="48000" media="index_audio_$RepresentationID$_0_$Time$.mp4?m=1621616401" initialization="index_audio_$RepresentationID$_0_init.mp4?m=1621616401" startNumber="1" presentationTimeOffset="108800"> <SegmentTimeline> <S t="108800" d="541696"/> <S t="650496" d="540672"/> <S t="1191168" d="539648" r="1"/> <S t="2270464" d="540672"/> <S t="2811136" d="539648"/> <S t="3350784" d="236544"/> </SegmentTimeline> </SegmentTemplate> <Representation id="2" bandwidth="192000" audioSamplingRate="48000" codecs="mp4a.40.2"> <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></AudioChannelConfiguration> </Representation> </AdaptationSet> <SupplementalProperty schemeIdUri="urn:scte:dash:utc-time" value="2021-05-21T16:59:47.450Z"></SupplementalProperty> </Period> </MPD>

HLS 資訊清單

MediaPackage 決X-MediaPackage-Manifest-Last-Sequence定資訊清單中最後一個區段的值。例如,在下列資訊清單中index_1_3.ts是最高的區段序號,因此的值X-MediaPackage-Manifest-Last-Sequence3。的值X-MediaPackage-Manifest-Last-Updated對應於在資訊清單中 MediaPackage 產生最後一個區段時間戳記 (以毫秒為單位)。

#EXTM3U #EXT-X-VERSION:3 #EXT-X-TARGETDURATION:8 #EXT-X-MEDIA-SEQUENCE:0 #EXTINF:7.500, index_1_0.ts?m=1583172400 #EXTINF:7.500, index_1_1.ts?m=1583172400 #EXTINF:7.500, index_1_2.ts?m=1583172400 #EXTINF:7.500, index_1_3.ts?m=1583172400 #EXT-X-ENDLIST

政制及內地事務基金

與 HLS 類似, MediaPackage 確定清單中最後一個段的X-MediaPackage-Manifest-Last-Sequence值。例如,在下列資訊清單中../cmafseg_video_1_10.mp4?m=1621616399是最高的區段序號,因此的值X-MediaPackage-Manifest-Last-Sequence10。的值X-MediaPackage-Manifest-Last-Updated對應於在資訊清單中 MediaPackage 產生最後一個區段時間戳記 (以毫秒為單位)。

#EXTM3U #EXT-X-VERSION:6 #EXT-X-INDEPENDENT-SEGMENTS #EXT-X-TARGETDURATION:12 #EXT-X-MEDIA-SEQUENCE:1 #EXT-X-MAP:URI="../cmafseg_video_1_track_1098178399_csid_aaa_2_init.mp4" #EXTINF:11.250, ../cmafseg_video_1_1.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_2.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_3.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_4.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_5.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_6.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_7.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_8.mp4?m=1621616399 #EXTINF:11.250, ../cmafseg_video_1_9.mp4?m=1621616399 #EXTINF:0.542, ../cmafseg_video_1_10.mp4?m=1621616399 #EXT-X-ENDLIST

MSS 資訊清單

MediaPackage 決定資訊清單中最高區段的X-MediaPackage-Manifest-Last-Sequence值,如所示Fragments(a_2_0={start time})。例如,在下面的清單Fragments(a_2_0=380533333)是最高的序列號,所以的值X-MediaPackage-Manifest-Last-Sequence380333333。的值X-MediaPackage-Manifest-Last-Updated對應於在資訊清單中 MediaPackage 產生最後一個區段時間戳記 (以毫秒為單位)。

<SmoothStreamingMedia MajorVersion="2" MinorVersion="2" TimeScale="10000000" CanSeek="TRUE" CanPause="TRUE" IsLive="TRUE" LookAheadFragmentCount="2" DVRWindowLength="3000000000" Duration="0"> <CustomAttributes> <Attribute Name="ProducerReferenceTime" Value="2017-06-14T22:07:01.967Z"/> </CustomAttributes> <StreamIndex Type="video" Name="video" Subtype="" Chunks="3" TimeScale="10000000" Url="Events(203_0)/QualityLevels({bitrate})/Fragments(v={start time})" QualityLevels="1"> <QualityLevel Index="0" Bitrate="4000000" CodecPrivateData="00000001274D401F924602802DD80880000003008000001E7220007A120000895477BDC07C22114E0000000128FEBC80" FourCC="H264" MaxWidth="1280" MaxHeight="720"/> <c d="120000000" t="20333333"/> <c d="120000000"/> <c d="120000000"/> </StreamIndex> <StreamIndex Type="audio" Name="fra_1" Language="fra" Subtype="" Chunks="3" TimeScale="10000000" Url="Events(203_0)/QualityLevels({bitrate})/Fragments(a_2_0={start time})"> <QualityLevel Index="0" Bitrate="128460" CodecPrivateData="1190" FourCC="AACL" AudioTag="255" Channels="2" SamplingRate="48000" BitsPerSample="16" PacketSize="4"/> <c d="120533333" t="20000000"/> <c d="119893333"/> <c d="120106667"/> </StreamIndex> </SmoothStreamingMedia>