NVIDIA and AMD graphics

Prepare hardware encoding and understand GPU capture eligibility.

On this page

Check three separate capabilities

Check desktop/application rendering, capture, and video encoding independently. A GPU can provide one without providing the others. Use the driver recommended for the exact GPU, OS, and cloud/vGPU platform; a compute-only installation may omit graphics or encoding libraries.

PathWhat it needsHow to confirm
NVIDIA NVENCSupported GPU, encoder runtime, driver supporting TMD's NVENC API 12.2Agent selects nvenc; the viewer accepts a matching codec
NVIDIA NvFBCEligible GPU/driver and NvFBC runtime; Wayland also needs its portal/EGL pathAgent initializes NvFBC; NVENC support alone is insufficient
AMD AMF encodingCompatible GPU, AMF runtime and graphics/Vulkan stackAMF runtime loads and the agent selects an AMF encoder
AMD Wayland captureEligible physical output and GPU sharing support, plus the installed privileged brokerWorker starts and agent initializes AMF GPU broker capture

NVIDIA preparation

On a standard Ubuntu host, inspect the distribution's recommended driver:

sudo apt install ubuntu-drivers-common
ubuntu-drivers devices

For a standard Ubuntu graphics installation, install the recommended driver and reboot during maintenance:

sudo ubuntu-drivers install
sudo reboot

On a licensed cloud/vGPU image, follow the provider's procedure instead of replacing its driver. Ubuntu documents the graphics/server driver choices in its NVIDIA installation guide. After reconnecting, verify:

nvidia-smi
ldconfig -p | grep -E 'libnvidia-encode.so.1|libEGL_nvidia.so.0|libGLX_nvidia.so.0'

nvidia-smi proves neither NVENC nor an active console display. CUDA development tools are not required merely to use NVENC.

NvFBC on Wayland

TMD's Wayland NvFBC path requires Capture SDK 9 support, driver 570.86.16 or newer, libnvidia-fbc.so.1, and compatible NVIDIA EGL/OpenGL, PipeWire, and portal services. GeForce support must not be assumed.

Automatic selection is limited to a single-monitor desktop. Multiple monitors, capture failure, or incompatible dimensions select standard PipeWire. Adding a second monitor also switches capture to PipeWire. The SDK's sharing dialog is separate from TMD's input authorization.

NVENC does not require NvFBC. It can upload CPU images from ordinary portal/PipeWire capture to a retained GPU texture and still encode on NVIDIA hardware.

AMD preparation

The amdgpu kernel driver and Mesa can supply desktop graphics without supplying AMF. Follow AMD's AMF Linux runtime instructions for a compatible OS/GPU branch. AMF packaging varies by release; do not treat an old amdgpu-install --usecase=amf command as universal.

vulkaninfo --summary
ldconfig -p | grep libamfrt64.so.1
ls -l /dev/dri

An actual AMD device should appear; lavapipe/llvmpipe alone indicates software rendering. If the driver requires supplementary groups, add only the groups owning the relevant devices. On applicable Ubuntu hosts:

sudo usermod -aG render,video alice

Start a new login or virtual desktop for group changes to take effect.

AMF capture worker on Wayland

The installed root service launches a capture worker only for an eligible physical-console request. The normal agent remains unprivileged. The initial path requires exactly one connected, enabled, unrotated AMD physical output and compatible Vulkan external memory/semaphore sharing.

The worker transfers GPU image snapshots and synchronization descriptors to the agent; it does not transfer CPU image frames. Other layouts and failed imports select PipeWire. CPU image codecs can perform lazy readback in the ordinary agent.

Do not add capabilities or setuid bits to tmdagent. A user-writable development checkout is not eligible for the privileged worker. Look for Started AMF capture worker and Initialized AMF GPU broker capture in the logs.

A GPU does not create a console output

Use a connected monitor, an EDID emulator, or the provider's supported virtual display. NVIDIA AllowEmptyInitialConfiguration permits Xorg startup without a monitor but does not create an enabled output; UseDisplayDevice "none" is not an active-console recipe. For AMD, use its supported physical/provider display setup.

Xvfb and an Xorg dummy output remain software displays. If no hardware output is usable, choose a virtual desktop and verify encoding independently. See Capture, codecs, and performance.