dsh-readme-reel: Turning plugin screenshots into 6-second silent loop hero video

Introduction

When maintaining plugin repositories in DeepSeek Harness (DSH), the README hero screen and the plugin marketplace entry can usually only display a single static screenshot. A single image can hardly explain “where to enter, which tab to click, and what you get in the end”; a screen recording requires manual operation, trimming the start and end, compressing the size, and making the beginning and end loop seamlessly. If the material is already PNG screenshots in the repository, the layout, fade-in/fade-out, timeline, and encoding can actually be consolidated into an automated pipeline.

Below is the community plugin dsh-readme-reel (maintained by dingchenhui0618-arch). It arranges screenshots in docs/shots/ into an approximately 6-second silent looped short video, outputting transparent-background webm, universal gif, and a cover frame, which can be placed directly into the README or the marketplace entry. The plugin is mounted on DSH’s webServer and provides a “Hero Reel” panel in the conversation view; it can also run the same pipeline standalone via the command line bin/reel.mjs. The repository adopts the MIT license, current version 0.1.0 (see package.json), and is not yet published to npm.

What Is This

dsh-readme-reel is positioned as: using screenshots as the sole information source, automatically completing shot sequencing, cross-fades, progress indicators, and timeline calculation, with encoding delegated to the local ffmpeg. It does not overlay text, add audio, or depend on fonts—the information in the video can only come from the screenshots themselves.

The community directory SkillHub entry categorizes it as “fun dress-up”; from an engineering perspective, a more accurate description is a hero reel generation tool for README / marketplace hero screens.

Core Features

Three Outputs and the Manifest

After generation completes, by default it writes to docs/reel/ under the project (the output directory can be changed via parameters):

File Description
reel.webm 1100×626, 6.000s, 30fps, VP9 with alpha retained (yuva420p), no audio track, suitable for looping playback
reel.gif Same timeline, alpha flattened onto a dark backing, 640 wide, 20fps, infinite loop
cover.png The first frame of the longest-held scene (original pixels, not re-encoded)
reel.json A manifest of each scene’s hold duration, timeline, output dimensions and sha256, ffmpeg version, elapsed time, etc.

The panel can directly preview webm / gif / cover, and provides “Copy Markdown” for easily pasting references to cover.png and reel.gif.

Timeline and Looping

The “6-second loop” comes from verifiable constraints, not just marketing copy:

  • Each scene’s hold is an integer number of milliseconds; Σ hold + number of transitions × transition duration matches durationMs (default 6000).
  • When loop: true, the last scene transitions back to the first, making t=0 and t=duration the same frame, so <video loop> and GIF can replay seamlessly.
  • test/storyboard.test.mjs and test/encode.test.mjs in the repository assert on the timeline and encoding results; encoding-related tests are skipped when ffmpeg is absent, rather than falsely reporting failure.

DSH Panel and CLI Share the Pipeline

  • Panel: In the target repository session, scan docs/shots/*.png, check the materials, adjust playback order with ↑/↓, and click “Generate”.
  • CLI: node bin/reel.mjs supports auto mode, storyboard file mode, and temporarily specifying materials for preview; PNG encoding/decoding and frame compositing are done within Node (without depending on sharp / canvas), ffmpeg is the only external dependency, discovered via the environment variable DSH_README_REEL_FFMPEG or PATH.

Capabilities Explicitly Not Provided

  • Does not render text; only accepts PNG, does not process video or JPEG, and is not a screen recording tool.
  • GIF is 8-bit palette; dark gradients may have slight banding; use webm when true alpha is needed.
  • No timeline drag-and-drop editor; order and hold durations are maintained via the panel or storyboard.json.

Installation and Enablement

Install into a DSH profile (a common installation method in the plugin marketplace):

dsh plugin --profile <your profile> add github:dingchenhui0618-arch/dsh-readme-reel

For local development, install from a path (the README example uses a Windows path; replace with your local directory):

dsh plugin --profile <your profile> add D:\Projects\dsh-readme-reel

After installation, restart DSH, and a “Hero Reel” tab will appear in the conversation view. The plugin depends on the Web GUI in the profile (the dsh-web-app stack); a purely CLI-created empty profile may show pending (waiting for service: webServer), which is DSH service dependency semantics and does not mean installation failed. The desktop client can install plugins within the app; the profile is managed by the application, so you generally don’t need to type the above commands manually.

Runtime environment: Node.js >= 20; encoding requires ffmpeg installed locally. The lib/ in the repository is a committed build artifact and is not compiled during installation.

Typical Usage

Generating in the DSH Panel

  1. Open the plugin repository session you want to make the reel for (by default, it looks for docs/shots/*.png in the working directory).
  2. Switch to the “Hero Reel” tab: check whether ffmpeg is available, the storyboard source, aspect ratio / duration / fps, and scanned screenshots.
  3. Check the materials, adjust the order, and click “Generate”; outputs are written to <project>/docs/reel/.
  4. Use “Copy Markdown” to paste into the README.

Command Line

Auto mode: sort PNGs in docs/shots/ by filename and distribute them evenly across the default 6 seconds:

node bin/reel.mjs --project .

Storyboard mode (recommended, can be committed to version control):

node bin/reel.mjs docs/storyboard.json

Temporarily preview specific images:

node bin/reel.mjs --sources docs/shots/a.png,docs/shots/b.png --duration 2000 --width 960 --height 600

Reproduce the entire video with three real screenshots from the repository README:

node bin/reel.mjs docs/storyboard.json

storyboard.json Example

{
  "version": 1,
  "title": "dsh-readme-reel · 首屏短片",
  "durationMs": 6000,
  "fps": 30,
  "size": { "width": 1100, "height": 626 },
  "loop": true,
  "layout": "plain",
  "transition": "fade",
  "transitionMs": 360,
  "scenes": [
    { "src": "docs/shots/shot-01-home.png", "hold": 1500 },
    { "src": "docs/shots/shot-02-conversation.png", "hold": 1500 },
    { "src": "docs/shots/shot-03-panel.png", "hold": 2600 }
  ]
}

scenes[].hold is a relative weight; the actual milliseconds are computed by watermark allocation (distributeHolds); transition can be fade / slide-left / cut, and layout can be window / plain. For full parameters, see node bin/reel.mjs --help.

Common default values: --duration 6000, --fps 30, --width 960, --height 600; for gif: --gif-width 640, --gif-fps 20, --matte #0b0e14. Exit codes: 0 success, 1 generation failure, 2 argument error.

Use Cases and Notes

For whom: DSH plugin authors who already have a set of UI screenshots and want the README or SkillHub entry hero screen to use a short loop to showcase multi-step operations; also suitable for using --json in CI to output only the manifest for artifact verification.

Permissions and security: The plugin runs with the permissions of the current DSH process, reads and writes screenshots under the conversation working directory and the docs/reel/ output, and invokes the local ffmpeg. Before installation, please read the GitHub source and the MIT license to confirm compliance with your environment and regulatory requirements.

Ecosystem note: The DSH community plugin directory (such as SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer (幻方); the facts in this article come from the repository README and package.json.

Conclusion

If you already maintain docs/shots/ screenshots in your repository, dsh-readme-reel turns the “hero reel” from manual editing into a reproducible command or panel operation: transparent webm for modern Markdown renderers, gif and cover for scenarios that still only support static images. After the above steps, the artifacts and the reel.json manifest can be committed to the repository together, making it easy to check whether they have been modified.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye