Skip to content

fix(docker): request NVENC driver capabilities in the NVIDIA overlay - #1683

Merged
Quick104 merged 1 commit into
mainfrom
fix/nvidia-compose-video-capability
Sep 29, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/nvidia-compose-video-capability

Conversation

@Quick104

@Quick104 Quick104 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: unblocks #1172 C1, C2

With docker-compose.nvidia.yml, Silo detects an NVIDIA GPU but transcodes in software. In auto mode it reports no supported hardware. With NVENC forced, it reports NVENC as detected and still encodes in software. This affects every Docker install that follows the manual's NVIDIA setup.

The overlay requested only capabilities: [gpu]. Docker sets NVIDIA_DRIVER_CAPABILITIES from the NVIDIA-specific entries in that list (daemon/devices_nvidia_linux.go in moby), so with only gpu it sets nothing. The NVIDIA Container Toolkit then uses its default of compute,utility, which does not mount the NVENC/NVDEC libraries (libnvidia-encode, libnvcuvid). A user in the community confirmed that adding video fixed hardware transcoding.

Approach

Both the integrated silo service and the commented silo-transcode example now request [gpu, compute, utility, video]. Naming any driver capability replaces the toolkit default, so compute and utility stay listed. utility provides the nvidia-smi that node GPU metrics use.

The manual tells users to download this file from the repository, so it needs no change.

Validation

  • docker compose -f docker-compose.yml -f docker-compose.nvidia.yml config renders the four capabilities on the silo device reservation.
  • scripts/check-local-path-leaks.sh passes.
  • Not tested on NVIDIA hardware. The fix follows the Docker source and the community report. Hardware transcoding — NVENC #1172 C1 and C2 will cover it on real hardware.
  • The Go and web gates were not run because the change touches only a Compose overlay.

Risks

Existing installs keep software transcoding until they pull the updated overlay. The new capabilities only add driver libraries to the container.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code, GitHub CLI, Docker Compose
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; maintainer review pending
  • Adversarial review: n/a (one-line Compose capability change)

🤖 Generated with Claude Code

Note

Add NVENC driver capabilities to NVIDIA docker overlay reservations

Expands the NVIDIA device capabilities from gpu only to gpu, compute, utility, video for the silo service in docker-compose.nvidia.yml. The video capability makes the NVIDIA toolkit mount the driver libraries that FFmpeg needs for NVENC/NVDEC hardware encoding and decoding; without it, FFmpeg can fall back to software encoding. Also updates the commented distributed-mode example to match. Risk: none — changes only apply to the NVIDIA overlay, not the default docker-compose setup.

Macroscope summarized f7a2f80.

The overlay only asked for the "gpu" capability, so Docker left
NVIDIA_DRIVER_CAPABILITIES unset and the container toolkit mounted its
default compute,utility libraries. FFmpeg could see the GPU but had no
NVENC/NVDEC libraries and fell back to software encoding.

Request compute, utility, and video explicitly. Naming any capability
replaces the toolkit default, so compute and utility (nvidia-smi) stay listed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@kody-ai

kody-ai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T15:28:15.556977Z f7a2f80 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Quick104
Quick104 merged commit ce6a0f5 into main Sep 29, 2026
9 of 10 checks passed
@Quick104
Quick104 deleted the fix/nvidia-compose-video-capability branch September 29, 2026 15:26
@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: b43c26e0-4128-4432-af0b-19d9e505de0a

📥 Commits

Reviewing files that changed from the base of the PR and between 9d63465 and f7a2f80.

📒 Files selected for processing (1)
  • docker-compose.nvidia.yml
 _____________________________________________
< This mutex is like your promises: not held. >
 ---------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@macroscopeapp

macroscopeapp Bot commented Sep 29, 2026

Copy link
Copy Markdown

The NVIDIA capability change materially changes the NVENC behavior exercised by #1172 C1–C3. All three cases are currently Not run, so this does not unblock a failed or blocked result; they still need human validation on the merged build. The PR should explain this intended behavior change. Replace the line with:

Validation tasks: changes #1172 C1, C2, C3

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

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.

1 participant