nvidia-ai-blueprints/video-search-and-summarization/vss-generate-video-calibration
Claude Code and agent skill by nvidia-ai-blueprints/video-search-and-summarization
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Use this skill when running or tuning AutoMagicCalib on local MP4s, RTSP, or the bundled sample dataset, or when deploying vss-auto-calibration. Do not use for non-AMC calibration or runtime analytics.
Install
npx vskill@latest install nvidia-ai-blueprints/video-search-and-summarization/vss-generate-video-calibrationSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as nvidia-ai-blueprints/video-search-and-summarization/vss-generate-video-calibration.
VSS Generate Video Calibration
Run AutoMagicCalib over one of three input sources and drive the calibration through the microservice REST API. For normal single-run calibration, input-resolution work differs per source and shared work from verify_project onward lives in this file. Pair selected input-mode reference with Shared Calibration Tail; explicit tuning uses its own routed workflow below.
When to Use This Skill
Run or tune AutoMagicCalib end-to-end on local files, RTSP streams, or the bundled sample dataset and (when needed) deploy the AMC microservice.
Do not use for non-AMC camera calibration or runtime analytics.
Workflow
Resolve tuning intent before input mode, then follow the applicable routing table and workflow below. Each section that ends in workflow, quick start, or flow is intended to be executed top-to-bottom. Detailed reference material lives in references/; load only the references needed for the selected intent and input mode.
Examples
Worked end-to-end examples are kept under evals/ (each *.json manifest contains a runnable scenario) and inline in the per-workflow curl blocks below. Run a Tier-3 evaluation with nv-base validate <this-skill-dir> --agent-eval to replay them.
Limitations
- Requires the matching VSS profile / microservice to be deployed and reachable from the caller.
- NGC-hosted models and NIMs may be subject to rate-limits, GPU memory requirements, and license restrictions.
- Concurrency, GPU memory, and storage limits depend on the host hardware and the profile's compose file.
Shared helper references are loaded only when needed:
- Read `references/common-steps.md` when a mode reference needs the shared
create_project, video-upload, or handoff snippets. - Read `references/calibration-tail.md` when you need the reusable Python implementation of the stage-linear-media → verify → VGGT/post-process → AMC/post-process → compare-results tail.
- Read `references/tuning.md` first when the user explicitly asks to tune, optimize, or find AMC settings. It owns tuning project names and the multi-attempt lifecycle; do not run the ordinary shared calibration tail for that request.
- Read `references/calibration-parameters.md` only when tuning evidence requires a numeric AMC configuration change.
Intent Routing
- Normal calibration — follow the existing input-mode workflow and shared calibration tail. Run one AMC configuration, then offer bounded tuning after reporting a completed or tunable failed result. Do not start repeated attempts without an explicit tuning request or acceptance of that offer.
- Explicit tuning — read `references/tuning.md` before the relevant input-mode reference. Use the input-mode reference only for source discovery, ordering, capture, and upload semantics; the tuning reference replaces its project-naming and shared-tail handoff instructions.
Input Routing
Match the user's request to a mode, then load that mode's reference for input collection, mode-specific API calls, and the full Python script.
| User says / has | Mode | Reference | |
|---|---|---|---|
| "launch AMC" / "deploy auto-calibration" / "set up auto-magic-calib" / "start AMC microservice" | deploy | `references/deploy-auto-calibration-service.md` | |
| "calibrate my videos" / "calibrate from video files" / local MP4 files | videos | `references/videos.md` | |
| "calibrate RTSP streams" / "calibrate from live cameras" / live RTSP URLs | rtsp | `references/rtsp.md` | |
| "test sample dataset" / "verify AMC install" / "launch and test" | sample-dataset | `references/sample-dataset.md` |
Disambiguation rule: if the user is asking to launch / deploy / set up AMC (no calibration verb) → deploy. If they provide RTSP URLs → rtsp. If they mention local files / a videos directory → videos. If they ask to verify install or test the bundled sample → sample-dataset. Combined intents (e.g. "launch AMC and calibrate my videos") → walk deploy first, then the calibration mode. When ambiguous, ask via AskUserQuestion.
Prerequisites (shared across calibration modes)
- Platform preflight from `references/deploy-auto-calibration-service.md` Step 0 passes before any AMC deploy or calibration API work. The calibration host needs Ubuntu 24.04 on
x86_64, NVIDIA Driver 590 or newer, NVIDIA GPU access, and NVENC hardware encoder support. If the preflight fails, stop immediately, tell the user which requirement was not met, and ask them to provide an existingcalibration.json, run calibration on a supportedx86_64dGPU host, or transfer generated calibration artifacts. Do not continue AMC setup, VIOS probing, capture, upload, or calibration automatically. DGX Spark isaarch64, so use existing/generated artifacts for this flow. - AMC microservice + UI running. If not, walk `references/deploy-auto-calibration-service.md` first.
- Microservice reachable at
http://<HOST_IP>:${VSS_AUTO_CALIBRATION_HOST_PORT:-8010}/v1/ready→{"code":0,...}. - Projects directory writable by the container user. If you didn't just deploy (so Step 5 of the deploy reference hasn't run), confirm the write test in `references/deploy-auto-calibration-service.md` § Step 5 — otherwise the first
create_projectreturns[Errno 13] Permission denied. - Python 3 with
requestsinstalled.
Mode-specific prerequisites (VIOS for rtsp, sample zip for sample-dataset) live in the respective references. The platform preflight applies even when an AMC service is already running.
Shared Calibration Tail
The shared sequence is stage-linear-media → verify → VGGT (when ready) → post-process → AMC → post-process → results. After the mode-specific reference has uploaded videos / automatically ingested RTSP clips / uploaded the bundled sample, run this tail. Use `references/calibration-tail.md` for the shared Python snippet.
For a new normal or sample run using defaults, prepare its configuration before invoking the tail: fetch GET /v1/config/defaults, retain the confirmed dataset layout_px_per_m and explicitly requested overrides, then apply the complete configuration with POST /v1/config/<project_id>. Do this only while the backend is idle and no other client is changing settings; confirm GET /v1/config matches before calibration. Current service-wide settings may belong to a previous tuning attempt, not the defaults. Do not reset an existing project being resumed or overwrite user-selected settings from a file or the UI.
AMC UI sequence: Step 1 Project Setup, Step 2 Video Configuration, Step 3 Parameters, Step 4 Rectification, Step 5 Manual Alignment, Step 6 Execute, Step 7 Results.
Step A: Stage Linear Media
AMC v3.3.0 cannot calibrate raw media. After the mode-specific workflow has uploaded videos or completed RTSP ingest, explicitly choose one path before verification:
- Already-linear/pinhole media — call
POST /v1/linear_media/<project_id>and requirerectification_state == "COMPLETED". - Distorted media — open AMC UI Step 4: Rectification; select Auto or Manual; review the estimate; then click Generate Rectified Videos. Auto supports
simple_divisional(default),simple_radial, andradial; Manual supports per-cameramodel,k1, andk2forradial.READY_FOR_REVIEWis not complete: requirerectification_state == "COMPLETED"before continuing. Use Videos Are Rectified only for confirmed already-linear media. Re-rectification invalidates verification, calibration, and post-processing outputs.
For REST-only rectification, use the running AMC service contract at the service-root /openapi.yaml (without /v1); the interactive API reference is at /docs:
- Auto —
POST /v1/rectification/<project_id>starts frame-0 estimation. PollGET /v1/rectification/<project_id>untilREADY_FOR_REVIEW; thenGET /v1/rectification/<project_id>/cameras, review everyauto_estimate, and commit all camera parameters withPOST /v1/rectification/<project_id>/manualusing{"cameras":{"cam_00":{"model":"...","k1":0.0,"k2":0.0},...}}. This explicit commit generates full rectified videos. - Manual —
POST /v1/rectification/<project_id>/manual/start; optionally preview each adjustment throughPOST /v1/rectification/<project_id>/preview/<camera_id>; then commit a complete per-cameracamerasmap toPOST /v1/rectification/<project_id>/manual. - Poll
GET /v1/rectification/<project_id>untilCOMPLETED. Stop onERROR; do not verify or calibrate fromREADY_FOR_REVIEW.
Rectification produces rectified.mp4 and rectified.jpg. External alignment files normally use coord_space=original; use rectified only for points created on AMC rectified media. Never call /v1/calibrate/<project_id> before the linear-media or rectification state is complete.
Step B: Verify Project
Response: {"project_state": "READY"} — must be READY before calibrating. If not READY, re-check that videos + alignment + layout are present (either via API or via UI manual alignment).
Step C: Independent VGGT Calibration
After verification and before AMC, inspect vggt_state. VGGT is available only for multi-camera projects. Start VGGT by default from READY, resume and wait from RUNNING, and always post-process a COMPLETED multi-camera result, including one completed before the current invocation. MODEL_MISSING or ERROR is reported as an AMC-only fallback unless the error indicates a shared input or infrastructure problem. Check amc_state, vggt_state, and postprocess_state independently; wait for each workload to finish before starting another.
Step D: Start AMC Calibration
Confirm the plan before calibrating. Whether the settings file and detector were auto-detected or asked, present a short summary and confirm via AskUserQuestion before the POST /calibrate. The resolved values are the defaults, so confirming is one click — but the user can switch the detector or skip an auto-detected settings file. Summarize:
- Detector —
resnetortransformer(the value to be sent). - Calibration settings — the file being applied (path), or default parameters (with the option to tune them in the UI first — see below).
- Optional overrides — ground-truth zip and focal lengths, if any.
The sample-dataset install-check run uses a fixed resnet and can proceed without this confirmation.
detector_type is a separate /calibrate parameter — not consumed by /v1/config/<id>. If the user provided a calibration settings file, parse it for "detector" / "detector_type" and use that value. If the file doesn't specify one, the default (resnet) is the value shown in the confirmation above — the user can switch it there before calibrating. If there's no settings file at all, ask the user via AskUserQuestion:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tools/vss-generate-video-calibration/SKILL.md
Popularity
- Repository stars
- 1,889
- Repository forks
- 401
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nvidia-ai-blueprints/video-search-and-summarization/vss-generate-video-calibration)