# Аниме-трейлер про пеликана: Beak Velocity, сделанный целиком в коде

Бенчмарк "пеликан на велосипеде" стал 72-секундным экшн-аниме-трейлером: ИИ-агент анимировал его и написал музыку в коде. Промпт, результат и шаги в Subclip.

Canonical URL: https://www.subclip.app/ru/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: пеликан, сокол и велосипеды - это меши, которые каждый кадр строятся из математики, с cel shading в три тона и проходом обводки в 3840x2160, где линии сходят на нет. Спицы получают попиксельное вращательное размытие, а музыка, от гитары Карплуса-Стронга до духовых, синтезирована в Node на 160 BPM, так что один бит равен ровно 9 кадрам. Проверки рига показали зазор между лапой и педалью 1,5 мм и заднее колесо, сцепленное на 2,5 оборота за оборот шатуна, на 431 шаге педалирования; рендеры в перемешанном порядке совпали без единого отличающегося пикселя. Слабые места, названные агентом: авария читается как клубок, гонку бок о бок трудно отследить, крылья вблизи похожи на руки манекена, а фильм ощущается скорее как 3D с cel shading, чем как рисованное аниме.

Исходные файлы: 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/ru/agent-skills/community/hyperframes-motion-layers) и [cartoon animation](https://www.subclip.app/ru/agent-skills/community/cartoon-animation) описывают тушь, линии скорости, смазы и анимацию "на двойках". Выводите угол колеса из угла шатуна, чтобы трансмиссия оставалась сцепленной на любом кадре, на который прыгает таймлайн.
3. **Проверьте 3D-рендерер.** В оригинале написан собственный движок на WebGL2 с cel shading и проходом обводки в 4K. Скажем честно про рендерер: поддержка WebGPU и тяжёлого WebGL2 в рендерере слоёв Subclip и при экспорте пока не проверена. Сначала соберите тестовый слой на 5 секунд, проверьте его в превью и в экспортированном MP4 и держите наготове запасной вариант на Canvas2D или простом WebGL, если что-то выйдет пустым или медленным.
4. **Музыка и звуковые эффекты.** Промпт требует синтезированную музыку, поэтому отрендерите её в файл и положите как аудиоэлемент с акцентами на склейках. Треск свободного хода, жужжание цепи, заносы и свисты можно добавить отдельными аудиоэлементами, синтезированными или найденными через `search_public_audio`.
5. **Разбор и экспорт.** Просите агента вызывать `get_timeline_contact_sheet` после каждого готового раздела, а затем `view_frame` на важных моментах (первый кадр, каждое крупное превращение, последний кадр). Стоп-кадры скрывают проблемы движения, поэтому запустите превью, прежде чем что-либо одобрять. Прогоните проверки [character animation QA](https://www.subclip.app/ru/agent-skills/community/character-animation-qa) на аварии и крыльях, затем экспортируйте через `export_video`.

## Похожие навыки сообщества

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