AI編成ラボ
← 使い方・実例

AIでスポーツカーのCMを作る

架空のスポーツカーがしぶきの中から現れ、夕日のトンネルへ走り出します。

11.5秒 · 音楽・効果音付き同じCMを2通りの作り方で見る ↓

同じ車のCMを、2通りの作り方で見る

7.5秒から後輪とトンネルの天井を見てください。上は元絵の画角が広がり、下は車が出口へ走り去ります。

上がA、下がB。元絵4枚・カットの長さ・音楽・効果音をそろえました。
A 車の形をそのまま見せたいとき
Codexで用意した絵をPillowで少しずつ切り取り、FFmpegで動画にしました。冒頭は元絵の約1.02倍から1.17倍へ寄ります。塗装やホイールの形を保ったまま、光の当たる面を大きく見せられます。
B しぶきが落ち、車が走る瞬間を見せたいとき
同じ4枚をComfyUIで開き、動画AIのWan 2.2に動きを指示しました。しぶきの向きが狙いと違ったので、撮り直しと逆再生で車が現れる順番を作り、FFmpegで音を合わせました。
Aを自分の編集アプリで試すには?

配布キットの4枚を並べ、3.5秒で車体、7.5秒で後ろ姿に切り替えます。冒頭の絵の最初と最後に「キーフレーム」(拡大率を記録する目印)を置き、約102%から117%へ。後ろ姿では116%から約102%へゆっくり引きます。掲載版はPillowで同じ操作を1コマずつ計算しました。

実際に入力した指示と生成設定を見る ↓

絵のどこが動いた?

同じカットの元絵と完成版

「加速」を選んで後輪を見てください。トンネルの照明は同じ場所に残り、車だけが出口へ小さくなっていきます。

黒い床の上で照明を反射して巻き上がる波の元絵
元絵 · 冒頭の波
完成映像 · 動きに合わせて、表示する元絵も切り替わります。

4枚の絵から車のCMを作る

まず、元絵だけで編集した版と動画AIを加えた版を同時に見る

  1. Codexで4枚の元絵を作る。 冒頭の波、しぶきのかかった車、しぶきのない車、後ろから見た車を描きました。車の見た目をそろえるため、後ろ姿は先に作った車の絵を参照しました。
  2. ComfyUIで動きを指示し、Wan 2.2で動画にする。 ComfyUIは元絵や指示文を選ぶ画面です。絵を動かす動画AIはWan 2.2。例えば後ろ姿の絵には、トンネルの出口に向かって車が加速する動きを付けました。
  3. FFmpegで11.5秒のCMに仕上げる。 屋根からしぶきが落ちる動画と、車体の側面が開く動画をそれぞれ逆再生し、車が姿を現す場面につなぎました。3.5秒で車が現れる瞬間に金属音、7.5秒で後ろ姿に切り替わる瞬間に加速音を重ねています。

車が現れる場面に、何と入力した?

最初の指示(原文の一部)
a broad glossy river of molten chrome sweeps forcefully INTO the unfinished rear half of the car
「未完成の車体後部へ、溶けた金属が勢いよく流れ込む」という指示です。実際には、しぶきは屋根から床へ落ちました。

撮り直しの指示(原文の一部)
the metal over the rear wheel arch PEELS UP as one huge thick, curved silver sheet
「後輪の上の金属が、分厚く湾曲した一枚の板のようにめくれ上がる」という指示です。この動きを逆再生して、車体が閉じていく場面を作りました。

Wan 2.2に入力した英語全文を読む・コピーする

配布キットの shot2-comfyui.json をComfyUIで開き、CLIP Text Encode のうちサンプラーの positive につながる欄に動きの指示を入れます。negative につながる欄には避けたい描写を入れます。

初回の指示(しぶきのある元絵)

Single cinematic shot of a fast physical transformation: an incomplete sleek silver grand touring concept car is being cast from moving liquid metal. Keep the low three-quarter framing and preserve the solid front half, one near wheel and the windshield. From the first instant a broad glossy river of molten chrome sweeps forcefully INTO the unfinished rear half of the car, curls over the rear fender and comes together into a smooth rear wheel arch and roof. Scattered metal beads travel distinct curved paths toward the forming body, join the surface and disappear into it. Large flowing ribbons visibly shorten as the body becomes solid, reflections ripple across the polished chrome. The headlights flash on and the completed coupe rolls forward a little on turning wheels. The polished black floor reflects the event. A very slow continuous lateral camera truck, no new cars. A tactile high-budget luxury concept car reveal in an amber-lit black studio.

撮り直しの指示(しぶきのない元絵)

