DeepSeek Harness Plugin: music-code-mv Code-driven MV Rendering

Introduction

In the DeepSeek Harness (DSH) plugin ecosystem, ayst-z/music-code-mv provides the capability to convert code into music videos. Unlike solutions relying on video generation models, this plugin generates frames by writing Canvas2D or Three.js code and uses a local headless browser and ffmpeg for compositing. This approach ensures deterministic and controllable results.

Core Features

This plugin primarily addresses the need for generating high-quality, reproducible videos from code. It features the following:

  1. Deterministic Rendering: Implements virtual time rendering via the renderAt(t) function, ensuring that the same time parameter t always corresponds to the same pixel output.
  2. Canvas2D and Three.js Support: Provides a built-in Canvas2D stage with effects such as scanlines, glow, chromatic aberration (RGB split), slice glitch, grain, and vignette. It also supports integrating Three.js cameras via import maps.
  3. Scene-Specific Effect Overriding: Allows overriding post-processing effects for specific scenes; expensive post-processing chains can be skipped for flat UI shots.
  4. High-Performance Parallel Rendering: Supports parallel frame rendering across N Chrome Workers, with automatic blank-frame detection to fall back to software rendering (or in case of hardware acceleration failure).
  5. Hardware Encoding: Automatically selects QSV, NVENC, AMF, or x264 for hardware encoding, supporting AV1/HEVC.
  6. Incremental Re-rendering: Determines whether frames need to be redrawn based on rendering signatures (file content and import graph), avoiding redundant work.
  7. HDR10 Output: Supports 10-bit HEVC output with a Rec.2020 color space and PQ transfer characteristics, including authentic SDR to PQ conversion (not simply labeling).
  8. Chinese GUI (MV Studio): Provides a browser-based Chinese interface, including a timeline (supporting scene overlap and local/global time), project browser, lyrics parsing (LRC), and a real-time progress bar.

Installation and Activation

To install this plugin, you must first clone the repository and then add it via DSH commands.

  1. Clone the repository and enter the directory:
    git clone https://github.com/ayst-z/music-code-mv
    cd music-code-mv
  1. Add the plugin to the DSH configuration file:
    dsh plugin add .
  1. Start DSH and use the corresponding profile:
    dsh --profile demo

Other Installation Methods

To install from a specific commit of the Git repository or via a tarball, you can use the following commands:

dsh plugin --profile demo add github:ayst-z/music-code-mv#<sha>
pnpm pack && dsh plugin --profile demo add ./dsh-music-code-mv-0.2.0.tgz

To uninstall, run:

dsh plugin --profile demo remove dsh-music-code-mv

Dependencies and Environment

Running this plugin requires the following environment:
* Node.js >= 18
* Google Chrome or Edge
* ffmpeg (for video encoding)

Notes:
* This plugin is pure JavaScript and requires no build step.
* In a file:// environment, the interface will automatically degrade to a “Open in browser” prompt.
* Some newer versions of npm may silently skip the binary download for ffmpeg-static; it is recommended to use @ffmpeg-installer/ffmpeg as an alternative.
* HDR Vivid (CUVA TU-068 dynamic metadata) is not currently supported.

Use Cases

Suitable for developers who require precise code-based control over video frames, high resolutions (up to 4K/120fps), HDR10 output, and deterministic behavior. It does not rely on external video generation models; all rendering logic is handled by local code.


Plugin Directory: skillhub.cn/plugins/ayst-z/music-code-mv
Source Code: github.com/ayst-z/music-code-mv

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

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

Xiaoye