hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

Play Opus audio

Open stolen opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

I want to play a video (fMP4 paylist) which has audio track encoded with Opus codec. I need to specify that in CODECS parameter, but there is no way to make it work:

  • opus is rejected by hls.js because sampleEntryCodesISO has key Opus but not opus
  • Opus is rejected by Chrome and Firefox because these browsers violate specs

Lowercase opus works with some players (bitmovin, castr.io) while Opus does not.

Describe the solution you'd like

It seems to be less evil to accept lowercase opus codec as de-facto standard.

Additional context

Sample playlists + segments https://gist.github.com/stolen/c7f9ced139fb38b5759ff3a73d7a6717 PR with proposed solution #4526

stolen avatar Jan 26 '22 13:01 stolen