Guides › FFmpeg

FFmpeg "No NVENC capable devices found": hwaccel fixes

Fix FFmpeg "No NVENC capable devices found", "OpenEncodeSessionEx failed", "hwaccel initialisation returned error" and QSV "Device creation failed".

What it looks like in your log

[h264_nvenc @ 0x1] OpenEncodeSessionEx failed: unsupported device (2): (no details)

Why does FFmpeg hardware acceleration fail?

FFmpeg could not open the GPU encoder or decoder: no supported GPU, a driver older than your FFmpeg build needs, too many simultaneous NVENC sessions on consumer cards, the Intel iGPU disabled in BIOS, or a VM/container without GPU passthrough. Also note NVENC ignores -crf (use -cq) and QSV uses -global_quality.

How to fix it

  1. Update the GPU driver to the latest version.
  2. Check the encoder exists: ffmpeg -hide_banner -encoders | findstr nvenc (Windows) or | grep nvenc.
  3. Close other apps using NVENC (OBS, Discord, ShadowPlay/NVIDIA App).
  4. For constant quality with NVENC use -rc vbr -cq 23 -b:v 0 instead of -crf.
  5. Remove -hwaccel to test with software decoding, or fall back to libx264.
  6. On Linux add your user to the video and render groups for /dev/dri access.

Not sure this is your problem?

Upload your OBS log and StreamRx will tell you exactly what is wrong in 60 seconds, free.

Diagnose my log

📬 The StreamRx newsletter

One short email with OBS fixes, settings for Twitch/YouTube/Kick, and new StreamRx features. Unsubscribe anytime with one click.

No spam. Every email has an unsubscribe link, or reply "unsubscribe" to [email protected].

Related guides