搜索

PythonReactSEOPDF
OpenClaw

Code2Animation

AgentSaaS Video Editor Skill

etrobot0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install etrobot/code2animation

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

AgentSaaS Video Editor Skill

A comprehensive video editing and rendering skill that enables AI agents to create code-driven animations with text-to-speech narration and smooth transitions.

Purpose

This skill allows agents to:

  • Create and preview interactive video projects with animations
  • Generate TTS audio narration using Microsoft Edge TTS
  • Render complete videos with synchronized audio and visual effects
  • Support both portrait and landscape video formats
  • Apply smooth transition effects between media elements

Core Capabilities

1. Interactive Video Preview
  • Real-time preview of video projects in the browser
  • Playback controls for testing and debugging
  • Support for transitions, media clips, and timing adjustments
  • Frame-by-frame seeking for precise editing
  • Live transition preview with easing effects
2. Transition System
  • transitionIn: Each media defines its own entrance animation
  • Supported transitions: fade, zoom, slide2Left, slideUp, none
  • Easing: Built-in easeOutCubic for smooth slide and zoom animations
  • stayInClip: Media can persist throughout entire clip duration
  • Cross-clip transitions: Automatic handling of clip boundaries
3. TTS Audio Generation
  • Automated text-to-speech using Microsoft Edge TTS (msedge-tts)
  • Support for multiple voices (English and Chinese)
  • Word-level timing metadata for lip-sync and animations
  • Audio file caching for faster previews
4. Video Rendering
  • Automated frame-by-frame rendering using Puppeteer
  • FFmpeg integration for video encoding and audio mixing
  • 30 FPS output at 1920x1080 (landscape) or 1080x1920 (portrait)
  • Deterministic rendering for consistent results
  • Transition effects preserved in final output

Project Configuration Format

Media Item Properties
  • src: HTML filename in the footage directory
  • words: Trigger phrase from speech that activates this media
  • transitionIn: Entrance animation type (optional)
  • **transitionDuration...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/etrobot/code2animation
Version
—
Commit
d18bbe57cc1b777e008616b07ad64513042ee437
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

AgentSaaS Video Editor

Code-driven video creation with TTS narration and automated rendering.

Features

  • Interactive video preview with real-time playback controls
  • TTS audio generation using Microsoft Edge TTS
  • Automated frame-by-frame rendering (30 FPS, 1920x1080/1080x1920)
  • HTML/CSS animation support with deterministic timing
  • Portrait and landscape video formats

Quick Start

Prerequisites: Node.js 18+, FFmpeg

# Install dependencies
pnpm install

# Generate TTS audio
pnpm generate-audio agentSaasPromoVideo

# Preview in browser
pnpm dev

# Render final video
pnpm render agentSaasPromoVideo [--portrait]

Commands

pnpm dev                          # Start development server
pnpm generate-audio <projectId>   # Generate TTS audio files
pnpm render <projectId>           # Render landscape video (1920x1080)
pnpm render <projectId> --portrait # Render portrait video (1080x1920)

Project Structure

public/projects/<projectId>/
├── <projectId>.json      # Project configuration
├── footage/              # HTML/CSS media components
└── audio/                # Generated TTS files (MP3 + timing JSON)

public/video/             # Rendered output videos

Animation Guidelines

Supported patterns:

  • setTimeout-based style changes
  • CSS transitions (auto-converted to frame-based)
  • Typewriter effects with character timing
  • Fade in/out and slide animations

Best practices:

<!-- Auto-detected fade in -->
<div style="opacity: 0;">Content</div>
<script>
setTimeout(() => element.style.opacity = '1', 100);
</script>

System Requirements

  • FFmpeg: Video encoding and audio mixing
  • Chromium/Chrome: Headless rendering via Puppeteer
  • Internet: Microsoft Edge TTS service

Installation

FFmpeg
# macOS
brew install ffmpeg

# Linux
sudo apt-get install ffmpeg
Chromium (if needed)
npx puppeteer browsers install chrome
# or set custom path
export PUPPETEER_EXECUTABL...

来源内容

SKILL.md
# AgentSaaS Video Editor Skill

A comprehensive video editing and rendering skill that enables AI agents to create code-driven animations with text-to-speech narration and smooth transitions.

## Purpose

This skill allows agents to:
- Create and preview interactive video projects with animations
- Generate TTS audio narration using Microsoft Edge TTS
- Render complete videos with synchronized audio and visual effects
- Support both portrait and landscape video formats
- Apply smooth transition effects between media elements

## Core Capabilities

### 1. Interactive Video Preview
- Real-time preview of video projects in the browser
- Playback controls for testing and debugging
- Support for transitions, media clips, and timing adjustments
- Frame-by-frame seeking for precise editing
- Live transition preview with easing effects

### 2. Transition System
- **transitionIn**: Each media defines its own entrance animation
- **Supported transitions**: fade, zoom, slide2Left, slideUp, none
- **Easing**: Built-in easeOutCubic for smooth slide and zoom animations
- **stayInClip**: Media can persist throughout entire clip duration
- **Cross-clip transitions**: Automatic handling of clip boundaries

### 3. TTS Audio Generation
- Automated text-to-speech using Microsoft Edge TTS (msedge-tts)
- Support for multiple voices (English and Chinese)
- Word-level timing metadata for lip-sync and animations
- Audio file caching for faster previews

### 4. Video Rendering
- Automated frame-by-frame rendering using Puppeteer
- FFmpeg integration for video encoding and audio mixing
- 30 FPS output at 1920x1080 (landscape) or 1080x1920 (portrait)
- Deterministic rendering for consistent results
- Transition effects preserved in final output

## Project Configuration Format

### Media Item Properties
- **src**: HTML filename in the footage directory
- **words**: Trigger phrase from speech that activates this media
- **transitionIn**: Entrance animation type (optional)
- **transitionDuration...
README
# AgentSaaS Video Editor

Code-driven video creation with TTS narration and automated rendering.

## Features

- Interactive video preview with real-time playback controls
- TTS audio generation using Microsoft Edge TTS
- Automated frame-by-frame rendering (30 FPS, 1920x1080/1080x1920)
- HTML/CSS animation support with deterministic timing
- Portrait and landscape video formats

## Quick Start

**Prerequisites:** Node.js 18+, FFmpeg

```bash
# Install dependencies
pnpm install

# Generate TTS audio
pnpm generate-audio agentSaasPromoVideo

# Preview in browser
pnpm dev

# Render final video
pnpm render agentSaasPromoVideo [--portrait]
```

## Commands

```bash
pnpm dev                          # Start development server
pnpm generate-audio <projectId>   # Generate TTS audio files
pnpm render <projectId>           # Render landscape video (1920x1080)
pnpm render <projectId> --portrait # Render portrait video (1080x1920)
```

## Project Structure

```
public/projects/<projectId>/
├── <projectId>.json      # Project configuration
├── footage/              # HTML/CSS media components
└── audio/                # Generated TTS files (MP3 + timing JSON)

public/video/             # Rendered output videos
```

## Animation Guidelines

**Supported patterns:**
- setTimeout-based style changes
- CSS transitions (auto-converted to frame-based)
- Typewriter effects with character timing
- Fade in/out and slide animations

**Best practices:**
```html
<!-- Auto-detected fade in -->
<div style="opacity: 0;">Content</div>
<script>
setTimeout(() => element.style.opacity = '1', 100);
</script>
```

## System Requirements

- **FFmpeg**: Video encoding and audio mixing
- **Chromium/Chrome**: Headless rendering via Puppeteer
- **Internet**: Microsoft Edge TTS service

## Installation

### FFmpeg
```bash
# macOS
brew install ffmpeg

# Linux
sudo apt-get install ffmpeg
```

### Chromium (if needed)
```bash
npx puppeteer browsers install chrome
# or set custom path
export PUPPETEER_EXECUTABL...

相关技能

OpenClaw

openbotx

openbotx

An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...

OpenClaw

zsxq-digest

sealiu1997

OpenClaw skill for 知识星球 / ZSXQ digests with token-first auth and browser recovery.

OpenClaw

browser-use-skill

abczsl520

🌐 OpenClaw skill for Browser-Use — AI-powered browser automation for complex multi-step workflows (login, form filling, scraping, posting)