# 鹈鹕动漫预告片：Beak Velocity，完全用代码制作

"鹈鹕骑自行车"基准测试变成一部 72 秒的动作动漫预告片，由 AI 智能体用代码制作动画和配乐。附提示词、成片效果和 Subclip 制作步骤。

Canonical URL: https://www.subclip.app/zh/agent-skills/community/examples/pelican-anime-trailer

## 它能做出什么

这个提示词拿著名的"鹈鹕骑自行车"基准测试做题材，要求做一部完全认真的 60 到 75 秒动作动漫预告片，主角是一只原创鹈鹕。骑车动作必须符合物理：正确的菱形车架，脚踩踏板转动曲柄，与链条和后轮同步，翅膀扶着车把，在开始动画之前先用角色转面图和踏板循环图检查。它建议了一个结构（冷开场、设定卡、训练蒙太奇、宿敌、下坡竞速、能力觉醒、片名和彩蛋），并要求合成一段摇滚配乐。

成果是 BEAK VELOCITY，时长 72 秒，在 Claude Code 中制作，指定模型为 claude-sonnet-5-5（Rez 标注为 Sonnet 5.6 (next)）。一只围着围巾的鹈鹕和一只游隼沿山道竞速下坡，最终获胜，片尾彩蛋里有十一条鱼从它的喉囊里倒出来。

## 提示词（prompt.md）

仓库中的 prompt.md 原文，一字未改。仓库里的每个模型拿到的都是同一个提示词。遇到 {{FOLDER}} 占位符时，发送前把它替换成一个空的输出文件夹。

```
Work through this task to the finished video in this turn. Don't stop to ask questions; make your own calls and note them in NOTES.md.

# "A pelican riding a bicycle": a badass anime trailer, made entirely in code

Output folder: `{{FOLDER}}` (create it; write only inside it).

## Goal
"Generate an SVG of a pelican riding a bicycle" is the famous meme benchmark for AI models: most of them draw a broken bike and a pelican that can't possibly ride it. Turn that pelican into the hero of a **badass anime trailer**, 60-75 seconds long. Play it completely straight, like a sports or action anime season trailer, with total sincerity and total hype. The joke is how seriously it takes itself.

## The hero
- An **original pelican** of your own design. No existing characters and no lookalikes.
- Big beak with a throat pouch, a long neck, webbed feet, and a strong anime silhouette: a determined eye with a highlight glint, and wind-swept feathers.
- Give it one signature accessory, such as a scarf, goggles or a headband, and maybe a scar.
- **Riding must be physically believable.** The bicycle is a correct diamond frame with two wheels, spokes, a chain, a crank and pedals, handlebars and a saddle. The pelican's feet are on the pedals, turning the crank in sync with the chain and the rear wheel. Its wings grip the bars. Getting this right is the whole point of the meme, so render a turnaround of the pelican on the bike and check the contact points before you animate.
- Optional: a rival of your own design, such as another bird on a sleeker bike.

## Suggested shape (change it if you have something better)
1. Cold open with a hook in the first 2 seconds: an extreme close-up of an eye opening, or a pedal clicking in.
2. Lore text cards (in code-drawn lettering, cut against the music), e.g. "They said a pelican could never ride."
3. Training montage: falling over, getting back up, rain, night roads.
4. The rival.
5. A mountain downhill race at a ridiculous speed: speed lines, sparks off the rim, sliding a hairpin, jumping a gap over a canyon or between rooftops.
6. The power-up moment: the aura ignites, wings spread, the beak opens in a silent scream.
7. Title card, then a short stinger gag after the title (for example, the pouch is full of fish).

## Anime look
- Cel shading with 2-3 tones, ink outlines with tapering line weight, and dramatic painted skies and backgrounds.
- Anime grammar:
  - speed lines, smear frames, and impact frames (ink-inverted, used sparingly)
  - camera shake, crash zooms and Dutch angles
  - held dramatic poses with a wind-blown hold
  - split-screen panels, and bold kinetic title typography
- Output 1920x1080 at **24 fps**. Animate the characters on twos (12 drawings per second) the way real anime does; camera moves and effects run on ones. The wheels must not look broken, so use motion blur or smear on the spokes.
- All lettering is drawn by your code (stroked or SDF letterforms). Don't use font files or system fonts. The title is yours to choose.

## Music and sound
- A hard-hitting, original anime-opening or trailer track synthesized in code, for example with numpy. Use no borrowed melodies.
- Arrangement: drums, distorted guitar (Karplus-Strong plus distortion), bass, strings and brass stabs, a riser into the drop, and a key change at the climax.
- Big hits synced to the cuts.
- Sound design: freewheel ticks, chain whir, wind roar, tire skids, whooshes and impacts.
- No TTS and no recorded or downloaded audio. A pelican squawk or a wordless battle cry synthesized in code is welcome if it sounds good.

## Rules
- Everything is made in code. No image, video, audio, font or 3D-model files, no generative models, no network requests, and no third-party characters.
- Make one self-contained index.html exposing `window.DURATION` and `window.renderAt(t)`. Each frame must be a deterministic, pure function of t. The renderer is up to you: Canvas2D, WebGL2 or WebGPU, with no libraries.
- Capture frame-exact with headless Edge or Chrome and pipe the frames to ffmpeg.
- Keep VRAM use reasonable and never kill processes you didn't start.

## Process and checks
1. Write TREATMENT.md first: the beats with timings, the pelican and bike design, the music plan, and the 3 moments meant to make people rewatch.
2. Render character_sheet.png: the pelican in 5 expressions, plus a pedal-cycle sheet showing the feet on the pedals across a full crank rotation. Check it before animating.
3. Build the film, then do at least 2 critique passes. Each pass:
   - render a contact sheet (one frame every 2 s) plus stills of the key moments, and look at them yourself
   - fix the weakest shots
   - be honest about whether it's actually badass and funny, or generic
4. Before delivery:
   - Luma audit: no unintended brightness pops between frames.
   - Flashes: at most 3 per second, with impact frames counted.
   - Audio: about −14 LUFS integrated, true peak ≤ −1 dBTP, no clipping.
   - Decode: full decode with `ffmpeg -v error` comes back clean, and audio and video durations match.

## Deliver (all in the output folder)
- index.html, plus src/ and tools/ with your source.
- pelican_trailer.mp4: H.264 crf 16, yuv420p, +faststart, AAC 320k.
- pelican_trailer_x.mp4: a smaller copy for X, around 8 Mbit/s.
- soundtrack.wav, contact_sheet.png, thumbnail.png, character_sheet.png.
- TREATMENT.md and NOTES.md: what you built, how it renders, the checks and their numbers, build time, and your honest list of weak spots.

Finish with a short reply giving the file paths, duration, sizes, loudness, and the 3 weakest moments.
```

## 生成结果

### Sonnet 5.6 (next): BEAK VELOCITY

指定模型: claude-sonnet-5-5. 运行环境: Claude Code (via T3 Code). 推理强度: xhigh. 制作用时: 138 分钟. GPU: NVIDIA GeForce RTX 5090. 渲染器: custom WebGL2 cel-shaded 3D engine with an ink pass, plus a Canvas2D layer for effects and lettering, written by the agent, no libraries. 视频: 1920x1080, 72 s.

视频: https://subclipweb.subclip.app/agent-skills/community/examples/pelican-anime-trailer/sonnet-5.6-next.mp4?v=3

联系表: https://subclipweb.subclip.app/agent-skills/community/examples/pelican-anime-trailer/sonnet-5.6-next-contact-sheet.jpg

在 Claude Code（通过 T3 Code）中用约 138 分钟制作，GPU 同时被另外四个会话共用（Rez 标注为 Sonnet 5.6 (next)；指定模型为 claude-sonnet-5-5，推理强度 xhigh）。智能体写了一个小型 WebGL2 引擎：鹈鹕、游隼和自行车都是每帧由数学公式生成的网格，三色赛璐珞着色，墨线描边通道以 3840x2160 渲染，线条末端逐渐收细到消失。辐条有逐像素的旋转模糊，配乐从 Karplus-Strong 吉他到铜管，在 Node 中以 160 BPM 合成，一拍正好 9 帧。骨骼检查测得脚与踏板的间隙为 1.5 毫米，后轮在 431 个踩踏步中始终锁定为曲柄每转一圈后轮转 2.5 圈；打乱顺序重新渲染后像素差异为零。自述弱点：撞车镜头看起来乱成一团，并排竞速不好看懂，近看翅膀像人体模特的手臂，整部片更像赛璐珞渲染的 3D 而不是手绘动漫。

原始文件：https://github.com/RezAIT00/agent-demos/tree/main/prompts/pelican-anime-trailer/generations/sonnet-5.6-next。我们的副本：https://github.com/subclip-app/agent-demos/tree/main/prompts/pelican-anime-trailer/generations/sonnet-5.6-next

## 在 Subclip 中制作

1. **先出设定图，再做镜头.** 通过 Subclip MCP 连接你的智能体，新建一个 1920x1080、24 fps 的项目，并遵守提示词的第一条规则：先渲染角色设定图和踏板循环图，用 `view_frame` 查看，然后才开始做动画。曲柄错了，整个笑点就失败了。
2. **把镜头做成图层.** 每个镜头都是用 `add_runtime_layer` 添加的运行时图层，并用 `validate_runtime_layer_source` 校验。[HyperFrames motion layers](https://www.subclip.app/zh/agent-skills/community/hyperframes-motion-layers) 和 [cartoon animation](https://www.subclip.app/zh/agent-skills/community/cartoon-animation) 技能讲解了墨线、速度线、拖影和一拍二的节奏。车轮角度要由曲柄角度推导，这样时间线跳到任何一帧，传动系统都保持锁定。
3. **检查 3D 渲染器.** 原版自己写了一个赛璐珞渲染的 WebGL2 引擎，带 4K 墨线描边通道。对渲染器要实事求是：Subclip 的图层渲染器和导出流程对 WebGPU 和重度 WebGL2 的支持尚未验证。先做一个 5 秒的测试图层，在预览和导出的 MP4 中都检查一遍，如果其中任何一个出现黑屏或卡顿，准备好 Canvas2D 或普通 WebGL 的备用方案。
4. **配乐和音效.** 提示词要求合成配乐，所以把它渲染成文件，作为音频项放入，让重音落在剪辑点上。飞轮的咔嗒声、链条的嗡嗡声、刹车打滑和呼啸声可以作为单独的音频项加入，可以合成，也可以用 `search_public_audio` 查找。
5. **评审和导出.** 每完成一个段落，就让智能体调用 `get_timeline_contact_sheet`，再对关键时刻（第一帧、每次大的变换、最后一帧）调用 `view_frame`。静帧看不出运动问题，所以批准之前要在预览里按播放看一遍。对撞车镜头和翅膀运行 [character animation QA](https://www.subclip.app/zh/agent-skills/community/character-animation-qa) 检查，然后用 `export_video` 导出。

## 相关社区技能

- https://www.subclip.app/zh/agent-skills/community/cartoon-animation
- https://www.subclip.app/zh/agent-skills/community/character-animation-qa
- https://www.subclip.app/zh/agent-skills/community/hyperframes-motion-layers

## 来源与署名

提示词和生成结果作者：**Rez**（[@RezAIT00](https://x.com/RezAIT00)），来自 [github.com/RezAIT00/agent-demos](https://github.com/RezAIT00/agent-demos)。我们的仓库副本：[github.com/subclip-app/agent-demos](https://github.com/subclip-app/agent-demos)。

原始提示词文件夹：https://github.com/RezAIT00/agent-demos/tree/main/prompts/pelican-anime-trailer。我们的副本：https://github.com/subclip-app/agent-demos/tree/main/prompts/pelican-anime-trailer

[全部示例](https://www.subclip.app/zh/agent-skills/community/examples)