dsh-video-tools
其他 活跃维护

dsh-video-tools

PiedPiper911/dsh-video-tools

PiedPiper911开发的轻量视频处理插件,提供视频格式转换、剪辑、压缩等常用处理能力,易集成到现有工作流,无需复杂配置即可快速调用,运行稳定,可满足日常开发及使用的轻量视频处理需求。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
None
开源协议
14 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:PiedPiper911/dsh-video-tools
git clone https://github.com/PiedPiper911/dsh-video-tools.git
git clone git@github.com:PiedPiper911/dsh-video-tools.git
README.md main

dsh-video-tools 🎬

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