0
我一直在試圖學習MP4Box和Dash,我正在取得一些進展,但我似乎無法讓我的視頻工作。我遵循了關於將播放器添加到簡單的html頁面的說明,並且我使用它從Dash的測試頁面中測試了一個已知的MPD,並且一切都與播放器完美配合,所以我將其縮小到了MPD文件中。MPEG-DASH - 短劃線無效!錯誤
我通過Dash驗證器運行我的MPD文件,它失敗。我得到以下錯誤:
Start XLink resolving
=====================
XLink resolving successful
Start MPD validation
====================
Line:Col[5:20]:cvc-elt.1: Cannot find the declaration of element 'MPD'.
MPD validation not successful - DASH is not valid!
BUILD FAILED
/var/www/html/conformance/current/webfe/mpdvalidator/build.xml:65: Java
returned: 4
Total time: 53 seconds
我使用MP4Box細分的MP4,所以它可能是一個不正確的命令。我使用的,這是我使用的命令:我不知道我在尋找什麼,當我看MPD文件
MP4Box -dash 4000 -frag 1000 -rap -segment-name segment_ rogue_one.mp4
,但我也期待通過它想看看我可以找到任何明顯的錯誤,但對我來說看起來不錯。這是我的MPD文件:
<MPD type="static" xmlns="urn:mpeg:DASH:schema:MPD:2011" profiles="urn:mpeg:dash:profile:full:2011" minBufferTime="PT1.5S" mediaPresentationDuration="PT0H2M28.34S">
<ProgramInformation moreInformationURL="http://gpac.sourceforge.net">
<Title>Media Presentation Description for file rogue_one.mp4 generated with GPAC </Title>
</ProgramInformation>
<Period start="PT0S" duration="PT0H2M28.34S">
<AdaptationSet>
<ContentComponent id="1" contentType="video"/>
<ContentComponent id="2" contentType="audio" lang="eng"/>
<Representation id="1" mimeType="video/mp4" codecs="avc1.640029,mp4a.40.02" width="1920" height="816" sampleRate="44100" numChannels="2" lang="eng" startWithSAP="1" bandwidth="7969270">
<SegmentList timescale="1000" duration="10050">
<Initialization sourceURL="rogue_one_dash.mp4"/>
<SegmentURL media="segment_1.m4s"/>
...
<SegmentURL media="segment_43.m4s"/>
</SegmentList>
</Representation>
</AdaptationSet>
</Period>
</MPD>