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

HLS: Single alternative video renditions not working #4780

Closed
carlanton opened this issue Dec 2, 2022 · 0 comments · Fixed by #4785
Closed

HLS: Single alternative video renditions not working #4780

carlanton opened this issue Dec 2, 2022 · 0 comments · Fixed by #4785
Labels
component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@carlanton
Copy link

Have you read the FAQ and checked for duplicate open issues?
Yes.

What version of Shaka Player are you using?
4.3.0.

Can you reproduce the issue with our latest release version?
Yes.

Can you reproduce the issue with the latest code from main?
Yes.

Are you using the demo app or your own custom app?
Demo app.

If custom app, can you reproduce the issue using our demo app?

What browser and OS are you using?
Firefox & Chrome, OS X

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

What are the manifest and license server URIs?

https://anton.lindstrom.io/hls/hls-alternative-video.m3u8

https://shaka-player-demo.appspot.com/demo/#audiolang=en-US;textlang=en-US;uilang=en-US;asset=https://anton.lindstrom.io/hls/hls-alternative-video.m3u8;panel=CUSTOM%20CONTENT;build=uncompiled

What configuration are you using? What is the output of player.getConfiguration()?

N/A

What did you do?

Hi!

We have HLS streams with a single alternate video rendition, like this:

#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="video",NAME="Video",DEFAULT=YES,AUTOSELECT=YES

#EXT-X-STREAM-INF:BANDWIDTH=2778640,AVERAGE-BANDWIDTH=2324339,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=1252x720,AUDIO="default-audio-group",VIDEO="video"
https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths-hls/playlist_v-0720p-2500k-libx264.mp4.m3u8

The streams works in Safari and hls.js, but shaka-player won't play it. We are using single alternate video renditions to be able to play the stream without video on certain players (iOS AVPlayer iirc).

What did you expect to happen?
I expect the stream to play.

What actually happened?

It does not :)

We get the error Shaka Error MANIFEST.CONTENT_UNSUPPORTED_BY_BROWSER. The firefox console hints that maybe shaka-player thinks that the video is using the audio codec string:

MediaCapabilities.decodingInfo() failed.
{
  "type": "media-source",
  "video": {
    "contentType": "audio/mp4; codecs=\"mp4a.40.2\"",
    "width": 1252,
    "height": 720,
    "bitrate": 2324339,
    "framerate": 1
  },
  "audio": {
    "contentType": "audio/mp4; codecs=\"mp4a.40.2\"",
    "channels": 2,
    "bitrate": 2324339,
    "samplerate": 1,
    "spatialRendering": false
  }
}

Thanks,
Anton

@carlanton carlanton added the type: bug Something isn't working correctly label Dec 2, 2022
@github-actions github-actions bot added this to the v4.4 milestone Dec 2, 2022
@avelad avelad added component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release labels Dec 5, 2022
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Feb 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: HLS The issue involves Apple's HLS manifest format priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants