我已经使用MP4Box生成了一个.mpd文件,并使用Dash.js player播放生成的文件,但如果我使用链接中提供的详细信息创建一个播放器(它正在播放的http://msdn.microsoft.com/en-us/library/dn551368(v=vs.85).aspx),则它不是playing.But。我已经遵循了上述链接中给出的细节,它工作得很好。但是,当我在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>
请帮助我解决这个问题。
发布于 2015-07-05 21:01:11
我已经面对同样的问题几个小时了,只是得到了解决问题的线索。
通过删除如下所示的行,它对我来说工作得很好。
<ContentComponent id="1" contentType="video" />
<ContentComponent id="2" contentType="audio" />
MPD Validator表示,无论行是否存在,都是有效的。我不知道为什么dash.js不能正确处理。MP4Box有没有不包含这些行的选项?
发布于 2016-12-02 09:28:55
您需要删除行<ContentComponent ../>
。
这对我很管用。
https://stackoverflow.com/questions/23724947
复制相似问题