Tools & Capabilities

dsh-video-tools

PiedPiper911/dsh-video-tools · ★ 1

PiedPiper911

Browser-local audio/video toolkit for DSH — extract frames, capture thumbnails, compress images, and convert clips to GIF with FFmpeg.wasm.

License
Unknown
Added
2026-08-21
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:PiedPiper911/dsh-video-tools

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. Install
  2. Tools
  3. Example: give a vision model frames from a local video
  4. How it works
  5. Development
  6. License

Browser-local audio/video tools for DeepSeek Harness (DSH), powered by FFmpeg.wasm.

No uploads, no servers — every operation runs in your browser via WebAssembly.

Install

dsh plugin add @piedpiper911/dsh-video-tools

Tools

Tool What it does
video_info Probe a video's duration, resolution, and codecs without transcoding.
video_frames Extract evenly-spaced frames as JPEGs, or a single frame at a timestamp.
image_compress Recompress an image to JPEG at a target width to shrink it for vision models.
video_to_gif Convert a video clip to an animated GIF (two-pass palette optimization).

Example: give a vision model frames from a local video

1. upload the video → workspace
2. video_frames { input: "demo.mp4", count: 4 }
3. describe what you see in each frame

How it works

  • One shared FFmpeg instance is lazily loaded on first use and reused for the whole session — the ~30 MB core downloads exactly once.
  • All I/O happens in FFmpeg's in-memory virtual filesystem; nothing touches disk.
  • Tool arguments are validated with the DSH schema DSL (defineTool), so the model only ever sees well-formed inputs.

Development

npm ci
npm run build      # tsc → lib/
npm test           # vitest

License

MIT