无法在Dash.js Player中播放多个句点的MPD文件

时间:2019-03-05 08:28:22

标签: video-streaming multimedia mpeg-dash mpeg mpd

我是MPEG-DASH主题的新手,正在处理带有两个句点的MPD文件,每个句点都有自己的初始视频和片段信息。而且每个时期都有不同的持续时间。当我尝试在Dash.js播放器(http://reference.dashif.org/dash.js/1.3.0/samples/dash-if-reference-player/index.html)上播放时,在第一个时段结束时,视频停止,如in Figure所示,并且没有成功传递到第二个时段。如何在MPD文件中安排每个期间?您能否提出解决方案?预先非常感谢。

MPD文件结构:

<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 0.7.0-rev0-gbd5c9af-master  at 2019-03-04T17:10:17.070Z-->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H0M22.084S" maxSegmentDuration="PT0H0M4.000S" profiles="urn:mpeg:dash:profile:full:2011">
 <ProgramInformation moreInformationURL="http://gpac.io">
  <Title>output_general_dash.mpd generated by GPAC</Title>
 </ProgramInformation>

 <Period id="0" duration="PT0H0M9.667S">
  <AdaptationSet segmentAlignment="true" subsegmentAlignment="true" maxWidth="1280" maxHeight="720" maxFrameRate="24000/1004" par="16:9" lang="und">
   <Representation id="1" mimeType="video/mp4" codecs="avc3.640028" width="1280" height="720" frameRate="24" sar="1:1" startWithSAP="1" bandwidth="3734878">
    <SegmentList timescale="24000" duration="96000" presentationTimeOffset="0">
     <Initialization sourceURL="segment_3730_init.mp4"/>
     <SegmentURL media="segment_3730_1.m4s"/>
     <SegmentURL media="segment_3730_2.m4s"/>
     <SegmentURL media="segment_3730_3.m4s"/>
    </SegmentList>
   </Representation>
  </AdaptationSet>
 </Period>

 <Period id="1" duration="PT0H0M12.417S">
  <AdaptationSet segmentAlignment="true" subsegmentAlignment="true" maxWidth="1280" maxHeight="720" maxFrameRate="24000/1003" par="16:9" lang="und">
   <Representation id="1" mimeType="video/mp4" codecs="avc3.640028" width="1280" height="720" frameRate="24" sar="1:1" startWithSAP="1" bandwidth="1531757">
    <SegmentList timescale="24000" duration="96000" presentationTimeOffset="737280">
     <Initialization sourceURL="segment_1530_init.mp4"/>
     <SegmentURL media="segment_1530_1.m4s"/>
     <SegmentURL media="segment_1530_2.m4s"/>
     <SegmentURL media="segment_1530_3.m4s"/>
     <SegmentURL media="segment_1530_4.m4s"/>
    </SegmentList>
   </Representation>
  </AdaptationSet>

</MPD>

0 个答案:

没有答案