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

Google Browser has supported HEVC hardware decoding since version 105. When will hls.js support it? #4921

Closed
tangshanghai opened this issue Sep 23, 2022 · 7 comments

Comments

@tangshanghai
Copy link

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

Hevc video decoding

Describe the solution you'd like

Hevc video decoding

Additional context

No response

@tangshanghai tangshanghai added Feature proposal Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Sep 23, 2022
@robwalch
Copy link
Collaborator

robwalch commented Sep 23, 2022

Hi @tangshanghai,

HLS.js supports video playback of HEVC variants when supported by the browser/MSE. If there is a specific scenario or content you are having trouble with please specify so that we can provide support.

Note that to deliver HEVC via HLS.js your HLS segments should be fragmented MP4. Support to demux HEVC from MPEG2-TS is not on the roadmap.

@robwalch robwalch added Question Need info and removed Feature proposal Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Sep 23, 2022
@vid-bin
Copy link

vid-bin commented Sep 23, 2022

HEVC works fine on hls.js.

@rudemateo
Copy link

rudemateo commented Sep 23, 2022

First sanity check might be to determine if your chrome browser thinks it can play HEVC on your device / OS. (note: I believe it needs access to a hardware decoder, but I may be wrong on this.)

You can check this in the JS Console with something like: MediaSource.isTypeSupported('video/mp4; codecs=hvc1.2.4.L123.B0')

I have a MacBook Pro (15-inch, 2018) running macOS Mojave (10.14.x). Chrome v105 returns false for the above command, and so it cannot play HEVC on my system. Whereas Safari returns true, and it can play HEVC fine. I suspect my totally out of date macOS version is involved in chrome thinking it can not play HEVC, but perhaps it's something else.

[UPDATE] Found some "docs" that indeed state that MacOS Big Sur is required: https://github.com/StaZhu/enable-chromium-hevc-hardware-decoding#whats-the-os-requirement

@mmfjx
Copy link

mmfjx commented Sep 29, 2022

when can support to demux HEVC from MPEG2-TS ?we need it

@linghao518
Copy link

+1 we need demux HEVC from MPEG2-TS too

@malickyeu
Copy link

+1 for HEVC with MPEG2-TS...

@robwalch
Copy link
Collaborator

robwalch commented Jul 8, 2023

HEVC is supported in fmp4. #4943 was closed because there are not plans to add MPEG-TS HEVC muxing when HEVC in TS is not supported natively in Safari.

@robwalch robwalch closed this as completed Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants