Re: FFmpeg VAAPI H264 /HEVC encoding not supported

From: Jan Beich <>
Date: Mon, 08 Jan 2024 19:35:33 UTC
Mario Marietto <> writes:

> I'm using FreeBSD 14.0-p3 with the latest packages and I'm trying to enable
> the VAAPI H264 / HEVC encoding for obs-studio,but it says that they aren't
> supported. There may be a bug somewhere ?

NVIDIA doesn't support VA-API natively, and neither libva-vdpau-driver
nor libva-nvidia-driver support encoding[1] (required by obs-studio).

- VDPAU is a decoding-only API thus pointless for screen recording
- NVENC uses CUDA thus requires nv-sglrun (from libc6-shim) on FreeBSD
- Vulkan Video encoding[2] is not supported by obs-studio yet


> info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce GTX
> 1060 3GB/PCIe/SSE2
> info: OpenGL loaded successfully, version 3.3.0 NVIDIA 535.146.02, shading
> language 3.30 NVIDIA via Cg compiler
> info: NVENC supported

Maybe double-check
I don't have an NVIDIA GPU to test if it hasn't regressed since then.
However, if mpv with --hwdec=nvdec (requires nv-sglrun) still works then
try bisecting obs-studio updates.