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

AdaptationSet switching with different codecs causes MSE error #4505

Open
dsilhavy opened this issue Jun 18, 2024 · 0 comments · May be fixed by #4524
Open

AdaptationSet switching with different codecs causes MSE error #4505

dsilhavy opened this issue Jun 18, 2024 · 0 comments · May be fixed by #4524

Comments

@dsilhavy
Copy link
Collaborator

Description

When switching between Representations with different codecs (e.g. HEVC and H.264) of different AdaptationSets signaled by "urn:mpeg:dash:adaptation-set-switching:2016" dash.js throws an MSE error. This is likely caused by a missing call to changeType().

Example

    <AdaptationSet id="264" mimeType="video/mp4" frameRate="25/1" segmentAlignment="true" subsegmentAlignment="true" startWithSAP="1" subsegmentStartsWithSAP="1" bitstreamSwitching="false">
	  <SupplementalProperty schemeIdUri="urn:mpeg:dash:adaptation-set-switching:2016" value="265"/>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
      <Representation id="1" width="384" height="216" scanType="progressive" bandwidth="235197" codecs="avc1.640014">
        <BaseURL>videos/115045-000-A_x264_CRF20_246_8bits_v216.mp4</BaseURL>
        <SegmentBase indexRange="863-2102">
          <Initialization range="0-862" />
        </SegmentBase>
      </Representation>
     </AdaptationSet>
    <AdaptationSet id="265" mimeType="video/mp4" frameRate="25/1" segmentAlignment="true" subsegmentAlignment="true" startWithSAP="1" subsegmentStartsWithSAP="1" bitstreamSwitching="false">
	  <SupplementalProperty schemeIdUri="urn:mpeg:dash:adaptation-set-switching:2016" value="264"/>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main" />
      <Representation id="7" width="384" height="216" scanType="progressive" bandwidth="233574" codecs="hev1.2.4.L63.B0">
        <BaseURL>videos/115045-000-A_x265_CRF20_246_10bits_v216.mp4</BaseURL>
        <SegmentBase indexRange="3369-4608">
          <Initialization range="0-3368" />
        </SegmentBase>
      </Representation>
</AdaptationSet>
@dsilhavy dsilhavy added the Bug label Jun 18, 2024
@dsilhavy dsilhavy added this to the 5.0.0 milestone Jun 18, 2024
@dsilhavy dsilhavy self-assigned this Jun 18, 2024
@dsilhavy dsilhavy linked a pull request Jul 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant