Configure GPU encoder for low-latency (no B-frames)
Some checks are pending
GPU Worker CI/CD / test (push) Waiting to run
GPU Worker CI/CD / deploy (push) Blocked by required conditions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-04 02:40:07 +00:00
parent b96e8ca4d2
commit 75f9d8fb11

View File

@@ -96,8 +96,12 @@ class GPUEncoder:
# Create dummy video to get frame buffer template
self._init_frame_buffer()
# Create encoder
self.encoder = nvc.CreateEncoder(width, height, "NV12", usecpuinputbuffer=False)
# Create encoder with low-latency settings (no B-frames for immediate output)
self.encoder = nvc.CreateEncoder(
width, height, "NV12", usecpuinputbuffer=False,
bf=0, # No B-frames - immediate output
lowLatency=1, # Low latency mode
)
# CUDA kernel grid/block config
self._block = (16, 16)