Video streaming mp4box中的DASH.mpd未在DASH.js播放器中播放

Video streaming mp4box中的DASH.mpd未在DASH.js播放器中播放,video-streaming,html5-video,media-source,Video Streaming,Html5 Video,Media Source,我已经使用MP4Box生成了一个.mpd文件,并使用Dash.js player播放生成的文件,但它没有播放。但是如果我使用链接()中提供的详细信息创建了一个播放器,它正在播放。我已经完全按照上面提到的链接中给出的细节进行了操作,效果很好。但是,当我在dash.js播放器中使用.mpd时,它不起作用 请帮我解决这个问题 <MPD type="static" xmlns="urn:mpeg:DASH:schema:MPD:2011" profiles="urn:mpeg:dash:profi

我已经使用MP4Box生成了一个.mpd文件,并使用Dash.js player播放生成的文件,但它没有播放。但是如果我使用链接()中提供的详细信息创建了一个播放器,它正在播放。我已经完全按照上面提到的链接中给出的细节进行了操作,效果很好。但是,当我在dash.js播放器中使用.mpd时,它不起作用

请帮我解决这个问题

<MPD type="static" xmlns="urn:mpeg:DASH:schema:MPD:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="PT1.5S" mediaPresentationDuration="PT0H1M0.29S">
 <ProgramInformation moreInformationURL="http://gpac.sourceforge.net">
  <Title>Media Presentation Description for file Recorded_gopi.mp4 generated with GPAC </Title>
 </ProgramInformation>
 <Period start="PT0S" duration="PT0H1M0.29S">
  <AdaptationSet>
   <ContentComponent id="1" contentType="video"/>
   <ContentComponent id="2" contentType="audio" lang="und"/>
   <Representation id="1" mimeType="video/mp4" codecs="avc1.640028,mp4a.40.02" width="1280" height="1024" sampleRate="44100" numChannels="2" lang="und" startWithSAP="1" bandwidth="317599">
    <BaseURL>Recorded_gopi_dash.mp4</BaseURL>
    <SegmentList timescale="1000" duration="13915">
     <Initialization range="0-1264"/>
     <SegmentURL mediaRange="1265-512125" indexRange="1265-1465"/>
     <SegmentURL mediaRange="512126-774261" indexRange="512126-512254"/>
     <SegmentURL mediaRange="774262-1165553" indexRange="774262-774390"/>
     <SegmentURL mediaRange="1165554-1484521" indexRange="1165554-1165682"/>
     <SegmentURL mediaRange="1484522-1819145" indexRange="1484522-1484626"/>
     <SegmentURL mediaRange="1819146-2122548" indexRange="1819146-1819310"/>
     <SegmentURL mediaRange="2122549-2375382" indexRange="2122577-2122705"/>
    </SegmentList>
   </Representation>
  </AdaptationSet>
 </Period>
</MPD>

使用GPAC生成的文件_gopi.mp4的媒体演示文稿说明
录制的_gopi_dash.mp4

请帮助我解决这个问题。

我几个小时来一直面临同样的问题,刚刚得到解决问题的线索

<MPD type="static" xmlns="urn:mpeg:DASH:schema:MPD:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="PT1.5S" mediaPresentationDuration="PT0H1M0.29S">
 <ProgramInformation moreInformationURL="http://gpac.sourceforge.net">
  <Title>Media Presentation Description for file Recorded_gopi.mp4 generated with GPAC </Title>
 </ProgramInformation>
 <Period start="PT0S" duration="PT0H1M0.29S">
  <AdaptationSet>
   <ContentComponent id="1" contentType="video"/>
   <ContentComponent id="2" contentType="audio" lang="und"/>
   <Representation id="1" mimeType="video/mp4" codecs="avc1.640028,mp4a.40.02" width="1280" height="1024" sampleRate="44100" numChannels="2" lang="und" startWithSAP="1" bandwidth="317599">
    <BaseURL>Recorded_gopi_dash.mp4</BaseURL>
    <SegmentList timescale="1000" duration="13915">
     <Initialization range="0-1264"/>
     <SegmentURL mediaRange="1265-512125" indexRange="1265-1465"/>
     <SegmentURL mediaRange="512126-774261" indexRange="512126-512254"/>
     <SegmentURL mediaRange="774262-1165553" indexRange="774262-774390"/>
     <SegmentURL mediaRange="1165554-1484521" indexRange="1165554-1165682"/>
     <SegmentURL mediaRange="1484522-1819145" indexRange="1484522-1484626"/>
     <SegmentURL mediaRange="1819146-2122548" indexRange="1819146-1819310"/>
     <SegmentURL mediaRange="2122549-2375382" indexRange="2122577-2122705"/>
    </SegmentList>
   </Representation>
  </AdaptationSet>
 </Period>
</MPD>
通过删除下面的语句,它对我非常有效

<ContentComponent id="1" contentType="video" />
<ContentComponent id="2" contentType="audio" />


MPD验证器说无论行是否存在都是有效的。我不知道为什么dash.js不能正确处理。MP4Box是否有不包含这些行的选项?

您需要删除行


这对我有用。

你解决了这个问题吗?您介意共享代码和浏览器控制台输出吗。我对dash.js也有同样的问题。删除这些行也解决了我的问题。我看过的一些教程建议将视频和音频流分开。似乎只有在视频片段没有混合的情况下,这些内容组件才应该出现。