← 返回
未分类 Key 中文

dpp-pipeline

Use when you need to turn a local source video and one product image into a single-product placement video with the DPP pipeline.
用于将本地源视频和一张产品图片通过DPP流程转换为单产品植入视频
kotot kotot 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 337
下载
💾 0
安装
1
版本
#latest

概述

DPP Pipeline

Run the DPP storyboard, placement, and compose-best flow from a local workspace.

The skill bundles its Python runtime under runtime/, but it does not treat the installed skill directory as the project workspace. Inputs and outputs live under the caller's current working directory by default. Override that with DPP_WORKDIR when needed.

When to Use

  • Generate storyboard.json from a local video with dpp-storyboard.
  • Generate a single-product material config from one product image under assets/.
  • Select the best storyboard segment for one product image with dpp-placement.
  • Run the final best-segment composition flow with dpp-compose-best.
  • Replace the best segment in the original video with the generated clip using dpp-final-cut.

Do not use this skill for multi-product batch processing. This skill handles one local video and one product image at a time.

Dependencies

  • Python 3.11+
  • ffmpeg
  • Network access to Ark and TOS
  • Ark environment variables in the target workspace .env
  • TOS_BUCKET, TOS_AK, TOS_SK, TOS_ENDPOINT, and TOS_REGION when compose-best must auto-upload the reference clip or image
  • TOS_OBJECT_PREFIX, TOS_ENABLE_HTTPS, and TOS_FORCE_ENDPOINT are optional TOS tuning variables

Install Python dependencies by running:

scripts/bootstrap_runtime.sh

Workspace Layout

The runtime lives inside the installed skill. The caller workspace holds inputs, configs, logs, and outputs:

<workspace>/
  .env
  assets/
    <single product image>
  video/
    demo.mp4
  configs/
    placement_material.json
  log/
  output/
    <video_stem>/
      finalCut/

Initialize a new workspace with:

scripts/init_workspace.sh

That command creates assets/, video/, configs/, and output/, and copies sample files into place.

Workflow

  1. Run scripts/bootstrap_runtime.sh.
  2. If the target workspace is empty, run scripts/init_workspace.sh.
  3. Ensure the workspace .env contains Ark credentials and defaults.
  4. Ensure video/demo.mp4 exists before storyboard, unless the user will pass --video.
  5. Ensure assets/ contains exactly one product image before material generation, unless the user will pass --image.
  6. Run scripts/run_storyboard.sh.
  7. Run scripts/run_generate_material.sh.
  8. Run scripts/run_placement.sh.
  9. Run scripts/run_compose_best.sh.
  10. Run scripts/run_final_cut.sh.

Do not skip stage ordering unless the user explicitly asks to reuse an existing artifact.

Review Pauses

Do not pause by default.

  • If the user wants review pauses, stop after each requested stage and report the artifact path.
  • If the user asks to continue, move directly to the next stage when the required inputs already exist.
  • If the user asks to rerun a later stage, reuse earlier artifacts unless the input changed.

Typical checkpoints:

  • After storyboard: review segmentation quality and thumbnail coverage.
  • After placement: review best_segment_index, ranking, and placement rationale.
  • After compose-best: review composition_result.json, prompt quality, and reference-media URL status.
  • After final-cut: review finalcut_result.json and verify the output video at output//finalCut/final_cut.mp4.

Execution Rules

  • Run the stage scripts from the caller workspace, or set DPP_WORKDIR to the target workspace path.
  • Keep the installed skill directory immutable except for .venv/ and the generated runtime/ bundle.
  • Always bootstrap the runtime before the first stage command.
  • dpp-storyboard, dpp-placement, and dpp-compose-best can each take more than 10 minutes. Do not assume the process is hung just because it is quiet for a while; warn the user that the stage is long-running and let it complete naturally.
  • After each stage, report the main artifact path.
  • Before compose-best auto-upload, verify TOS_BUCKET, TOS_AK, TOS_SK, TOS_ENDPOINT, and TOS_REGION if the user did not provide --reference-video-url or DPP_REFERENCE_VIDEO_URL.
  • This skill sends prompts and media metadata to Ark. Compose-best may also upload the reference clip and product image to TOS.

Detailed commands live in references/commands.md.

Scripts

  • scripts/bootstrap_runtime.sh
  • scripts/init_workspace.sh
  • scripts/run_storyboard.sh
  • scripts/run_generate_material.sh
  • scripts/run_placement.sh
  • scripts/run_compose_best.sh
  • scripts/run_final_cut.sh

Each script forwards all CLI arguments to the underlying Python module.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-07 19:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 136 📥 53,100
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 333 📥 94,429
design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 431 📥 117,602