videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
38.07k stars 7.45k forks source link

if mpd file codecs="Opus" dash stream at chrome can't decode,but change codecs="opus" chrome #8248

Open R8KwEwN2hvrhY opened 1 year ago

R8KwEwN2hvrhY commented 1 year ago

Description

if mpd file codecs="Opus" dash stream at chrome can't decode audio,but change codecs="opus" at chrome is ok,firefox not need change that,and subtitles AdaptationSet have blank <\SegmentBase>,chrome console will warnning subtitles invalid,but del blank <\SegmentBase> will no warnning than

Reduced test case

no

Steps to reproduce

if mpd file codecs="Opus" dash stream at chrome can't decode,but change codecs="opus" chrome,firefox is ok,and subtitles AdaptationSet have blank <\SegmentBase>,chrome console will warnning subtitles invalid,and del blank <\SegmentBase> will no warnning than

Errors

No response

What version of Video.js are you using?

8.3.0

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

chrome 112

What OS(es) and version(s) does this occur with?

windows 11

adrums86 commented 1 year ago

Hi, @friendtasy running a quick test of MediaSource.isTypeSupported('audio/webm; codecs="opus"'); and MediaSource.isTypeSupported('audio/webm; codecs="Opus"'); in the console and getting true for both in Win10/Chrome, same on Mac. Regardless, video.js, http-streaming and the mpd-parser do not change codec strings so this is likely a browser support issue. Can you please attach a link to a sample manifest and/or a reduced test case and I would be happy to take another look.

mister-ben commented 1 year ago

Possibly resolved by videojs/http-streaming#1219

R8KwEwN2hvrhY commented 1 year ago

Hi, @friendtasy running a quick test of MediaSource.isTypeSupported('audio/webm; codecs="opus"'); and MediaSource.isTypeSupported('audio/webm; codecs="Opus"'); in the console and getting true for both in Win10/Chrome, same on Mac. Regardless, video.js, http-streaming and the mpd-parser do not change codec strings so this is likely a browser support issue. Can you please attach a link to a sample manifest and/or a reduced test case and I would be happy to take another look.

The Most wonderful Gardens in the World.zip

adrums86 commented 1 year ago

@friendtasy the manifest you attached seems fine to me. Are you able to test this against the branch from the PR linked above? https://github.com/videojs/http-streaming/pull/1219

R8KwEwN2hvrhY commented 1 year ago

@friendtasy the manifest you attached seems fine to me. Are you able to test this against the branch from the PR linked above? videojs/http-streaming#1219

i think it's little issue,and i don't know video.js incloud what vesion http-streaming.because mp4box create dash somethime have this question,but not always