hwdetect

package
v0.0.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package hwdetect probes the host OS for available hardware acceleration backends. Detection is based on device files and PCI vendor IDs — no FFmpeg subprocess is needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() []domain.HWAccel

Available returns the list of HWAccel backends that appear to be present on the current host. domain.HWAccelNone (CPU) is always included first.

Detection rules (Linux):

  • NVENC: /dev/nvidia0 exists
  • VAAPI: any /dev/dri/renderD* device exists
  • QSV: VAAPI device present AND at least one PCI device with Intel vendor (0x8086)

Detection rules (macOS):

  • VideoToolbox: always available on darwin

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL