Turn on your graphics card for video in the browser (Linux)
The video tools on this site (convert, compress, cut, speed, GIF, screen recorder) encode video inside your browser. When the browser uses your graphics card for that, a long video takes minutes. When it does not, the same video can take much longer. On Windows and macOS this usually works by itself. On Linux, Chromium-based browsers keep it switched off by default, so you have to turn it on once.
Why a website cannot do it for you
A web page is not allowed to change how your browser starts, and that is a good thing for your security. The option has to be given to the browser when it is launched. This page therefore does the next best thing: it detects your browser, writes the exact command for you, and lets you apply it with a few clicks.
If it still does not work
- Your graphics driver must support video encoding through VA-API. Install the tools to check it (on Arch based systems the package is libva-utils) and run vainfo. Look for H264 with EncSlice in the list. If it is missing, your driver or card does not offer hardware encoding for H.264, and no browser option can add it.
- On AMD and Intel the open drivers (Mesa and intel-media-driver) normally provide it. NVIDIA cards need a separate project and often do not offer encoding in the browser.
- If you already have a line that starts with --enable-features in your flags file or launcher, merge the two. Only the last --enable-features option is used, so two separate ones cancel each other.
- Open chrome://gpu (brave://gpu, edge://gpu) and find Video Encode. It should say Hardware accelerated. Websites cannot open these internal pages, so copy the address into the address bar yourself.
- Firefox does not use these options. Flatpak and Snap versions of browsers keep their settings in other places, so the helper may not apply to them.
How to turn it off again
If you used the permanent method, delete the line that contains VaapiVideoEncoder from the flags file. If you used the launcher, delete the launcher file or just start the browser from its normal icon.