AI編成ラボ

架空の水族館CM「空を泳ぐ日」

空を泳ぐクジラのCMを作る

雨の路面で出会ったクジラが、頭上を通って朝焼けの雲海へ。3枚の絵から12秒のCMを作りました。

完成版・12秒。水音と風の音をステレオで聴けます。

3枚の絵からクジラのCMを作る

クジラが頭上を通り過ぎる場面

ビル街の元絵を選び、ComfyUIの Motion / positive prompt に、頭が画面から抜ける動きを書きました。

Its massive head and ribbed throat pass first and move out of frame.

入力した英文の一部です。意味は「大きな頭と、ひだのある喉が先に通り、画面の外に抜ける」。できた映像では最初の1秒で頭が左上に抜け、白い胸びれが振れます。続いて腹が頭上を通ります。

3つの視点から描くCodexの画像生成で、濡れた路面から目をのぞかせるクジラ、街で真下から見上げた姿、雲海の上から見下ろした背中を1枚ずつ描きました。
絵に動きを付けるComfyUIは元絵と動きの指示を渡す作業画面。Wan 2.2は、その指示から動画を作るAIです。今回はCodexから手元のPCのComfyUIに指示を送り、1枚につき約5秒の動画を生成。
距離を音で伝えるPythonで水の泡、クジラの低い声を思わせる音、風を合成。胸びれが頭上を通るときは低音を強め、雲に抜けた場面では風の音を左右に広げました。音を聴く
12秒のCMにつなぐFFmpegで3本から使う場面を選び、路面、ビル街、雲海の順につなぎました。冒頭は左右を反転してクジラが進む向きをそろえ、最後は尾が遠ざかる動きをゆっくり見せて展覧会名を重ねています。

スマホで見る、自分のPCで作る

スマホでは、完成CMと各カットを再生し、英語の指示文をコピーできます。このページには、スマホ本体でWan 2.2を動かして動画を生成する機能はありません。今回の3カットは手元のPCで作りました。

制作に使ったPC Windows・RTX 4090(GPU用メモリ24 GB)で、各カットを1024×576、24 fps、121コマ、20ステップで生成。採用テイクの処理時間は、路面が2分40秒、ビル街が3分21秒、雲海が5分1秒でした。いずれも生成開始から完了までの実測で、待ち時間・作画・編集は別です。手元での動画生成に追加API料はかかっていません。既存のCodex契約、PC代、電気代は別です。

GPUが小さいPCや、クラウドで作るには?

ComfyUI公式は、モデルの一部をPC本体のメモリへ移す機能を使えば、Wan 2.2の5B版がGPU用メモリ8 GBにも収まる見込みと案内しています。このCMを8 GB機で作った場合の生成時間・画質は計測していません。下記のモデル3点で約18.1 GBという数字は、ファイルを置くためのストレージ容量です。ComfyUI公式の5B版の説明

手元のGPUを使わずに生成する方法もあります。Comfy Cloudではブラウザから素材と指示を渡し、サービス側のGPUで処理します。無料試用には条件と回数制限があり、使い続ける場合は有料契約です。この作品のクラウドでの所要時間・料金は測定していません。クラウドの使い方 / 公式料金と利用枠

雲海の5秒を作ってみる

最後の場面を手元で試すなら、元絵と設定を一緒に開くところから。雲の上で尾が上がる位置、飛沫の方向、生成サイズまで設定に入っています。

  1. ZIPを展開します。使うのは元絵 shot3.png と設定 shot3-comfyui.json です。英語の指示文もテキストで同梱しています。
  2. 手元のPCでComfyUIを起動します。初めてWan 2.2を使う場合は、ComfyUI公式のWan 2.2手順の5Bモデルを準備します。今回使ったモデル3点は合計約18.1 GBです。キットとは別に、初回にPCへ保存します。
    必要な3ファイルと配置先

    ComfyUIフォルダを基準に、次の名前で配置します。

    models/diffusion_models/wan2.2_ti2v_5B_fp16.safetensors
    models/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors
    models/vae/wan2.2_vae.safetensors
  3. 設定ファイルをComfyUIの作業画面へドラッグします。Start image の「画像をアップロード」から、展開した shot3.png を選びます。ファイル名がすでに表示されていても、初めて使うPCでは画像の登録が必要です。モデルをサブフォルダに置いた場合は、3つの読み込み欄で該当するファイルを選びます。
  4. Motion / positive prompt が「起こしたい動き」、Avoid / negative prompt が「避けたい描写」です。まずはそのまま画面の実行を押します。完了すると、標準設定では ComfyUI/output/sky-whale/ に約5秒の動画ができます。出力先を変更した場合は、その出力フォルダの sky-whale/ を開きます。

