当前位置: 首页 > Skill >

Video Ad Creation

Video Ad Creation

Video Ad Creation

使用 Remotion 制作视频广告;用户提到 video ad、create ad video、ad creative video、promo 等关键词时触发。

1.0.0 2026.11.19 793
获取Skill文件查看使用说明
作 者:江景 许可证: 更新时间:2026.11.19
本文目录展开

Video Ad Creation

You help users create video advertisements using React and Remotion. Your goal is to produce ad compositions in standard durations (15s, 30s, 60s) with compelling scene-based storytelling -- hook, value proposition, and call-to-action -- optimized for digital advertising platforms.

Before Starting

Check for product marketing context first: If .agents/product-marketing-context.md exists (or .claude/product-marketing-context.md in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

Understand what the user needs (ask if not provided):

  1. Ad duration -- 15s, 30s, or 60s
  2. Product or service -- what is being advertised
  3. Key message and CTA -- the main value proposition and desired action
  4. Brand assets -- logo, colors, fonts
  5. Target platform -- web, social, TV, or pre-roll

Workflow

Step 1: Choose Ad Format

Present the three standard ad durations:

Duration Frames (60fps) Scenes Best For
15s 900 3 Social ads, bumper ads, retargeting
30s 1800 4 Standard digital ads, pre-roll
60s 3600 5 Brand storytelling, product demos, explainers

Default resolution: 1920x1080 (landscape). Default FPS: 60.

For detailed format specifications and scene timing breakdowns, read references/formats.md.

Step 2: Plan Scene Structure

Each ad duration has a recommended scene structure:

15s ad (3 scenes):

  • Hook (3s / 180 frames): Grab attention immediately
  • Value Prop (9s / 540 frames): Showcase the product or key benefit
  • CTA (3s / 180 frames): Clear call-to-action with brand

30s ad (4 scenes):

  • Hook (5s / 300 frames): Attention-grabbing opener
  • Problem (7s / 420 frames): Present the pain point
  • Solution (13s / 780 frames): Show how the product solves it
  • CTA (5s / 300 frames): Call-to-action with brand reinforcement

60s ad (5 scenes):

  • Hook (5s / 300 frames): Bold opener to stop the scroll
  • Problem (10s / 600 frames): Deep dive into the pain point
  • Solution (20s / 1200 frames): Product demonstration and benefits
  • Social Proof (15s / 900 frames): Testimonials, stats, trust signals
  • CTA (10s / 600 frames): Strong call-to-action with brand outro

Step 3: Register Composition

Register the ad as a Composition in src/Root.tsx:

import { Composition } from "remotion";
import { AdVideo } from "./AdVideo";

export const RemotionRoot: React.FC = () => {
  return (
    <Composition
      id="VideoAd15s"
      component={AdVideo}
      durationInFrames={900}
      fps={60}
      width={1920}
      height={1080}
      defaultProps={{
        headline: "Your Product",
        cta: "Learn More",
        brandColor: "#0066FF",
      }}
    />
  );
};

For 30s ads, use durationInFrames={1800}. For 60s ads, use durationInFrames={3600}.

Step 4: Build Scene Components

Each scene is a separate React component composed with <Sequence> for timeline positioning:

import { useCurrentFrame, useVideoConfig, interpolate, spring, AbsoluteFill, Sequence } from "remotion";

const HookScene: React.FC<{ headline: string }> = ({ headline }) => {
  const frame = useCurrentFrame();
  const { fps } = useVideoConfig();

  const scale = spring({ frame, fps, config: { damping: 12, stiffness: 100 } });
  const opacity = interpolate(frame, [0, 20], [0, 1], { extrapolateRight: "clamp" });

  return (
    <AbsoluteFill style={{ justifyContent: "center", alignItems: "center", backgroundColor: "#0066FF" }}>
      <h1 style={{ opacity, transform: `scale(${scale})`, fontSize: 72, color: "white" }}>
        {headline}
      </h1>
    </AbsoluteFill>
  );
};

Compose scenes on the ad timeline:

export const AdVideo: React.FC<{ headline: string; cta: string; brandColor: string }> = (props) => {
  return (
    <AbsoluteFill>
      <Sequence durationInFrames={180}>
        <HookScene headline={props.headline} />
      </Sequence>
      <Sequence from={180} durationInFrames={540}>
        <ValuePropScene />
      </Sequence>
      <Sequence from={720} durationInFrames={180}>
        <CTAScene cta={props.cta} brandColor={props.brandColor} />
      </Sequence>
    </AbsoluteFill>
  );
};

Each <Sequence> resets useCurrentFrame() to 0 for its children, so each scene animates independently.

Step 5: Render

Render the ad locally:

npx remotion render src/index.ts VideoAd15s out/ad-15s.mp4

For different durations, register additional compositions and render each:

npx remotion render src/index.ts VideoAd30s out/ad-30s.mp4
npx remotion render src/index.ts VideoAd60s out/ad-60s.mp4

Preview in browser before rendering:

npx remotion preview src/index.ts

See tools/integrations/remotion.md for the full CLI command reference.

Output Format

Deliver a working ad composition with:

  1. src/Root.tsx -- Composition registration with correct duration, fps, and dimensions
  2. Scene components -- One .tsx file per scene (HookScene, ValuePropScene, CTAScene, etc.)
  3. Render command -- The exact npx remotion render command for the chosen duration
  4. Preview command -- npx remotion preview src/index.ts for browser preview

Related Skills

  • remotion-best-practices: Project setup, core APIs, animation patterns, rendering pipeline
  • social-video-content: Social platform video formats (vertical, square, landscape)

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • Video Ad Creation
    • Before Starting
    • Workflow
      • Step 1: Choose Ad Format
      • Step 2: Plan Scene Structure
      • Step 3: Register Composition
      • Step 4: Build Scene Components
      • Step 5: Render
    • Output Format
    • Related Skills
  • 项目或源文件

相关 Skill

更多
Generate Legal Services Ad Creative Brief Generate Legal Services Ad Creative Brief 为律师、合规部门及法务运营团队定制广告视觉和文案,推广法律服务。
Generate Brand Design Ad Creative Brief Generate Brand Design Ad Creative Brief 规划营销活动视觉和创意点,用于品牌设计推广。适用于设计师、品牌团队、电商运营人员的付费营销活动规划。
Generate Operations Ad Creative Brief Generate Operations Ad Creative Brief 为运营团队、代理商和企业创建针对性的广告简报,概述视觉元素和吸引点,以支持付费营销活动规划。
saas-founder-content-writer saas-founder-content-writer Use this skill when a SaaS founder, indie hacker, or product builder wants to turn product updates, user pain points, technical lessons, launches, or founder observations into high-signal posts for X, Reddit, LinkedIn, or Xiaohongshu (小红书). Covers build-in-public updates, problem-led posts, launch/changelog posts, and feedback requests, including HTML/CSS-rendered covers and data cards for image-first platforms. Not for generic marketing copy or ad creative.
Admapix 1.0.13 Admapix 1.0.13 Ad creative search assistant. Results displayed via api.admapix.com. Triggers on keywords like: 找素材, 搜广告, 广告视频, 创意素材, 竞品广告, ad creative, search ads, find cre...