Я проигрываю прямую трансляцию DA SH с ffmpeg, используя stati c libav (ffmpeg ver 4.2.2). Выдается сообщение об ошибке:
<ContentCom
^
path://manifest.mpd:17: parser error : Premature end of data in tag MPD line 2
<ContentCom
^
The manifest.mpd:
<?xml version="1.0" encoding="UTF-8"?>
<MPD
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:DASH:schema:MPD:2011"
xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011"
type="dynamic"
minBufferTime="PT1S"
profiles="urn:mpeg:dash:profile:isoff-live:2011"
availabilityStartTime="2020-03-06T07:56:22.828Z"
timeShiftBufferDepth="PT5000S"
minimumUpdatePeriod="PT30S">
<UTCTiming
schemeIdUri="urn:mpeg:dash:utc:http-iso:2014"
value="http://time.akamai.com/?iso"/>
<Period id="0" start="PT0S" >
<AdaptationSet id="0" mimeType="video/webm" codecs="vp9" bitstreamSwitching="true" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<ContentComponent id="1" type="video"/>
<SegmentTemplate timescale="1000" duration="2000" media="chunk_$RepresentationID$_$Number$.chk" startNumber="1" initialization="chunk_$RepresentationID$.hdr"/>
<Representation id="144" bandwidth="1000000" width="256" height="144" codecs="vp9" mimeType="video/webm" startsWithSAP="1"></Representation>
</AdaptationSet>
<AdaptationSet id="1" mimeType="video/webm" codecs="vp9" bitstreamSwitching="true" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<ContentComponent id="1" type="video"/>
<SegmentTemplate timescale="1000" duration="2000" media="chunk_$RepresentationID$_$Number$.chk" startNumber="1" initialization="chunk_$RepresentationID$.hdr"/>
<Representation id="240" bandwidth="1000000" width="426" height="240" codecs="vp9" mimeType="video/webm" startsWithSAP="1"></Representation>
</AdaptationSet>
<AdaptationSet id="2" mimeType="video/webm" codecs="vp9" bitstreamSwitching="true" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<ContentComponent id="1" type="video"/>
<SegmentTemplate timescale="1000" duration="2000" media="chunk_$RepresentationID$_$Number$.chk" startNumber="1" initialization="chunk_$RepresentationID$.hdr"/>
<Representation id="360" bandwidth="1000000" width="640" height="360" codecs="vp9" mimeType="video/webm" startsWithSAP="1"></Representation>
</AdaptationSet>
<AdaptationSet id="3" mimeType="audio/webm" codecs="opus" bitstreamSwitching="true" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<ContentComponent id="1" type="audio"/>
<SegmentTemplate timescale="1000" duration="2000" media="chunk_$RepresentationID$_$Number$.chk" startNumber="1" initialization="chunk_$RepresentationID$.hdr"/>
<Representation id="audio" bandwidth="128000" audioSamplingRate="48000" codecs="opus" mimeType="audio/webm" startsWithSAP="1"></Representation>
</AdaptationSet>
</Period>
</MPD>
Кто-нибудь знает, почему в libxml2 появляется эта ошибка и как ее исправить, дайте мне знать. Спасибо!