Repository navigation
fix(docker): request NVENC driver capabilities in the NVIDIA overlay - #1683
Conversation
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>
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
The NVIDIA capability change materially changes the NVENC behavior exercised by #1172 C1–C3. All three cases are currently
Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
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 setsNVIDIA_DRIVER_CAPABILITIESfrom the NVIDIA-specific entries in that list (daemon/devices_nvidia_linux.goin moby), so with onlygpuit sets nothing. The NVIDIA Container Toolkit then uses its default ofcompute,utility, which does not mount the NVENC/NVDEC libraries (libnvidia-encode,libnvcuvid). A user in the community confirmed that addingvideofixed hardware transcoding.Approach
Both the integrated
siloservice and the commentedsilo-transcodeexample now request[gpu, compute, utility, video]. Naming any driver capability replaces the toolkit default, socomputeandutilitystay listed.utilityprovides thenvidia-smithat 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 configrenders the four capabilities on thesilodevice reservation.scripts/check-local-path-leaks.shpasses.Risks
Existing installs keep software transcoding until they pull the updated overlay. The new capabilities only add driver libraries to the container.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add NVENC driver capabilities to NVIDIA docker overlay reservations
Expands the NVIDIA device capabilities from
gpuonly togpu, compute, utility, videofor the silo service in docker-compose.nvidia.yml. Thevideocapability 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.