Detect GPU Encoders
detect_gpuProbe hardware encoders (NVENC, VideoToolbox, AMF, VA-API, QSV) with a validation encode, falling back to libx264 if none work, to confirm hardware acceleration before rendering.
Instructions
Detect the best available hardware video encoder on this machine. Probes NVENC, VideoToolbox, AMF, VA-API, and QSV with a 1-frame validation encode and falls back to CPU (libx264) when no GPU encoder works. Use before rendering or grading to confirm hardware acceleration. Results are cached for 7 days in ~/.ffmpeg-render-pro/gpu-cache.json. Requires ffmpeg on PATH or FFMPEG_RENDER_PRO_FFMPEG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force_mode | No | auto probes hardware then falls back to CPU (default). cpu skips probing and always returns libx264. gpu fails if no hardware encoder is found. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | Yes | All validated encoders including the CPU fallback | |
| h264 | Yes | Best available H.264 encoder name | |
| hevc | Yes | Best available HEVC encoder name, or null | |
| isGpu | Yes | True when a hardware encoder validated | |
| label | Yes | Human-readable label of the selected encoder | |
| ffmpegVersion | Yes | Detected ffmpeg version string |