dsh-video-narrator: Turn Videos, Articles, and PDFs into Narrated Videos with Visuals

Introduction

In DeepSeek Harness, doing “content recreation” typically involves users pasting a script, and the agent breaking it down into steps, tuning different tools to splice a video. There are many intermediate products and scattered failure points, and the agent easily spends a lot of turns on orchestration. Below is a workflow-type plugin released by maintainer t1897: dsh-video-narrator: it puts ingestion, transcription, script, image generation, TTS, and ffmpeg synthesis into the local pipeline vcs auto, where the agent is mainly responsible for starting commands and handling exceptions, rather than writing intermediate files one by one.

What is it

dsh-video-narrator (registered skill name video-narrator inside the bundle) is a skill plugin on DSH that can process local video/audio, YouTube/Bilibili links, article URLs, PDFs, or plain text into an MP4 with a cleaned manuscript, storyboard narration, title, and 10 tags, scene-by-scene images, and dubbing. The full capabilities are based on the GitHub README; the community directory page is skillhub.cn/plugins/t1897/dsh-video-narrator. The license is MIT (consistent between package.json and README).

Core Features

The end-to-end process described in the README is as follows.

  1. Ingestion: Supports local audio/video, video URLs (requires yt-dlp), article URLs, PDFs (pypdf), and text (trafilatura, etc.).
  2. Transcription: Video is chunked by 240 seconds with 30-second overlap, transcribed using Qwen3-ASR (MLX), and merged in Python; the local MLX stage only runs on Apple Silicon macOS.
  3. Manuscript: Cleaned into Markdown, then a narration script with timestamps is generated.
  4. Metadata: Generates a title, description, and exactly 10 tags, writing them to 04_metadata.json.
  5. Image Generation: Writes direction-related image prompts per scene and generates images scene-by-scene via ModelScope (requires API token; domestic and international endpoints can be mixed).
  6. Dubbing: Generates audio for each scene using Qwen3-TTS (MLX), with a fixed seed, and a reference voice must be provided; the repository comes with assets/voice_female.mp3 and assets/voice_male.mp3 (see assets/VOICE-LICENSE.md).
  7. Composition: ffmpeg assembles scenes and splices them together; the output filename is taken from metadata.title; intermediate products are deleted by default.

Pipeline nodes include: asr, cleanup, script, metadata, prompts, images, tts, final. Text and image APIs can fall back in order via providers.json (vcs text and scene-by-scene image are tried in sequence).

After installation, a Video entry will appear in the left sidebar. Open the persistent workspace: the left side lists runs/ and projects/ history; the right side configures source, direction, resolution, duration, segment length, voice, style, and Task scope (Full process / Run to a specific node / Re-run a single node) and Rebuild. The request carries [VCS_PARAMS_CONFIRMED], and after confirming parameters, the skill will no longer ask repeatedly.

v1 does not generate subtitles; paywall bypass is not implemented. The plugin runs under the current dsh process permissions. It is advisable to review the source code and license yourself before installing.

Environment and Dependencies

  • macOS Apple Silicon: Local ASR/TTS (MLX); first use ASR consumes about 2.3 GB, TTS about 4.5 GB (as noted in README).
  • ffmpeg, ffprobe in PATH.
  • yt-dlp: for video URLs.
  • Python 3.12/3.13: pypdf, trafilatura; as well as mlx-audio, mlx-qwen3-asr.
  • ModelScope API token: for remote image generation; the plugin does not come with a token.

Installation and Enablement

The method given in the README is: install from the DSH Plugin Market, or add this repository via Plugins → Add plugin in DSH; the bundle will register video-narrator, so no need to copy the skill separately. No CLI installation commands (e.g., dsh plugin add github:...) are provided in the documentation; none are fabricated below.

Configure environment variable templates:

cp .env.example .env

When using multiple accounts or ordered fallback, edit providers.json (copied from providers.example.json and gitignored); keys are read from environment variables corresponding to api_key_env:

cp providers.example.json providers.json
python3 scripts/vcs.py providers --file providers.json

Typical Usage

Via Agent

Explain to the agent that you want to generate a video from a URL, PDF, article, or text. The skill will first open a parameter confirmation (orientation, duration fixed/range/unlimited, segment length, resolution, voice, style), and after confirmation, it executes one vcs auto command, without the agent orchestrating intermediate files.

Node-level Control

When you need to stop at a step or only redo one step:

# Stop after the narration script is complete, reusing upstream artifacts
vcs auto --project <dir> --target script

# Rebuild up to the narration script
vcs auto --project <dir> --target script --rebuild

# Only redo the dubbing
vcs auto --project <dir> --only tts --rebuild

Direct CLI Invocation

# Ingestion
python3 scripts/vcs.py ingest --input "https://www.youtube.com/watch?v=..." --orientation portrait --duration 5-8

# Video transcription
HF_HOME="$HOME/.cache/vcs/hf" python3 scripts/vcs.py asr --project <project> --language English

# Validate 02_transcript.md / 03_script.json / 04_metadata.json / 05_image_prompts.json, etc.
python3 scripts/vcs.py validate --project <project>

# Media and final output
python3 scripts/vcs.py images --project <project>
HF_HOME="$HOME/.cache/vcs/hf" python3 scripts/vcs.py tts --project <project>
python3 scripts/vcs.py compose --project <project>

By default, compose will clean up audio, storyboard clips, and temporary files; you can add --keep-intermediates to keep them.

Output Directory Structure

The final video and metadata fall under projects/, for example:

projects/
└── YouTube_11122026_<metadata title>/
    ├── 01_transcript.raw.txt
    ├── 02_transcript.md
    ├── 03_script.json
    ├── 04_metadata.json
    ├── 05_image_prompts.json
    ├── 06_images/scene_001.jpg
    ├── 07_<metadata title>.mp4
    └── source/<original>.pdf   # Only for PDF input

04_metadata.json records source type, platform or domain, original URL, repost URL, or PDF path, etc.

Suitable Scenarios and Notes

Suitable for: Developers who are already doing content workflows in DSH, can accept Apple Silicon local MLX and ModelScope image generation configuration, and want to complete “Manuscript → Storyboard → Dubbing → MP4” using a single local process.

Notes:

  • Articles with restrictions must use authorized copies, free repost versions, or import saved HTML via vcs ingest --html; the plugin does not implement paywall bypass.
  • Scene images are JPEG (-q:v 2); resolution presets are 1080p, 720p, or custom; large image generation is scaled down and upsampled during composition.
  • To change the reference voice, use --voice-ref and --voice-ref-text.
  • The DSH community directory is an independent site and has no official affiliation with DeepSeek or Synthflow; plugin permissions are equivalent to the user environment you start dsh with; please check the repository code and MIT license before installing to ensure they meet your compliance requirements.

Conclusion

dsh-video-narrator consolidates the multi-stage production of “explainer videos” into vcs auto with optional node re-runs, aided by the Video workspace for parameter confirmation and historical project management. To try it out or check for updates, you can visit the Directory Page and GitHub Repository.

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

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

Xiaoye