# ペリカンのアニメトレーラー: Beak Velocity、すべてコードで制作

「自転車に乗るペリカン」ベンチマークが72秒のアクションアニメのトレーラーに。AIエージェントが作画も音楽もコードで制作。プロンプト、完成作品、Subclipでの手順を紹介。

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

## このプロンプトで作れるもの

このプロンプトは、有名な「自転車に乗るペリカン」ベンチマークを題材に、オリジナルのペリカンが主役の、大真面目な60〜75秒のアクションアニメのトレーラーを求めます。乗り方は物理的に正しくなければなりません: 正しいダイヤモンドフレームの自転車、ペダルに乗せた足がチェーンと後輪に同期してクランクを回し、翼はハンドルに置く。これをアニメーションの前に三面図とペダル1回転のシートで確認します。構成の案(コールドオープン、世界観カード、修行のモンタージュ、ライバル、下り坂のレース、覚醒、タイトルとおまけ映像)も示し、合成したロックの音楽を必須としています。

完成したのはBEAK VELOCITY、72秒。Claude Codeでclaude-sonnet-5-5を指定して作られました(RezはSonnet 5.6 (next)と表記)。マフラーを巻いたペリカンがハヤブサと山を駆け下りるレースで勝ち、おまけ映像では喉袋から11匹の魚がこぼれ出ます。

## プロンプト(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を他の4つのセッションと共有しながら制作(RezはSonnet 5.6 (next)と表記、claude-sonnet-5-5をxhighの推論レベルで指定)。エージェントは小さなWebGL2エンジンを書きました: ペリカン、ハヤブサ、自転車は毎フレーム数式から作るメッシュで、3トーンのセルシェーディングに加え、3840x2160でレンダリングするインクパスが線の先端を細く消していきます。スポークにはピクセル単位の回転ブラーがかかり、カープラス-ストロング法のギターからブラスまでの音楽は160 BPMでNode上で合成されるため、1拍がちょうど9フレームになります。リグの検証では、足とペダルの隙間が1.5 mm、後輪がクランク1回転あたり2.5回転で431ステップのペダリング全体にわたり固定されていることを計測し、順番を入れ替えた再レンダリングはピクセル差ゼロで一致しました。本人が挙げた弱点: 転倒シーンがごちゃごちゃに見える、並走するレースが追いにくい、翼が近くで見るとマネキンの腕のよう、手描きアニメというよりセルシェーディングの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のプロジェクトを作ります。プロンプトの最初のルールは守りましょう: まずキャラクターシートとペダル1回転のシートをレンダリングし、`view_frame`で確認してから、ようやくアニメーションに入ります。クランクが間違っていたら、ネタそのものが成立しません。
2. **ショットをレイヤーとして作る.** 各ショットは`add_runtime_layer`によるランタイムレイヤーで、`validate_runtime_layer_source`で検証します。インク、スピード線、スミア、2コマ打ちのタイミングは[HyperFramesモーションレイヤー](https://www.subclip.app/ja/agent-skills/community/hyperframes-motion-layers)と[カートゥーンアニメーション](https://www.subclip.app/ja/agent-skills/community/cartoon-animation)のスキルで扱っています。車輪の角度はクランクの角度から導き出し、タイムラインがどのフレームに飛んでも駆動系がずれないようにしましょう。
3. **3Dレンダラーを確認する.** オリジナルは4Kのインクパスを備えた、セルシェーディングのWebGL2エンジンを自作しています。レンダラーについては正直にお伝えします: Subclipのレイヤーレンダラーと書き出し処理で、WebGPUや重いWebGL2が動くかはまだ検証できていません。まず5秒のテストレイヤーを作り、プレビューと書き出したMP4の両方で確認し、どちらかが真っ黒になったり遅かったりした場合に備えて、Canvas2Dか素のWebGLの代替案を用意しておきましょう。
4. **音楽と効果音.** プロンプトは合成した音楽を求めているので、ファイルにレンダリングし、カットに合わせてアクセントが来るようオーディオアイテムとして配置します。フリーホイールのカチカチ音、チェーンの回転音、スキッド音、風切り音は、合成するか`search_public_audio`で見つけて、別のオーディオアイテムとして追加できます。
5. **講評して書き出す.** セクションが1つ終わるたびにエージェントに`get_timeline_contact_sheet`を依頼し、重要な瞬間(最初のフレーム、大きな変化のすべて、最後のフレーム)で`view_frame`を使わせます。静止画では動きの問題が見えないので、承認する前にプレビューで再生してください。転倒シーンと翼には[キャラクターアニメーションQA](https://www.subclip.app/ja/agent-skills/community/character-animation-qa)のチェックをかけ、`export_video`で書き出します。

## 関連するコミュニティスキル

- https://www.subclip.app/ja/agent-skills/community/cartoon-animation
- https://www.subclip.app/ja/agent-skills/community/character-animation-qa
- https://www.subclip.app/ja/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/ja/agent-skills/community/examples)