我有这个使用 Bento4 创建的 MPD 文件。
<?xml version="1.0" ?> <MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" minBufferTime="PT4.23S" mediaPresentationDuration="PT2M22.225S" type="static"> <!-- Created with Bento4 mp4-dash.py, VERSION=2.0.0-639 --> <Period>
<!-- Video -->
<AdaptationSet mimeType="video/mp4" segmentAlignment="true" startWithSAP="1" maxWidth="1920" maxHeight="1080">
<SegmentTemplate timescale="1000" duration="4233" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4s" startNumber="1"/>
<Representation id="video/avc1" codecs="avc1.640028" width="1920" height="1080" scanType="progressive" frameRate="24000/1001" bandwidth="3317595"/>
</AdaptationSet>
<!-- Audio -->
<AdaptationSet mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="en">
<SegmentTemplate timescale="1000" duration="4233" initialization="$RepresentationID$/init.mp4" media="$RepresentationID$/seg-$Number$.m4s" startNumber="1"/>
<Representation id="audio/en/mp4a.40.2" codecs="mp4a.40.2" bandwidth="130559" audioSamplingRate="44100">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:mpegB:cicp:ChannelConfiguration" value="2"/>
</Representation>
</AdaptationSet> </Period> </MPD>
我将它上传到我的服务器,不幸的是我收到了视频不可用的消息。
我正在使用这个播放器https://reference.dashif.org/dash.js/latest/samples/dash-if-reference-player/index.html。
希望得到您的回应。
谢谢你。