-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Possible guide to enable HW DEcoding and ENcoding in electron #1324
Comments
You should be able to use the Thanks for the link and the info! |
Thanks for the config option, but so far I tried several flags, including the ones I use to make it work on chromium, and I still get SW video processing on Teams for linux |
Here's the config I tried for reference: |
Hi! "electronCLIFlags": [
["ignore-gpu-blocklist"],
["enable-zero-copy"],
["enable-features", "WebRTCPipeWireCapturer,PlatformHEVCDecoderSupport,CanvasOopRasterization,VaapiIgnoreDriverChecks,VaapiVideoDecoder,VaapiVideoEncoder"],
["enable-accelerated-video-decode"],
["disable-features","UseChromeOSDirectVideoDecoder"]
] right? Also, in order to check if GPU decoding is enabled I'd like to follow these troubleshoot steps but I don't know how to get there in the t4l window. Hints appreciated ;) |
yes! i copied from the nano windows and missed also the VaapiVideoDecodeLinuxGL feature flag |
I wonder if it is worth opening an issue/question in the electron repository. Maybe some of those flags aren't supported. Or check on running from source (check the contributing.md file). Maybe is the bundling that is blocking some areas... but I would suspect is electron land issue/limitation. |
I'm also still struggling with this (as reported in #1246). Teams pair programming on that particular laptop (ThinkPad X1C 8th Gen) is a punishment. My current settings are essentially the same as other's above: {
"electronCLIFlags": [
["ignore-gpu-blocklist"],
["enable-zero-copy"],
["enable-accelerated-video-decode"],
["enable-features", "WebRTCPipeWireCapturer,PlatformHEVCDecoderSupport,CanvasOopRasterization,VaapiIgnoreDriverChecks,VaapiVideoDecoder,VaapiVideoEncoder,VaapiVideoDecodeLinuxGL"],
["disable-features","UseChromeOSDirectVideoDecoder"]
]
} How can I check if these settings even get consumed? ... Now... to get a bit off of Ismael's back, I have to admit I'm apparently struggling with basic Chromium acceleration already. When launching the browser with
And checking Which means I can't hardware-decode AV1, YouTube's default for most videos, but I can force H264 with the h264ify extension (which works correctly, checking "stats for nerds"). Yet despite what the images above might imply, |
have you check in the electron issues https://github.com/electron/electron/issues ? This might be something other users of electron have experienced. Hopefully something in there helps you. Sorry |
I think HW processing is now enabled for me with the |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
From using teams4linux daily i notice my laptop goes into turbo mode whenever i enter a call and everyone turns on their cameras (and I have to turn on mine)
The teams v2 has a call health feature and displays that the videos are decrypted using SW.
Looking to solve my issue, i tried to force enable HW encoding on chromium. Managed to do it but my video comes out with artifacts... But the performance improved.
So I found this repo: https://github.com/StaZhu/enable-chromium-hevc-hardware-decoding which may help to enable HW encoding/decoding in electron. I know it talks about hevc and teams uses h264, but there might something that helps enabling both.
For reference, my work laptop is running Pop!_OS 22.04 on a i7-10610U
The text was updated successfully, but these errors were encountered: