Skip to content
cv181x-media logo

CV181X/CV182X/CV180X Multimedia Skill

cv181x-media

Expert guide for CV181X/CV182X/CV180X (SG200X) multimedia development using CVI MPI API. Use this skill when working with: VI (video input/camera/ISP), VPSS (video processing/scaling/crop), VENC (H.264/H.265/JPEG encoding), VDEC (decoding), VB (video buffer pools), SYS binding, or any CVI_* API c...

SKILL.md

Full skill instructions

CV181X/​CV182X/​CV180X Multimedia Skill

Complete Reference Index

All 18 reference files with searchable keywords:

FileKeywordsKey APIs
references/​vi.mdcamera, sensor, ISP, MIPI, DEV, PIPE, CHN, video inputCVI_VI_*, CVI_ISP_*, CVI_MIPI_*
references/​vpss.mdscaling, crop, resize, rotate, cvtColor, format conversion, group, channelCVI_VPSS_*, SendFrame, GetChnFrame
references/​venc.mdencode, H.264, H.265, HEVC, JPEG, MJPEG, bitrate, GOPCVI_VENC_*, SendFrame, GetStream
references/​vdec.mddecode, JPEG decode, H.264 decode, bitstreamCVI_VDEC_*, SendStream, GetFrame
references/​vb.mdbuffer pool, VB, memory, block, pool sizing, CommonPoolCVI_VB_*, GetBlock, ReleaseBlock
references/​sys.mdbind, unbind, init, exit, VI_VPSS_MODE, VPSS_MODECVI_SYS_*, Bind, SetVIVPSSMode
references/​vo.mddisplay, output, LCD, HDMI, layer, framebufferCVI_VO_*, SendFrame, ChnShow
references/​rgn.mdOSD, overlay, region, text, graphics, privacy maskCVI_RGN_*, AttachToChn, SetBitMap
references/​gdc.mddistortion, fisheye, LDC, rotation, mesh, warpCVI_GDC_*, AddCorrectionTask
references/​audio.mdaudio, microphone, speaker, AI, AO, AENC, ADEC, VQECVI_AI_*, CVI_AO_*, CVI_AENC_*
references/​ion.mdION, DMA, cache, flush, invalidate, physical addressCVI_SYS_IonAlloc, IonFlushCache
references/​debug.md/​proc, log, debug, status, diagnostics/​proc/​cvitek/​*, log level
references/​troubleshooting.mderror, ERR_VPSS_NOBUF, ERR_VB_NOBUF, failure, fixerror codes, solutions
references/​binding-cookbook.mdconcurrent, dual pipeline, online, offline, scenariomulti-scenario design
references/​integration-guide.mdintegration, cross-module, ownership, lifecyclesystem design rules
references/​platform.mdSDK, path, pixel format, CV181X, CV182X, CV180Xplatform differences
references/​overview.mdarchitecture, workflow, pipeline, introductionsystem overview
references/​scenarios.mdexample, surveillance, doorbell, NVR, applicationcomplete examples

Quick Lookup

By Task

TaskReference
Camera capturereferences/​vi.md
Video scaling/​crop/​rotatereferences/​vpss.md
H.264/​H.265/​JPEG encodereferences/​venc.md
JPEG/​H.264 decodereferences/​vdec.md
Buffer pool planningreferences/​vb.md
Module bindingreferences/​sys.md
Video displayreferences/​vo.md
OSD/​overlayreferences/​rgn.md
Fisheye correctionreferences/​gdc.md
Audio capture/​playbackreferences/​audio.md
DMA memoryreferences/​ion.md
Debuggingreferences/​debug.md
Error diagnosisreferences/​troubleshooting.md

By Error Code

ErrorReference
ERR_VPSS_NOBUF (0xc006800e)references/​troubleshooting.md
ERR_VB_NOBUFreferences/​vb.md
ERR_VENC_NOBUFreferences/​venc.md
ERR_VI_NOTREADYreferences/​vi.md
Bind failurereferences/​sys.md

By Pipeline

PipelineReferences
Camera -> VPSS (online)vi.md, vpss.md, sys.md
File -> VPSS (offline)vpss.md, vb.md
JPEG decode -> VPSSvdec.md, vpss.md
VPSS -> VENCvenc.md, sys.md
Dual pipelinereferences/​binding-cookbook.md

Private Operating Procedures

1. Authoritative Source Order

  1. SDK headers in cvi_mpi/​include/
  2. SDK samples in cvi_mpi/​sample/
  3. Never: external repos without header verification

2. VPSS Input Ownership

  • VPSS group for ONE input type: ISP or MEM
  • Never switch between Bind and SendFrame at runtime
  • Concurrent ISP + MEM: separate groups and VB pools

3. VI-VPSS Mode Selection

ModeUse Case
VI_OFFLINE_VPSS_ONLINECamera pipeline (recommended)
VI_OFFLINE_VPSS_OFFLINEMaximum flexibility
VI_ONLINE_VPSS_ONLINELowest latency

4. Binding Requirements

  • Control plane: CVI_SYS_Bind establishes relationship
  • Data plane: Mode setting determines data flow
  • Binding required even in ISP direct mode
  • Unbind before stop; bind after start

5. Camera Readiness

  • Warm up pipeline after start
  • Discard first few frames before capture

6. VENC SendFrame Memory

  • Must use VB pool, not raw ION
  • Use CVI_VB_GetBlock(), set frame.u32PoolId

7. Diagnostics

On failure: /​proc/​cvitek/​{sys,vb,vi,vpss,vdec,venc}


Module Init Order

1. CVI_VB_SetConfig + CVI_VB_Init
2. CVI_SYS_Init
3. CVI_SYS_SetVIVPSSMode
4. CVI_SYS_SetVPSSModeEx
5. VI: sensor -> mipi -> dev -> pipe -> isp -> chn
6. VPSS: CreateGrp -> SetChnAttr -> EnableChn -> StartGrp
7. CVI_SYS_Bind
8. Warmup

VPSS Mode Reference

VPSS_MODE_DUAL

DEV0 = VPSS_INPUT_MEM   -> Offline (SendFrame)
DEV1 = VPSS_INPUT_ISP   -> Camera (Bind)

VpssDev Selection

InputVpssDev
Camera (ISP)1
File/​Memory0

VB Pool Sizing

Size = COMMON_GetPicBufferSize(w, h, fmt, DATA_BITWIDTH_8, COMPRESS_MODE_NONE, 0)

Counts: Camera=4-6, VPSS=3-4, Encode=2-3, Decode=4-6

Debug Commands

cat /​proc/​cvitek/​sys | grep -A 10 "BIND RELATION"
cat /​proc/​cvitek/​vb | grep -A 20 "PoolId"
cat /​proc/​cvitek/​vi | grep -A 5 "VI CHN STATUS"
cat /​proc/​cvitek/​vpss | grep -A 20 "WORK STATUS"
echo "VI=7" > /​proc/​cvitek/​log

Version: 2.4.0 | Updated: 2026-01-20 | Platform: SG200X

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View