xqq / mpegts.js

HTML5 MPEG2-TS / FLV Stream Player
Apache License 2.0
1.71k stars 217 forks source link

AC-3 Codec supported or not? README is misleading #209

Open jamesst20 opened 5 days ago

jamesst20 commented 5 days ago

Hi,

I am not sure if AC-3 codec is supposed to be supported. There are 2 PRs about it:

https://github.com/xqq/mpegts.js/pull/99 https://github.com/xqq/mpegts.js/pull/103

But then the README says

Screenshot 2024-09-24 at 10 42 55 AM

Versus

Screenshot 2024-09-24 at 10 43 03 AM

----------------------------------------------------

From my testing I am getting the same error as this issue: https://github.com/xqq/mpegts.js/issues/115

But looking at the v1.7.3 release:

Screenshot 2024-09-24 at 10 43 39 AM

The support is supposed to be added but then if you take a look at 97 commits to master since this release

Screenshot 2024-09-24 at 10 45 02 AM

You can see support for EAC-3 was added after release but AC-3 before release but then even trying a building the master branch and testing out I am still getting the same error.

Am I missing something?

Here is a video/audio file for testing purposes. Working perfectly in VLC, no audio in mpegts.js

video-h264-audio-ac3.zip

monyone commented 5 days ago

Currently, ac-3 / ec-3 audio are supported by Safari (MacOS) / Edge (Windows), not supported by Chrome. mpegts.js using MediaSource Extension, but this API does not support these codecs by Chrome.