# Tuyaos/dvp

> TuyaOS DVP camera capture/encode via tkl_vi / tkl_venc. DVP、摄像头、采集、H264、tkl_vi、tkl_venc。

- Skill: `tuya/tuyaos-dvp` (Agent Skill)
- Install (CLI): `npx skillmds@latest add tuya/tuyaos-dvp`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tuya/tuyaos-dvp/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tuya (https://skillmd.com/u/tuya)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tuya/tuyaos-dvp

---


# TuyaOS DVP Camera (`tkl_vi` / `tkl_venc`)

**Demo:** `…/examples/driver_dvp/example_driver_dvp.c`

## Key APIs

| Function | Role |
|----------|------|
| `tkl_vi_init` / `tkl_vi_uninit` | video-in (DVP) |
| `tkl_venc_init` / `tkl_venc_uninit` | encoder (e.g. H.264) |
| `tkl_fs_*` | optional save to SD |
| `tal_mutex_*` | protect callbacks |

## Guidance

1. Read the full demo for sensor/config structs — they are platform-heavy.
2. Confirm resolution, sensor, and SD mount path with the user.
3. **Not** TuyaOpen `tdl_camera_*`.
4. Stop path: demo exposes `example_dvp_stop` — always provide a clean uninit.

