Skip to content

短视频生成

基于 Google Veo 3.1 / Veo 3.1 Fast 的产品短视频生成能力,专为跨境电商场景调优。

模型矩阵

引擎实际模型时长速度适用场景
Veo 3.1Google Veo 3.14 / 8 / 16s较慢,质量高主推视频、广告素材
Veo 3.1 FastGoogle Veo 3.1 Fast4 / 8s较快,质量良好批量生成、A/B 测试

视频参数

参数可选值推荐
宽高比16:9 / 9:16 / 1:1取决于平台(YouTube=16:9, TikTok=9:16, IG=1:1)
时长4s / 8s / 16s8s(短视频投流最佳)
帧率24 / 30 fps30 fps(移动端更顺滑)
输出格式MP4 (H.264)通用兼容

提示词工程

推荐模板结构

text
Subject: [商品本体]
Scene: [使用场景 + 环境氛围]
Camera: [运镜方式]
Action: [动作 / 故事弧线]
Mood: [情绪基调]
Music: [背景音乐参考]

Aspect ratio: [比例]
Duration: [时长]

实战示例

text
Subject: 3-tier stainless steel kitchen rack, foldable
Scene: Modern small Tokyo apartment kitchen, morning sunlight
       streaming through curtains, minimalist Japanese aesthetic
Camera: Slow dolly-in from front-left, ending with top-down
        hero shot at 5s mark
Action: Hand reaches in, places folded rack on counter,
        opens three tiers in one smooth motion (1-3s),
        gently arranges coffee mug + spice bottles (3-7s),
        camera lifts to reveal organized scene (7-8s)
Mood: Warm, inviting, real-life Japanese morning ritual
Music: Soft ambient piano, gentle morning vibe (ref: Joe Hisaishi)

Aspect ratio: 16:9
Duration: 8 seconds
text
Subject: 4-season family camping tent, 6-person, free-standing
Scene: Mountain valley campsite at golden hour, distant
       snow-capped peaks, pine forest backdrop
Camera: Drone aerial pull-out, starting tight on tent,
        revealing landscape over 8 seconds
Action: Family of 4 (parents + 2 kids) emerges from tent
        in coordinated puffy jackets, kids run toward
        campfire, parents wave at camera
Mood: Adventurous, family-bonding, premium outdoor lifestyle
Music: Cinematic acoustic guitar swell (ref: The Lumineers)

Aspect ratio: 16:9
Duration: 8 seconds
text
Subject: Smart hydration bottle, 750ml, with LED reminder ring
Scene: Modern home office, soft afternoon light, plants on desk
Camera: Macro close-up start, smooth pull-back to reveal
        person at standing desk
Action: LED ring on bottle pulses blue (0-2s), hand reaches
        in, lifts bottle, takes a sip (2-5s), places back,
        LED resets to subtle green (5-8s)
Mood: Healthy, productive, premium tech lifestyle
Music: Subtle electronic ambient (ref: Tycho)

Aspect ratio: 9:16
Duration: 8 seconds

生成流程

text
用户输入 Prompt

    ├──[1] POST /api/generate/video
    │       Go 后端:
    │       - 校验 video 配额
    │       - 注入 GraphRAG 上下文(如 SUITABLE_FOR 场景)
    │       - 路由到 Veo 3.1 / Fast 供应商

    ├──[2] 后端代理调用 Veo API
    │       (视频较大,必须服务端代理)

    └──[3] 流式返回进度 + 最终 MP4 URL

与图片生成的差异

  • 图片:浏览器直连(节省带宽)
  • 视频:后端代理(视频文件大、需要持久化存储 URL)

视频应用场景

平台比例时长用途
TikTok / Reels9:168-16s引流短视频
YouTube Shorts9:168-15s算法推荐
Amazon Listing1:1 / 16:915-60s主图旁视频
Instagram Feed1:1 / 4:54-8sFeed 流广告
Facebook Ads16:9 / 1:18-15s投流素材

质量与成本平衡建议

创作策略

  1. 首选 Veo 3.1 Fast 做批量预览(10 个不同脚本)
  2. 挑选最优 2-3 个 用 Veo 3.1 高质量重生
  3. Veo 3.1 + 8s 是 ROI 最高组合

配额管理

视频生成消耗 video 类配额:

text
Veo 3.1(4s)   = 1 video
Veo 3.1(8s)   = 1 video
Veo 3.1(16s)  = 2 video
Veo 3.1 Fast    = 1 video(不分时长)

历史与下载

操作说明
预览内嵌 HTML5 video 播放
下载单击下载 MP4 文件
重新生成同 Prompt 不同种子
修改 Prompt微调后再生成

视频文件直接由供应商 CDN 提供,本地仅保存 URL 引用(节省 IndexedDB 空间)。

下一步

基于 MIT 协议开源 · 中国大学生计算机设计大赛软件应用与开发类作品