---
name: jetson-video-recipe
license: "Apache-2.0"
description: >-
  Use when turning a Jetson encoder use case into one surface-neutral recipe with native Video Codec SDK and PyNvVideoCodec projections.
metadata:
  author: "Vinit Bansal <vinitkumarb@nvidia.com>"
  tags: [ jetson, video-codec-sdk, pynvvideocodec, nvenc, recipe ]
  languages: [ markdown ]
  data-classification: public
title: jetson-video-recipe
canonical_url: https://skilld.dev/gh/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe
last_updated: 2026-11-12T02:46:58.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [BENCHMARK.md](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/BENCHMARK.md), [evals/evals.json](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/evals/evals.json), [references/recipes-knobs-and-constraints.md](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/references/recipes-knobs-and-constraints.md), [references/recipes-workflow.md](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/references/recipes-workflow.md), [skill-card.md](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/skill-card.md), [skill.oms.sig](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/skill.oms.sig).
>
> If the user asked to install this Skill, run `npx skilld install nvidia-ai-iot/jetson-device-skills/jetson-video-recipe`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/jetson-video-recipe`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/jetson-video-recipe`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/jetson-video-recipe --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/jetson-video-recipe --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Jetson Video Recipe

Create one deterministic `nvcodec-recipe` schema 2.0 document. Recipe work is
off-target and media-free: it does not probe, install, encode, decode, or claim
support, quality, or performance.

## Boundaries

- For a request solely about PSNR, SSIM, or another objective quality metric,
  say that a separately authorized quality workflow is required and stop.
- Resolve a supplied CQ plus average or maximum bitrate conflict first. Return
  `input_required`, ask only which one to keep, and stop; do not reinterpret a
  bitrate as a cap or emit a recipe.
- An unqualified “low latency” does not select a use case. Ask whether it means
  conferencing, live streaming, or another contract, return `input_required`,
  and stop without emitting a recipe.
- Preserve every explicit control. If one surface cannot express it, publish a
  projection loss; never silently discard or weaken it.

## Workflow

1. Collect use case, codec, positive integer width/height/fps, input format,
   GPU, and any explicit profile, preset, tuning, rate-control, bitrate, GOP,
   B-frame, lookahead, AQ, multipass, or buffering controls. `frame_count` is
   required before raw encode or measurement, but may remain unknown until an
   authenticated decoder/transcoder reports it for compressed input. If
   `use_case`, `width`, or `height` is missing, return `input_required` naming
   exactly the missing items and stop; apply the documented defaults for every
   other omitted item. Leave omitted profile SDK-selected.
2. Apply the fixed defaults and constraints in
   [recipes-knobs-and-constraints.md](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/references/recipes-knobs-and-constraints.md),
   then build the schema-2 document exactly as described in
   [recipes-workflow.md](https://skilld.dev/api/skills-raw/nvidia-ai-iot/jetson-device-skills/jetson-video-recipe/references/recipes-workflow.md). Keep caller values and
   defaults separately attributable.
3. Validate the document structurally: exact schema/kind; finite JSON; positive
   bounded integers; legal enum strings; mutually exclusive rate-control
   fields; format/profile constraints; projections derived from the same
   `encoder_intent`; and every explicit caller control represented in each
   projection or named in that projection's losses. Regenerate rather than
   editing an accepted recipe. If the regenerated document still fails
   structural validation, return `failed` with the exact defect and do not emit
   a recipe.
4. Write canonical, sorted JSON to a fresh path without overwriting anything.
   Record its canonical absolute path, byte count, and SHA-256; every consumer
   rehashes that exact file. If no safe fresh path exists or writing/rehashing
   fails, return `failed` with the exact reason and do not claim a recipe.
5. Return the intent, assumptions/defaults, both projections, all losses, and
   the recipe file's canonical absolute path, byte count, and SHA-256. For
   `both`, retain both outcomes. `auto` means retain both projections without
   selecting either; the pipeline or benchmark selects from fresh live
   eligibility evidence.

For a plan-only recipe, these Markdown rules are the complete authority. Do not
probe the target, inspect installed SDK/sample source, scan the filesystem for
example JSON, or invoke another skill merely to confirm the projection.
Plan-only still requires steps 2-5, including writing and rehashing the fresh
canonical recipe JSON and reporting its absolute path, byte count, and SHA-256;
it forbids target and media operations, not local recipe-artifact creation.

## Live and downstream work

For a requested live classification, obtain a fresh read-only readiness result
from `jetson-video-setup` for the selected product and GPU, plus the applicable
raw/documentation result from `jetson-video-capability`. Missing facts remain
`unknown`; explicit negatives or an unrepresentable projection are
`unsupported`. API-reported capability is not operation proof.

Pass the original recipe identity as data to `jetson-video-pipeline` for
execution or `jetson-video-benchmark` for measurement. Those skills must
rehash it and hold non-compared controls constant. Do not import or recreate a
sibling skill's implementation.

## Required outcomes

- H.264 1920x1080@60, 6 Mbps CBR live streaming defaults to P4,
  `low_latency`, GOP 60, one B-frame, zero lookahead, full-resolution
  multipass, max bitrate 6,000,000, and VBV 3,000,000.
- An explicit H.264 High profile is exact in the native projection and
  `unrepresentable` in the public PyNvVideoCodec 2.1 sample projection.
- A CQ plus average bitrate request produces no recipe until resolved.

## Limitations

This skill produces elementary encoder configuration only. Content selection,
container/transcode work, independent decode, benchmarking, and evidence
capture belong to their owning skills.