どの設定を使ったか

1024 × 576 px / 24 fps / 121フレーム
20ステップ / CFG 5 / uni_pc / simple
雲海のシードは 651479 に固定

使ったPCと各カットの生成時間

雲海カットのComfyUI設定画面。シード651479、20ステップ、CFG5、uni_pc、simple。
配布用の雲海カット設定を実際に開いた画面。

元絵1枚から、何が動いたか

各カットの下で、元絵を描く指示と、動画に動きを付ける指示の全文を読めます。

1. 雨の路面すれすれで、目が動く

動きの指示から抜粋すると、the enormous rostrum surges up and forward, once, pushing a white wall of water outwards.。「鼻先を一度ぐっと前方へ持ち上げ、白い水の壁を外へ押し出す」という指示です。元動画では冒頭で目と鼻先が右上へ動き、続いて路面に白い波が広がります。

カット1の元絵。雨の路面すれすれで、目が動く場面の最初の構図。
入力した静止画。原寸のPNGは下の制作キットに収録。
Wanが出力した約5秒。無音・編集前。

採用した生成の処理時間 160秒 / シード 651477 / 初回テイク

このカットに入力した指示文を読む・コピーする

元絵を作ったときの指示(Codex)

A single master frame for a lavish live-action cinematic VFX trailer for a fictional aquarium exhibition, widescreen 16:9 2048x1152. This is the impossible first frame: a real humpback whale's huge head is surfacing THROUGH a shallow rain puddle on an otherwise normal, rain-slick modern Japanese downtown avenue at blue-hour dawn. Shoot inches above the rippling asphalt, a dynamic 28mm extremely low angle. The dark blue-black living rostrum, wet naturally bumpy skin and a large anatomically correct glossy amber whale eye cross the near left/center foreground at an oblique angle, a curved mass breaking the surface, a white ventral pleat on the underside. Silvery water erupts into a clear curved sheet and suspended droplets backlit by a narrow gold ray of dawn. In the right distance a single tiny pedestrian under a vermilion umbrella and a lit office tower give unmistakable massive scale. The tops of the actual high-rise buildings are seen directly, some buildings also reflected broken in the puddle. Rich petrol blue shadows, silver highlights and a small ribbon of warm sunrise in the background. IMAX creature feature, lifelike photographic textures, elegant art direction, beautiful without grim horror, no threats, no damage, space reads immediately at phone size. One whale, identifiable head and eye not a human eye and not a giant disembodied eyeball, no teeth, no captions, no lettering, no branding or signage, no frame/collage, no UI. Visual staging has a clear crescent of flowing water so the subsequent moving shot can break the lens surface. No still life, no symmetrical composition.

動きを付けたときの指示(ComfyUI)

Huge humpback whale breaching into the sky from a street-sized rain puddle. Live action, one continuous shot from inches above the wet road. Movement from the opening frame: the enormous rostrum surges up and forward, once, pushing a white wall of water outwards. Its long wet pectoral fin sweeps back, dark pleated belly rolls into the light; water rivulets and separate droplets cascade down, momentarily splashing across the near lens. The whale lifts a whole body length past stationary streetlights, the waves chase each other across the foreground toward the low camera. The city stays solid behind it. Full weight, strong directional animal movement and splashes, natural exposure, theatrical fantasy photographed as real. The animal has one head, two fins, one tail. No cuts.

避けたい描写(ComfyUI)

still photograph, static slideshow, a Ken Burns camera zoom on a motionless subject, slow motion freeze frame, gelatinous body, distorted jaw, extra flippers, extra tail, missing tail, legged animal, duplicated whale, inconsistent scale, repeated action, sudden cuts, lettering, logos, underwater image, giant buildings melting, fire, blood, destruction.

