Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Unable to cast object of type #426

Closed
mmshasan opened this issue Apr 10, 2021 · 2 comments
Closed

ERROR: Unable to cast object of type #426

mmshasan opened this issue Apr 10, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@mmshasan
Copy link

While downloading from a well known streaming service got the following error

File Name: tv_master.mpd_20210410064121
Save Path: 
Start Parsing
Downloading M3u8 Content
Start Parsing MPD Content...
Unable to cast object of type 'System.Xml.XmlComment' to type 'System.Xml.XmlElement'.
@nilaoda
Copy link
Owner

nilaoda commented Apr 11, 2021

upload the mpd file

@mmshasan
Copy link
Author

<?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 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd"
  xmlns:cenc="urn:mpeg:cenc:2013"
  type="static"
  mediaPresentationDuration="PT1H41M27.680S"
  minBufferTime="PT10S"
  profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
  <Period
    duration="PT1H41M27.680S">
    <AdaptationSet
      id="1"
      group="1"
      contentType="audio"
      lang="en"
      segmentAlignment="true"
      subsegmentAlignment="true"
      subsegmentStartsWithSAP="1"
      audioSamplingRate="48000"
      mimeType="audio/mp4"
      codecs="mp4a.40.2"
      startWithSAP="1">
      <AudioChannelConfiguration
        schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011"
        value="2" />
      <!-- Common Encryption -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        xmlns:cenc="urn:mpeg:cenc:2013"
        schemeIdUri="urn:mpeg:dash:mp4protection:2011"
        value="cenc"
        cenc:default_KID="7CE26A30-D382-4584-868D-3A2616952A59">
      </ContentProtection>
      <!-- PlayReady -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95"
        value="MSPR 2.0">
      </ContentProtection>
      <!-- Widevine -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED">
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
      <Representation
        id="audio_eng=128000"
        bandwidth="134000">
        <BaseURL>xxx2_3454600_AAC128.mp4</BaseURL>
        <SegmentBase
          timescale="48000"
          presentationDuration="292207616"
          indexRangeExact="true"
          indexRange="1522-13733">
          <Initialization
            range="0-1521" />
        </SegmentBase>
      </Representation>
    </AdaptationSet>
    <AdaptationSet
      id="2"
      group="1"
      contentType="audio"
      lang="en"
      segmentAlignment="true"
      subsegmentAlignment="true"
      subsegmentStartsWithSAP="1"
      audioSamplingRate="48000"
      mimeType="audio/mp4"
      codecs="ac-3"
      startWithSAP="1">
      <AudioChannelConfiguration
        schemeIdUri="tag:dolby.com,2014:dash:audio_channel_configuration:2011"
        value="F801" />
      <!-- Common Encryption -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        xmlns:cenc="urn:mpeg:cenc:2013"
        schemeIdUri="urn:mpeg:dash:mp4protection:2011"
        value="cenc"
        cenc:default_KID="7CE26A30-D382-4584-868D-3A2616952A59">
      </ContentProtection>
      <!-- PlayReady -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95"
        value="MSPR 2.0">
      </ContentProtection>
      <!-- Widevine -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED">
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
      <Representation
        id="audio_eng_1=384000"
        bandwidth="387000">
        <BaseURL>xxx2_3454600_AC3.mp4</BaseURL>
        <SegmentBase
          timescale="48000"
          presentationDuration="292208640"
          indexRangeExact="true"
          indexRange="1494-13705">
          <Initialization
            range="0-1493" />
        </SegmentBase>
      </Representation>
    </AdaptationSet>
    <AdaptationSet
      id="3"
      group="1"
      contentType="audio"
      lang="en"
      segmentAlignment="true"
      subsegmentAlignment="true"
      subsegmentStartsWithSAP="1"
      audioSamplingRate="48000"
      mimeType="audio/mp4"
      codecs="ec-3"
      startWithSAP="1">
      <AudioChannelConfiguration
        schemeIdUri="tag:dolby.com,2014:dash:audio_channel_configuration:2011"
        value="F801" />
      <!-- Common Encryption -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        xmlns:cenc="urn:mpeg:cenc:2013"
        schemeIdUri="urn:mpeg:dash:mp4protection:2011"
        value="cenc"
        cenc:default_KID="7CE26A30-D382-4584-868D-3A2616952A59">
      </ContentProtection>
      <!-- PlayReady -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95"
        value="MSPR 2.0">
      </ContentProtection>
      <!-- Widevine -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED">
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
      <Representation
        id="audio_eng_2=192000"
        bandwidth="195000">
        <BaseURL>xxx2_3454600_EC3.mp4</BaseURL>
        <SegmentBase
          timescale="48000"
          presentationDuration="292208640"
          indexRangeExact="true"
          indexRange="1496-13707">
          <Initialization
            range="0-1495" />
        </SegmentBase>
      </Representation>
    </AdaptationSet>
    <AdaptationSet
      id="4"
      group="3"
      contentType="text"
      lang="en"
      subsegmentAlignment="true"
      subsegmentStartsWithSAP="1"
      mimeType="application/mp4"
      codecs="stpp"
      startWithSAP="1">
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="subtitle" />
      <Representation
        id="textstream_eng=1000"
        bandwidth="48000">
        <BaseURL>xxx2_3454600.ismt</BaseURL>
        <SegmentBase
          timescale="1000"
          presentationDuration="6086288"
          indexRangeExact="true"
          indexRange="625-37172">
          <Initialization
            range="0-624" />
        </SegmentBase>
      </Representation>
    </AdaptationSet>
    <AdaptationSet
      id="5"
      group="2"
      contentType="video"
      par="16:9"
      minBandwidth="711000"
      maxBandwidth="4495000"
      maxWidth="1920"
      maxHeight="1080"
      segmentAlignment="true"
      subsegmentAlignment="true"
      subsegmentStartsWithSAP="1"
      sar="1:1"
      frameRate="24000/1001"
      mimeType="video/mp4"
      startWithSAP="1">
      <!-- Common Encryption -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        xmlns:cenc="urn:mpeg:cenc:2013"
        schemeIdUri="urn:mpeg:dash:mp4protection:2011"
        value="cenc"
        cenc:default_KID="7CE26A30-D382-4584-868D-3A2616952A59">
      </ContentProtection>
      <!-- PlayReady -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95"
        value="MSPR 2.0">
      </ContentProtection>
      <!-- Widevine -->
      <ContentProtection
        xmlns="urn:mpeg:dash:schema:mpd:2011"
        schemeIdUri="urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED">
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
      <Representation
        id="video=700002"
        bandwidth="711000"
        width="640"
        height="360"
        codecs="avc1.4D401E"
        scanType="progressive">
        <BaseURL>xxx2_3454600_700.mp4</BaseURL>
        <SegmentBase
          timescale="24000"
          presentationDuration="146103958"
          indexRangeExact="true"
          indexRange="1619-13830">
          <Initialization
            range="0-1618" />
        </SegmentBase>
      </Representation>
      <Representation
        id="video=1200080"
        bandwidth="1202000"
        width="640"
        height="360"
        codecs="avc1.4D401E"
        scanType="progressive">
        <BaseURL>xxx2_3454600_1200.mp4</BaseURL>
        <SegmentBase
          timescale="24000"
          presentationDuration="146103958"
          indexRangeExact="true"
          indexRange="1619-13830">
          <Initialization
            range="0-1618" />
        </SegmentBase>
      </Representation>
      <Representation
        id="video=2000169"
        bandwidth="2001000"
        width="960"
        height="540"
        codecs="avc1.4D401F"
        scanType="progressive">
        <BaseURL>xxx2_3454600_2000.mp4</BaseURL>
        <SegmentBase
          timescale="24000"
          presentationDuration="146103958"
          indexRangeExact="true"
          indexRange="1619-13830">
          <Initialization
            range="0-1618" />
        </SegmentBase>
      </Representation>
      <Representation
        id="video=2400226"
        bandwidth="2400000"
        width="1280"
        height="720"
        codecs="avc1.4D401F"
        scanType="progressive">
        <BaseURL>xxx2_3454600_2400.mp4</BaseURL>
        <SegmentBase
          timescale="24000"
          presentationDuration="146103958"
          indexRangeExact="true"
          indexRange="1618-13829">
          <Initialization
            range="0-1617" />
        </SegmentBase>
      </Representation>
      <Representation
        id="video=3200278"
        bandwidth="3198000"
        width="1280"
        height="720"
        codecs="avc1.4D401F"
        scanType="progressive">
        <BaseURL>xxx2_3454600_3200.mp4</BaseURL>
        <SegmentBase
          timescale="24000"
          presentationDuration="146103958"
          indexRangeExact="true"
          indexRange="1617-13828">
          <Initialization
            range="0-1616" />
        </SegmentBase>
      </Representation>
      <Representation
        id="video=4500485"
        bandwidth="4495000"
        width="1920"
        height="1080"
        codecs="avc1.640028"
        scanType="progressive">
        <BaseURL>xxx2_3454600_4500.mp4</BaseURL>
        <SegmentBase
          timescale="24000"
          presentationDuration="146103958"
          indexRangeExact="true"
          indexRange="1621-13832">
          <Initialization
            range="0-1620" />
        </SegmentBase>
      </Representation>
    </AdaptationSet>
  </Period>
</MPD>
<!-- Created with Unified Streaming Platform (version=1.10.23-21675) -->

@nilaoda nilaoda added the bug Something isn't working label Apr 14, 2021
@nilaoda nilaoda closed this as completed Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants