Skip to content

Fix the Windows NVENC HEVC Main10 probe timeout - #818

Merged
Nonary merged 1 commit into
Nonary:canaryfrom
Roboatlas21:fix/hevc-main10-probe-timeout-canary
Dec 3, 2026
Merged

Nonary merged 1 commit into
Nonary:canaryfrom
Roboatlas21:fix/hevc-main10-probe-timeout-canary

Conversation

@Roboatlas21

Copy link
Copy Markdown

Problem

On Windows with an RTX 4070, slow NVENC setup consumed the 60-second probe window before the first frame could be submitted. Vibepollo rejected HEVC Main10, so a stream requested with HDR negotiated SDR.

The startup log showed the probe timing out with zero submissions:

Encoder probe produced no packet after 0 submissions in 128604ms; treating HEVC as unsupported.

Change

Start the Windows NVENC HEVC Main10 probe timer when the first frame is ready to submit. Retries share one deadline. The probe keeps its submission limit, valid IDR check, and shutdown cancellation.

The 60-second deadline applies to submitting test frames and validating the encoder output. Slow NVENC initialization can still delay startup. Once setup returns, the probe gets its full validation window and can advertise Main10 if the encoder produces a valid frame.

Validation

I tested stock and patched Vibepollo 2.18.9 on an RTX 4070 with NVIDIA driver 610.60. The client requested HEVC at 3840×2160 and 60 Hz with HDR enabled.

Before the fix, the host advertised codec mask 0x07870101 with Main10 clear. The capture display was in HDR, and the logs showed that the stream negotiated SDR:

Client dynamicRange: 0, Display is HDR: true
Color coding: SDR (Rec. 601)

The client's HDMI output was 2160p60 SDR.

With the fix, the host advertised codec mask 0x079F0301 with Main10 enabled. The logs confirmed a 10-bit HEVC encode with HDR color coding:

Client dynamicRange: 1, Display is HDR: true
Color coding: HDR (Rec. 2020 + SMPTE 2084 PQ)
NvEnc: created encoder HEVC P1 api=13.0 async 10-bit two-pass rfi engines=1 split-frame=auto

The client's HDMI output was 2160p60 HDR10.

Slow encoder initialization can use up the entire probe window before
a frame is submitted, causing HEVC Main10 to be reported as unsupported.

Start the timer when the first probe frame is ready. Retries share the
same deadline, and shutdown can still cancel the probe during setup.
@Nonary
Nonary merged commit 4c23f14 into Nonary:canary Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants