AgentSkillsCN

elements-composition

使用 Editframe Elements 创建视频合成。适用于在处理 ef-timegroup、ef-video、ef-audio、ef-image、ef-text、ef-captions、ef-waveform、ef-surface 等组件,或构建时间轴、生成字幕/转写时使用。

SKILL.md
--- frontmatter
name: elements-composition
description: Create video compositions with Editframe Elements. Use when working with ef-timegroup, ef-video, ef-audio, ef-image, ef-text, ef-captions, ef-waveform, ef-surface, building timelines, or generating captions/transcriptions.
license: MIT
metadata:
  author: editframe
  version: "1.0"

Editframe Elements

Quick Start

html
<ef-configuration api-host="..." media-engine="local">
  <ef-timegroup mode="sequence" workbench>
    <!-- elements here -->
  </ef-timegroup>
</ef-configuration>

Duration Units

5s (seconds) | 1000ms (milliseconds) | 2m (minutes)

Getting Started

Elements

Advanced Features

Tools

Programmatic Rendering

Scene Structure

html
<ef-timegroup mode="sequence" overlap="1s" workbench>
  <!-- Scene 1 -->
  <ef-timegroup mode="fixed" duration="5s" class="absolute w-full h-full">
    <ef-video src="intro.mp4" class="size-full object-cover"></ef-video>
    <ef-text class="absolute top-8 text-white text-3xl">Title</ef-text>
  </ef-timegroup>

  <!-- Scene 2 with transition -->
  <ef-timegroup mode="fixed" duration="5s" class="absolute w-full h-full">
    <ef-video src="main.mp4" sourcein="10s" sourceout="15s" class="size-full"></ef-video>
    <ef-audio src="music.mp3" volume="0.3"></ef-audio>
  </ef-timegroup>
</ef-timegroup>

Styling

Elements use standard CSS/Tailwind. Position with absolute, size with w-full h-full or size-full.