Linux Video Playback Stuttering? VA-API Hardware Decoding, vainfo & Browser Flags Diagnosis Guide

Key takeaway
On Linux, video that stutters while the CPU runs flat out usually means the graphics card is not decoding at all. Three checks separate the causes: vainfo shows whether the VA-API driver is working, a browser flag comparison shows whether the browser is using it, and a codec-by-codec check shows which formats have hardware support.
Key takeaways
On Linux, stuttering video with a maxed-out CPU usually means the GPU is not decoding at all. Three checks separate the causes: vainfo shows whether the VA-API driver is working, a browser flag on/off comparison shows whether the browser is using it, and a codec-by-codec check shows which formats have hardware support.
Why video stutters on Linux while the CPU runs flat out
Open a streaming video in a browser on a Linux desktop — Ubuntu, Debian, Fedora, Arch, or similar — and the picture stutters and drops frames. Open the system monitor at the same time and the CPU is running at full load while the graphics card barely moves. That combination points in one direction: every frame is being decoded by the processor in software, and the GPU is sitting idle.
Software decoding is not a sign that the graphics card is broken. It is a sign that the chain between the browser and the hardware decoder is broken somewhere. On Linux, browsers and players do not talk to the graphics card directly for video decoding. They go through VA-API, the Video Acceleration API, and that chain has three links: a VA-API driver matched to the graphics card, a browser setting that actually enables VA-API, and hardware support for the codec of the video being played. If any one link fails, playback falls back to the CPU — silently, with no error message on screen.
How VA-API fits together
VA-API is a bridge, not a decoder
VA-API is the interface between applications and the graphics hardware. Firefox, Chrome and Chromium, VLC and mpv all hand decoding work to VA-API, and VA-API hands it to the driver underneath. The interface itself decodes nothing. It passes along which codec a video uses, and the driver tells the hardware to do the work. When the driver is missing or wrong, the bridge is broken at the bottom, and nothing above it can compensate.
vainfo is the direct evidence for the driver layer
vainfo, supplied by the libva-utils package, lists the VA-API driver name — iHD for newer Intel graphics, i965 for older Intel graphics, radeonsi for AMD graphics through Mesa — together with every codec profile the driver offers, such as VAProfileH264Main or VAProfileVP9Profile0, and the entry point for each one. VAEntrypointVLD is the entry point that means hardware decoding. If vainfo reports an error or lists no profiles at all, the VA-API driver layer is not working. If it lists H.264 but not AV1, the driver layer works but that codec has no hardware decoding on that machine. That distinction is the whole basis of the first and third checks below.
The driver has to match the card brand
A graphics driver that lets the GPU render a desktop does not automatically give you VA-API. The VA-API driver is a separate layer, and the right one depends on the card:
| Graphics hardware | VA-API driver to look for |
|---|---|
| Intel, Broadwell (2014) or newer | intel-media-driver, shown as iHD in vainfo |
| Intel, older than Broadwell | libva-intel-driver, shown as i965 in vainfo |
| AMD | Mesa drivers, shown as radeonsi in vainfo |
| NVIDIA with the proprietary driver | A third-party bridge, nvidia-vaapi-driver, which translates VA-API calls to NVDEC |
| NVIDIA with the open-source Nouveau driver | VA-API only on older chips |
Package names vary between distributions — Ubuntu and Debian use names such as intel-media-va-driver and mesa-va-drivers, Arch uses intel-media-driver and mesa, and Fedora handles H.264 and H.265 licensing separately, needing libavcodec-freeworld and mesa-va-drivers-freeworld for those codecs. No single distribution's package names can serve as the only route, so check the documentation for the distribution in use before installing anything. The NVIDIA bridge deserves a note of its own: the proprietary NVIDIA driver does not support VA-API by itself, and the bridge is a community project that only entered Ubuntu's official repositories from 23.04 onwards.
The browser flag is a second gate
Even with a working driver, the browser will not use VA-API unless its own setting allows it. Firefox uses the media.ffmpeg.vaapi.enabled setting in about:config, and the result can be checked in about:support under HARDWARE_VIDEO_DECODING. Chromium-based browsers — Chrome, Edge, Brave, Vivaldi, Opera — need a launch flag such as --enable-features=VaapiVideoDecoder, and the result can be checked in chrome://gpu, where Video Decode should read "Hardware accelerated". Flag names change between browser versions, and behaviour differs between X11 and Wayland, so the reliable method is to set the flag and then read the status page, rather than trusting any one set of flags copied from an old guide. A flag written into a configuration file that a Snap or Flatpak packaged browser never reads is another quiet way for this gate to stay shut.
Codec support is a ladder, not an on/off switch
AVC (H.264) is the oldest codec and the most widely supported in hardware; almost every card of any age decodes it. VP9 needs a newer generation. HEVC (H.265) needs a newer generation as well, and on some distributions it also depends on licensing packages. AV1 hardware decoding only exists on newer generations — Intel Tiger Lake (11th generation) or an RTX 2050 and newer, by the sources consulted — and AV1 encoding needs newer hardware still, such as Intel Arc or AMD RDNA 3. When a streaming platform shifts its default stream from AVC or VP9 to AV1, an older machine can suddenly start stuttering even though nothing about the machine changed. What changed was the codec being served.
CPU load is indirect evidence; the video engine is direct evidence
A maxed-out CPU during playback only suggests software decoding. To confirm whether hardware decoding is actually running, look at the GPU video engine: intel_gpu_top for Intel, radeontop for AMD, nvtop for NVIDIA. Video-engine activity together with CPU load falling back is what confirms hardware decoding is really running.
Five suspect layers
| Layer | What fails | How it shows up |
|---|---|---|
| 1. VA-API driver layer | Driver not installed, wrong driver, driver fails to load | vainfo errors or lists no profiles; wrong driver name |
| 2. Browser flag layer | Driver works, but the browser has not enabled VA-API | vainfo lists profiles, yet about:support or chrome://gpu shows hardware decoding off |
| 3. Codec support layer | Driver works and the flag is on, but this codec has no hardware decoding | AVC plays smoothly, AV1 stutters; vainfo has no entry point for AV1 |
| 4. Display server layer | X11 versus Wayland behaviour differs | Flag behaviour changes with the session type; check the browser's current documentation for the session in use |
| 5. Player and network layer | Player differs, or the stream adapts resolution to the network | Same video smooth in VLC and stuttering in the browser, or stuttering that follows network speed |
Layers 1 to 3 are the focus here. Layers 4 and 5 are boundaries: they can explain a stutter, but they are not what the three checks below test.
Three decisive checks
Check 1: vainfo driver check — read the driver name and the profile list
Open a terminal and run vainfo, installing the libva-utils package first if the command is not found. Write down three things: the driver name, whether any profiles are listed, and whether each codec has a VAEntrypointVLD entry point.
- If
vainforeports an error or fails to initialise, the driver layer is not working. Move to the driver check in step 6 of the diagnosis below. - If profiles are listed, the driver layer works, and the fault sits further up. Move to checks 2 and 3.
- If the driver name is not the expected one — for example a newer Intel machine showing
i965instead ofiHD— the wrong driver is installed. Change the driver and runvainfoagain.
No other check can substitute for this one. Browser settings, player choices and codec guesses all sit above the driver layer, and none of them can tell you whether the driver layer itself is working.
Check 2: browser VA-API flag comparison — the same video, flag off versus flag on
Play the same high-resolution streaming video in the same browser twice: once with the VA-API flag off, once with it on. In Firefox, set media.ffmpeg.vaapi.enabled to true in about:config; in a Chromium-based browser, add the launch flag and restart the browser. Record CPU load and the decoding status from about:support or chrome://gpu each time. Change nothing else between the two runs.
- If CPU load falls clearly after the flag is switched on, and
Video Decodeinchrome://gpuchanges to "Hardware accelerated" — orHARDWARE_VIDEO_DECODINGin Firefox shows enabled — the flag layer was the fault. - If nothing changes with the flag on, the fault is not the flag layer. Go back to checks 1 and 3.
The shape of that comparison will look familiar to anyone who has diagnosed video decoding on Windows, where the same on/off comparison is done with the Windows hardware-acceleration switch. The shape is the same; the variable is different. On Windows the variable is the hardware-acceleration switch and the decoding path is DXVA. Here the variable is the Linux VA-API flag — the Firefox about:config setting or the Chromium launch flag — and the decoding path is VA-API. Keeping the variable straight matters, because a Windows fix applied to a Linux machine will not touch the VA-API flag at all.
Check 3: codec support comparison — AVC versus VP9 versus HEVC versus AV1 on the same machine
First run vainfo and copy down which codecs have a VAEntrypointVLD entry point and which do not. Then play versions of the same content in different codecs in the same browser — video information on a streaming site shows which codec is being served — and record smoothness and CPU load for each.
- If codecs with an entry point play smoothly and codecs without one stutter with the CPU maxed out — for example AVC smooth and AV1 stuttering with no AV1 entry point in
vainfo— the codec support layer is the fault. - If every codec stutters, the fault is not the codec layer. Go back to checks 1 and 2.
- If every codec plays smoothly, the fault is not in decoding at all. Look at the player and network layers instead.
Half of that check — playing the same content in different codecs — overlaps with the Windows codec comparison, which does the same playback test. The other half is new here: the vainfo entry-point list underneath the playback test. The Windows comparison has only the playback layer; this one has the driver evidence plus the playback confirmation. Check 1 asks whether the driver is installed at all, a yes-or-no question. Check 3 asks a different question: which codecs, one by one, have hardware decoding. The two checks answer different questions and cannot replace each other.
Useful observations that are not decisive checks
Playing the same video in VLC or mpv helps narrow the fault — smooth in the player and stuttering in the browser points at the browser layer; stuttering in both points at the driver or codec layer — but it only confirms which layer to look at, so it stays an auxiliary observation. Watching the GPU video engine with intel_gpu_top, radeontop or nvtop is the way to read the results of the three checks, not a separate check of its own. The LIBVA_DRIVER_NAME environment variable can force a driver choice when the wrong driver is being picked up, but that is a fix for a wrong-driver finding, not a diagnostic variable.
Seven-step diagnosis
- Confirm the symptom is software decoding, not the network or a weak card. CPU maxed out during playback with no GPU video-engine activity points here. Normal CPU load with stuttering points at the rendering or network layer instead.
- Run the vainfo driver check (check 1). An error means the driver layer; a profile list means moving on.
- Run the codec support comparison (check 3). Codecs with an entry point smooth and codecs without one stuttering means the codec layer; every codec stuttering means moving on.
- Run the browser flag comparison (check 2). The same video, flag off versus flag on. CPU load falling means the flag layer; no change means moving on.
- Compare with a player. The same video in VLC or mpv: smooth in the player and stuttering in the browser means the browser layer; stuttering in both means going back to the driver layer.
- Check the driver layer if vainfo failed. Match the driver to the card brand and generation — Intel by generation, AMD through Mesa, NVIDIA through the
nvidia-vaapi-driverbridge — following the distribution's own documentation. Driver installation problems of the kind that stop a machine booting belong to a different diagnosis and should not be chased inside this one. - Stop if all seven steps leave the fault in place. The cause may be a specific distribution and browser combination, or a hardware fault. Do not keep changing settings at random. Bring the machine in for inspection: Room 1209, Dali Plaza, Shek Mun, telephone 2186 8010, WhatsApp 6558 6806. Published repair fees are HK$400–2,800, with the final quote given after inspection.
Six common mistakes
- "Once the graphics driver is installed, video should decode in hardware automatically." Wrong. The graphics driver only makes the GPU usable. The VA-API driver is another layer on top, and the browser flag is a third — miss any one of the three and playback falls back to the CPU.
- "If vainfo prints output, video must be hardware decoded." Wrong.
vainfoonly says the driver layer works. With the browser flag off, the browser still decodes in software. Only the flag comparison separates the driver layer from the flag layer. - "If AVC plays smoothly, every codec should play smoothly." Wrong. Codec support is counted one codec at a time. AVC having hardware decoding says nothing about AV1, and a platform switching its default stream to AV1 can make an older machine stutter without the machine itself changing.
- "High CPU load means the graphics card is broken." Wrong. A maxed-out CPU only says decoding is running on the CPU. It is not evidence of a hardware fault. Only
vainfoplus video-engine load can separate a driver problem from a hardware problem. - "Chrome and Firefox enable VA-API the same way." Wrong. Firefox uses an
about:configsetting; Chromium-based browsers use a launch flag. The two methods are completely different, and one cannot be copied onto the other. - "An NVIDIA card on Linux should have VA-API once the proprietary driver is installed." Wrong. The proprietary NVIDIA driver does not support VA-API by itself. Without the separate
nvidia-vaapi-driverbridge, Firefox and Chrome cannot reach NVDEC through VA-API.
What falls outside this diagnosis
Video stuttering, green screens or dropped frames on Windows belong to Windows hardware decoding through DXVA, not to Linux VA-API. A Linux machine that shows a black screen after installing an NVIDIA driver, or reports no device, is a driver installation problem, not a decoding problem. A Linux laptop that runs games slowly with the discrete GPU idle is a PRIME render-offload problem — game rendering and video decoding run through different pipelines and should not be mixed together. Slow video encoding for recording or transcoding is the encoding side of VA-API, not the decoding side covered here. And X11 versus Wayland flag differences should always be checked against the browser's current documentation, never treated as a fixed set of flags that works everywhere.
FAQ
Why does my CPU run at full load when I watch a video on Linux?
Because the video is being decoded in software on the CPU. On Linux, browsers and players decode through VA-API. If the VA-API driver is missing or wrong, the browser flag is off, or the codec has no hardware support, playback falls back to the CPU, and the GPU video engine stays idle.
What does vainfo actually tell me?
It tells you whether the VA-API driver layer is working and which codecs have hardware decoding. It lists the driver name — iHD, i965, radeonsi and similar — plus every codec profile and its entry points. VAEntrypointVLD on a codec means hardware decoding exists for that codec. An error, or no profiles at all, means the driver layer is not working.
I installed the graphics driver. Why is video still stuttering?
Because the graphics driver and the VA-API driver are different layers. Intel needs its media driver, AMD needs Mesa, and NVIDIA's proprietary driver needs the separate nvidia-vaapi-driver bridge. On top of that, the browser flag has to be enabled. Installing the graphics driver alone covers none of the other two links.
How do I check whether my browser is using hardware decoding?
In Firefox, open about:support and look at HARDWARE_VIDEO_DECODING. In a Chromium-based browser, open chrome://gpu and look at Video Decode, which should read "Hardware accelerated". If the status page says otherwise, the browser is decoding in software even if vainfo looks healthy.
Why does AVC play smoothly but AV1 stutter on the same machine?
Because codec support is counted one codec at a time. AVC has hardware decoding on almost every card, while AV1 hardware decoding only exists on newer generations. Run vainfo and check whether AV1 has a VAEntrypointVLD entry point — if it does not, AV1 will always fall back to the CPU on that machine.
Does the same fix work on every Linux distribution?
No. Package names differ between distributions, Fedora handles H.264 and H.265 licensing through separate freeworld packages, and Firefox defaults and Chromium flag names change between versions. Use the three checks to find which layer is at fault, then follow the documentation for the distribution and browser version in use.
When should I stop changing settings and get the machine inspected?
When all seven steps have been worked through and the fault is still there, or when vainfo keeps failing after the correct driver for the card has been installed. At that point the cause may be a specific distribution and browser combination, or a hardware fault. Bring the machine to Room 1209, Dali Plaza, Shek Mun, telephone 2186 8010, WhatsApp 6558 6806. Published repair fees are HK$400–2,800, with the final quote given after inspection.