-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add fMP4 playback support (HEVC, AV1) in HLS.js #4762
Conversation
4b0e5a6
to
ff68380
Compare
- Fix fLaC and Opus playback - Fix AV1 playback in Firefox - Remove this when upstream 1.5.0 is tagged Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Tested codecs: video: h264, hevc, av1 (av1 in firefox require 1.5.0) audio: mp3, aac, ac3, eac3 (flac and opus require 1.5.0) Tested browsers: Chrome, Firefox, Edge Chromium, Safari and their mobile versions Signed-off-by: nyanmisaka <nst799610810@gmail.com>
ff68380
to
baf1b55
Compare
Kudos, SonarCloud Quality Gate passed!
|
Do you have a PR open upstream to hls.js with your changes? Thanks! |
My fixes are already in upstream but it seems they still have pending PRs before tagging the 1.5.x version. Server side AV1 PR is already merged few months ago. |
Continuing from PR #4041. Do you want me to just open a bug report? The same thing applies on master as is. |
@Schaka Which OS/client/browser are you using? Apart from the native HLS support on Apple devices, AC3 and EAC3 are only available on Edge on Windows. |
Win 11, tried both Edge (Chromium based) and Chrome. However, if the source is HEVC, only the sound gets transcoded correctly - the video source is the same and not transcoded. Unfortunately I couldn't figure out if there's any code to retain the original encoding - only that the order of supplied codecs leads to a priority for transcoding. HLS off - h264 AC3 content - Chrome & Edge => transcodes video to H264 and audio to AAC HLS off - h265 AC3 (DD5.1) - Chrome & Edge => transcodes video to h264, transcodes audio to AAC Edit: I've tried Chromium builds with AC3/EAC3 activated and they behavior is the same. |
The recent HLS.js update seems to have resolved the fMP4 seeking issue. Let's first enable fMP4 on HLS.js.
Tested codecs:
video: h264, hevc, av1 (av1 in firefox require 1.5.0)
audio: mp3, aac, ac3, eac3 (flac and opus require 1.5.0)
Tested browsers:
Chrome, Firefox, Edge Chromium, Safari and their mobile versions
Changes
Issues