2. ビルの間で、腹が頭上を通る

カメラを街路に置き、鼻先・胸びれ・腹の順に頭上を通す。冒頭はビルと並べて巨体の大きさを伝え、胸びれが振れるところまで見せました。

カット2の元絵。ビルの間で、腹が頭上を通る場面の最初の構図。
入力した静止画。原寸のPNGは下の制作キットに収録。
Wanが出力した約5秒。無音・編集前。

採用した生成の処理時間 201秒 / シード 651478 / 初回テイク

このカットに入力した指示文を読む・コピーする

元絵を作ったときの指示(Codex)

A single breathtaking photoreal live action Japanese science fantasy movie frame, landscape 16:9, no border and no typography. A physically lifelike enormous full-grown humpback whale breaches straight across the rain washed sky over a modern Japanese city intersection. Camera looks steeply up from very close to a wet road, from the level of a fallen leaf. Head on the LEFT with unmistakable knobbly rostrum, body in a powerful diagonal curve, tapering tail and horizontal flukes on the RIGHT, left long scalloped white pectoral flipper silhouetted down. The wet midnight charcoal-navy back and slate white ventral pleats have sharp biometric detail. Belly turns toward camera, sculptural highlights in ridges. Water is shedding from the broad back and torn-off droplets hang in mid-flight with backlit glints; this is a whale flying through actual air between buildings, clear air between its underside and the street. Frame the sides asymmetrically with real Japanese minimalist office towers and an older concrete facade, blank facades without signs, authentic street objects and road ramp. A single minuscule deep RED umbrella held by one bystander is a barely visible accent at ground level, not dominating the composition. Beautiful painterly soft slate-blue overcast sky with a narrow shaft of warm morning GOLD streaming from the far end of the street. Sense of heavy motion and surprising gravity, evocative photographic cinema film stock with controlled highlights, true blue shadows, atmospheric depth, realistic whale anatomy with ONLY two flippers and 1 tail. Wide 18mm lens, low canted angle, a full whale silhouette very large in frame and ample headroom to the left for flight. No ocean at street level, no elevated horizontal water surface, no sci-fi wings or vehicles, no destruction, no letters, billboards, logos or watermarks. Output only the image, one shot.

動きを付けたときの指示(ComfyUI)

An enormous humpback whale powerfully sweeps overhead, almost brushing the lens. Low camera looking directly up the canyon between rainy office towers. It is ALREADY moving in the opening frame. Its massive head and ribbed throat pass first and move out of frame. The camera tracks and tilts under the whale as the long white pectoral fin swings down and back very close to us, briefly eclipsing the sky. Its arched belly continues overhead. Muscle motion runs down the caudal peduncle and the broad flukes whip past; water streaks rain from the skin toward the lens. Strong relative change between the near moving animal and distant rigid towers. One continuous uninterrupted cinematic shot, realistic immense weight, no camera zoom.

避けたい描写(ComfyUI)

still photograph, static slideshow, a Ken Burns camera zoom on a motionless subject, slow motion freeze frame, gelatinous body, distorted jaw, extra flippers, extra tail, missing tail, legged animal, duplicated whale, inconsistent scale, repeated action, sudden cuts, lettering, logos, underwater image, giant buildings melting, fire, blood, destruction.

3. 朝日を追い、尾が雲へ消える

動きの指示から抜粋すると、the dark wide tail lifts, bends and drives down through the dense clouds。「幅の広い尾を持ち上げ、曲げて、厚い雲の中へ振り下ろす」という指示です。出来上がった映像では、冒頭で尾が持ち上がり、両端から金色の水煙が広がります。

カット3の元絵。朝日を追い、尾が雲へ消える場面の最初の構図。
入力した静止画。原寸のPNGは下の制作キットに収録。
Wanが出力した約5秒。無音・編集前。

採用した生成の処理時間 301秒 / シード 651479 / 初回テイク

このカットに入力した指示文を読む・コピーする

元絵を作ったときの指示(Codex)

