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

Opus does not play in chrome #5238

Closed
vid-bin opened this issue Sep 5, 2022 · 6 comments
Closed

Opus does not play in chrome #5238

vid-bin opened this issue Sep 5, 2022 · 6 comments

Comments

@vid-bin
Copy link

vid-bin commented Sep 5, 2022

Describe the current behavior

Works on firefox but doesn't work in chrome. Changing libopus to aac fixes it.

https://vidbin.org/w/npw8nJGNiX1KWBDC8CWBDC

Steps to reproduce

  1. Encode VP9 and opus
  2. Try playing on chrome

Describe the expected behavior

works as expected

Additional information

  • PeerTube instance:
    • URL: vidbin.org
    • Version: 4.2.2
    • NodeJS version: 16
    • Ffmpeg version: Latest master. Tested on other versions as well.
@emansom
Copy link
Contributor

emansom commented Sep 5, 2022

Direct mp4 plays fine on Chromium, seems like a HLS.js issue.

Schermafdruk van 2022-09-05 18-50-03

Console logs the following:

Schermafdruk van 2022-09-05 18-53-45

@emansom
Copy link
Contributor

emansom commented Sep 5, 2022

Direct mp4 plays fine on Chromium, seems like a HLS.js issue.

Or a mismatch in codec info in the .m3u8 as mentioned in #5234.

@Chocobozzz
Copy link
Owner

Hello,

I think hls.js doesn't initialize correctly the audio source buffer because we specify opus instead of Opus. See the original issue on their repository: video-dev/hls.js#4527

@vid-bin
Copy link
Author

vid-bin commented Sep 9, 2022

Changing it to Opus prevents playback on firefox and chrome.

@vid-bin
Copy link
Author

vid-bin commented Sep 9, 2022

Doesn't look like there is an easy solution to this problem though.. may have to stick with AAC.

@emansom
Copy link
Contributor

emansom commented Sep 9, 2022

Serving other .m3u8 selectively based on the User-Agent string maybe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants