Re: FFmpeg VAAPI H264 /HEVC encoding not supported

From: Jan Beich <>
Date: Mon, 08 Jan 2024 19:57:59 UTC
Kevin Oberman <> writes:

>> On Sat, Jan 6, 2024 at 5:23 PM Mehmet Erol Sanliturk <
>>> wrote:
>>> Another issue about video encoders and decoders is patents .
>>> is VAAPI HEVC encoding patented or not
>>> is VAAPI H264 encoding patented or not
> Are you building ffmpeg from source or installing a package? Patented ports
> need to be built "NONFREE=on" for patented codecs. I am not sure what
> options the ffmpeg package is built with.

FreeBSD doesn't cripple packages due to patents. See

NONFREE in multimedia/ffmpeg refers to the code under GPL-incompatible
licenses. It mainly affects OPENSSL and FDK_AAC options. For example,
NVENC is enabled by default unlike NONFREE option.

FFmpeg also supports CUDA- and NPP- based filters but those are not
exposed in the port due to missing dependencies. Both would be NONFREE
as SDKs for CUDA (e.g., nvcc) and NPP (e.g., libnpp) are proprietary.