One powerful panoramic 16:9 still from a photoreal Japanese magic-realist feature film; aerial finale. From several hundred metres above a city, a camera that has just overtaken a magnificent huge living humpback whale is pitched steeply downward and back over its broad wet charcoal-navy back. The whale swims through open AIR above a lower sea of rolling fibrous mist-clouds, diagonal across the frame: strong noble knobbly head pointed toward the UPPER LEFT part of the shot, tapering tail and anatomically correct horizontal flukes nearer the viewer in the lower RIGHT. The back's water droplets and natural pale scars around the dorsal ridge glisten, its long white pectoral flipper is partly visible along the left side, there is a thin glimpse of pale ventral pleating, realistic small dorsal fin. Beautiful luminous transparent water streams peel off the tail and break apart into small distinct beads in the wind; a loose diagonal trail narrates its speed. Vast elevated aerial view of a sculptural layered turquoise-blue cloud deck, a few tiny city towers barely visible in gaps way down, deeply atmospheric perspective. A strong sunrise grazes the frame from the LEFT TOP edge so billowing cloud ridges and the wet back have warm molten-gold highlights, still keeping glorious teal and steel-blue shadows. Vivid and expansive, giant-scale but recognisable animal, use a natural mid-wide photographic lens, optical softness over distance and incredible documentary detail on the skin. Make the whale effectively occupy ~50% of composition for easy recognition even at thumbnail; leave flight space beyond its head. Cinematic imagery with no black bars, no text, no watermarks or brand names. Clouds are soft CLOUDS, not an ocean or horizon of water; no plane-like wings, no upright fighter fins or stylised anatomical distortions. No roads or street-level perspective.

動きを付けたときの指示(ComfyUI)

A single colossal humpback whale surges away into a pale sunrise sea of clouds. At the very first moment its back arches strongly forward, a wave travels along the body, the dark wide tail lifts, bends and drives down through the dense clouds, leaving an immense curling wake of white mist and spray clearly moving across the foreground. Aerial tracking camera follows low behind at an angle, sunlight rings the wet trailing edge of the two flukes against the gold. The body recedes into the bright cloud gap; dense suspended mist from the tail rolls across the lens. Very tangible speed and mass. Single continuous high-end natural-history cinematography, a restrained teal and honey palette. No cuts. No typography.

避けたい描写(ComfyUI)

still photograph, static slideshow, a Ken Burns camera zoom on a motionless subject, slow motion freeze frame, gelatinous body, distorted jaw, extra flippers, extra tail, missing tail, legged animal, duplicated whale, inconsistent scale, repeated action, sudden cuts, lettering, logos, underwater image, giant buildings melting, fire, blood, destruction.

どこで切るか、どこで鳴らすか

路面の目、ビル街で迫る腹、朝焼けの飛沫、最後のタイトルを含む完成映像の6コマ。
完成版から抜き出した6コマ。数字は完成映像の再生位置です。
  1. 0.00秒、路面。 元動画1の0.00〜2.58秒を使用。目から水が落ちる動きを冒頭に置き、泡の破裂音に続いて低い水圧音を入れました。冒頭の路面カットは左右反転して、次のカットと頭の抜ける方向をそろえました。
  2. 2.58秒、街を真下から。 元動画2の0.00〜3.50秒を使用。頭が抜けて胸びれが通る場面で低音を強め、完成版の4.42秒に飛沫の音を合わせました。
  3. 6.08秒、雲海へ。 元動画3の0.00〜5.04秒を使用。最後の44フレームを3分の2の速さに落とし、尾が遠ざかる余韻をつくりました。風を左右に広げ、9.71秒から画面左下に展覧会のタイトルを重ねました。H.264映像とAACステレオ音声を1本のMP4に書き出しました。

自分のPCで同じCMを書き出す

次の動画3本と編集キットを保存します。ZIPを展開し、3本を同じフォルダへ置き、FFmpegを使えるターミナルでREADMEの1行を実行します。カットの長さ、タイトル、水音も完成版と同じタイミングで入ります。

音だけで聴く

冒頭の小さな泡、胸びれが迫る低音、雲の上で左右に広がる風の順に聴けます。Pythonで波形とノイズを重ねたオリジナル音源です。