STH Video Template Generation

# STH Video Template Generation Skill

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "STH Video Template Generation" with this command: npx skills add zhuyinzhuyin/sth-video-gen

STH Video Template Generation Skill

Generate videos for Sing The Hook (STH) song templates using a two-stage video generation pipeline.

Overview

This skill processes song template IDs from a CSV file, fetches data from PostgreSQL, generates videos via Imagine MCP, and updates the database with results. All videos are generated in 9:16 (vertical) aspect ratio by default.

Setup & Environment Variables

This skill requires the following environment variables to be set in your OpenClaw environment:

VariableDescriptionDefault
STH_DB_HOSTPostgreSQL Hostlocalhost
STH_DB_PORTPostgreSQL Port5432
STH_DB_NAMEPostgreSQL Database Namesth_db
STH_DB_USERPostgreSQL Usernamepostgres
STH_DB_PASSWORDPostgreSQL Password(Required)
STH_MCP_ENDPOINTImagine MCP API Endpoint(Required)
STH_MCP_API_KEYImagine MCP API Key(Required)
STH_GCS_KEY_PATHPath to GCS Service Account JSON key(Required for uploads)
STH_NOTIFY_TARGETTelegram ID for notifications(Optional)

Workflow

Step 1: Parse Input CSV

Read the CSV file provided by the user. Expected columns:

  • Song Template ID - The template ID to process
  • Status - Current status (will be updated)

Step 2: Generate Video Pipeline

  1. Check Audio Duration: Downloads audio mix and checks duration using ffprobe.
  2. Generate Original Video: Calls MCP create-video (Stage 1).
  3. Generate Final Video (infinitetalk): Lip-syncs video to audio (Stage 2).
  4. Trim Video: Trims video to match exact audio duration.
  5. Upload to GCS: Stores final video in Google Cloud Storage.
  6. Update Database: Saves final video URLs to song_templates table.

Usage

When the user asks to generate video templates for STH:

  1. Ask for the CSV file or content.
  2. Run the generator script:
    python3 sth_video_generator.py <csv_file>
    

Dependencies

Install required Python packages:

pip3 install google-cloud-storage

Requires ffmpeg and psql to be installed on the host system.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Multi Edge-TTS CN

Edge-TTS 在线语音合成 skill。基于微软 Edge TTS 引擎,生成速度快(1-2秒),支持多种音色和输出格式。同时支持飞书(OGG/Opus)和企业微信(AMR)。默认音色 xiaoxiao_lively。需联网。

Registry SourceRecently Updated
General

vedic-destiny

吠陀命盘分析中文入口。用于完整命盘研判、命主盘 Rashi chart 与九分盘 Navamsha chart 联读、既往事件回看、出生时间稳定度判断、事业主题、婚姻主题、时空盘专题,以及基于 Jagannatha Hora PDF、星盘截图或文本命盘数据的系统拆盘。当用户提到完整星盘、事业方向、婚姻问题、关系窗...

Registry SourceRecently Updated
General

One Person Company OS

Build a visual operating cockpit for an AI-native one-person company across promise, buyer, product, delivery, cash, learning, and assets. / 为 AI 一人公司建立可视化经营...

Registry SourceRecently Updated
General

健康追踪

健康追踪技能 - 追踪饮水、睡眠、步数等健康数据,JSON存储。

Registry SourceRecently Updated