Continuous locked-off low front three-quarter view in a dark amber automotive studio. Start with ONE finished, sculpted, perfectly polished silver GT coupe. Its own body visibly liquefies in a precise practical effect. From the very first instant the metal over the rear wheel arch PEELS UP as one huge thick, curved silver sheet, curling forward and outward. The wave rips the rear flank and the door skin with it, climbing over the roof and rolling toward the near front wheel; the outline of the side and roof actually collapses and is replaced by the arched crest of heavy liquid chrome. It throws a fan of connected ribbons and beads toward the lens. The rear turns into a large surge, no second solid car behind the wave, the nose remains recognizable for the first half and shines under a long moving strip reflection. By three seconds a rolling arc of molten chrome dominates the view where the side of the car was. Powerful legible transformation, clean high-speed stunt cinematography, neutral polished silver and amber specular reflections, the background tunnel lights remain rigid through the entire shot. One steady camera, wet black floor, no cuts.

避けたい描写(2回とも共通)

a still photograph, slow zoom on a static image, image slideshow, frozen motion, rotating the entire frame, letterboxing in the picture, morphing camera lens, wobbling rigid architecture, jitter, vertical flicker, duplicate car, extra wheels, bent wheels, broken headlights, generic flat whitewashed light, gritty digital noise, subtitles, text, watermark, logos, captions, human driver close-up, cuts, crash, flames

初回は study/shot2-comfyui.json、撮り直しはキット直下の shot2-comfyui.json を使います。

配布した元絵をComfyUIで動かす手順

公式の導入手順でWan 2.2の5Bモデルを用意します。下のZIPを展開し、元絵をComfyUIのinputフォルダーに置きます。shot1-comfyui.jsonを作業画面へドロップし、「Load Image」でshot1-input.pngを選んで「Run」を押すと、冒頭の波のカットを生成できます。ほかのカットとの対応はZIPの「はじめに」に記載しています。

4枚の元絵と生成設定を保存(ZIP・9.1 MB)
車が現れる動きを逆再生で作る

最初にできた動画では、車の屋根から床へしぶきが落ちました。次に、しぶきのない車の絵から、車体の側面が開く動画を作りました。この2本を逆再生し、完成映像の6.54秒から6コマかけて右から左へ切り替えると、最後に滑らかな車体が見えます。

上が最初の試作、下が本編に採用した車体カット。同じ4秒、無音。

使った元絵 車体と飛沫 / 仕上げ用の車体

スマホとPCでどこまで試せる?

スマホで見る・試す
元絵と動画を見比べ、指示文をコピーできます。このページから端末内でWan 2.2を動かす機能はありません。オンラインのComfy Cloudではサーバー側のGPUが生成を担当します。利用料金と使える機能はクラウド側の条件によります。
RTX 4090搭載PCでの実測
ビデオメモリ(VRAM)24 GBのPCで、撮り直しの動画113コマ(約4.71秒)を約3分8秒で生成しました。1,344×672画素、毎秒24コマ。4本の動画生成に計約12分8秒かかり、編集で11.5秒のCMにしました。元絵、音楽、編集にかかった時間は別です。
VRAMが8 GBのPCなら
ComfyUIの開発元は、5Bモデルを標準のメモリ退避機能で8 GBにも収められる見込みと案内しています。モデルの一部をGPUから移す方式です。このCMと同じ設定を8 GBのPCで動かした場合の時間は、今回の実測には含まれていません。ComfyUI公式の5Bモデルの説明
4本それぞれの生成時間と音の作り方

同じRTX 4090でWan 2.2 TI2V-5Bを使用。冒頭の波は101コマ(約4.21秒)を166秒で生成しました。残りは各113コマ(約4.71秒)で、しぶきのある車は187秒、撮り直しは188秒、トンネルの加速は186秒です。4本とも22ステップ、CFG 5でした。

制作中にGPU全体のメモリ使用量を約5秒間隔で58回記録し、観測中の最大は23,875 MiB(約23.3 GiB)でした。この値には同じGPUを使っていた他の処理も含まれるため、モデル単体の必要容量は読み取れません。

オリジナル曲は「Amber Vector」。FluidSynthとGeneralUser GSでハープ、ピアノ、弦、ホルンを鳴らしました。水滴や車の加速音はPythonで合成しています。

料金と制限

配布の元絵 + ComfyUI + Wan 2.2
手元のPCで動画を生成。ソフト月額0円、生成ごとの支払い・クラウドの消費クレジットは0でした。電気代とPC代は別です。
元絵から新しく作る場合
今回は既存のCodex環境で制作。ChatGPTの画像生成は無料プランでも使えます。生成上限はプランで変わります。Plusは米国Web月払い20米ドル(11月27日確認)。

モデル3ファイルを保存するため、ドライブには約18.14 GBの空き容量が必要です。実在する車の広告に使う際は、前後のカットでライトや車体の形状を製品資料と照合してください。モデルの利用条件はWan 2.2公式で確認できます。