Question about h264 decoding


#1

Hello I know that electron as the capability to play h264 videos of he shelf, but does it use hardware acceleration?

I have a J1800 CPU with ubuntu and I am using electron with some mp4 h264 videos and I am under the impression that it doe snot use the hardware acceleration of the gpu to decode h264.

Is there a way to force it to use hardware acceleration for h264 videos?


#2

Electron uses the x264 library via FFmpeg to decode H.264, you might find their mailing list a better place to ask.

To change the behaviour in Electron I believe you’re going to need a custom configuration of FFmpeg linked in libchromiumcontent, and then build Electron against that.


#3

So activating the flag --ignore-gpu-blacklist does nothing in electron.