機能
ワークフロー
ソリューション
リソース
戻る

Veo3でのプロンプトの書き方:JSON、空間、YAML、通常のプロンプト手法を徹底比較

Veo3でのプロンプトの書き方:JSON、空間、YAML、通常のプロンプト手法を徹底比較

Veo3でのプロンプトの書き方:JSON、空間、YAML、通常のプロンプト手法を徹底比較

GoogleのVeo3は動画生成に革命をもたらしていますが、本当の魔法は、そのプロンプト手法を使いこなしたときに生まれます。この詳細なブログ記事では、JSON形式のプロンプト、空間プロンプト、YAMLプロンプト、通常のテキストプロンプトを比較します。それぞれの手法には独自の利点があり、理解することで動画制作のプロセスが変わるはずです。

Veo3のプロンプトを理解する

プロンプトとは、頭の中のビジョンをVeo3に伝える技術です。初心者でも経験豊富なクリエイターでも、適切な手法を選ぶことで出力結果が大きく変わります。それぞれの手法について、強み、弱み、最適な用途を見ていきましょう。より詳しいプロンプト手法については、こちらのブログ をご覧ください。

JSON形式のプロンプトとは?

JSON(JavaScript Object Notation)は、人間にも機械にも読みやすい、軽量で構造化されたデータ形式です。Veo3におけるJSON形式のプロンプトとは、動画の説明をJSONオブジェクトとして記述する手法です。カメラの動き、照明条件、キャラクターの動作、環境設定など、細部まで細かく指定できます。

たとえば、JSONプロンプトは次のようになります。

{
  "prompt": "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes.",
  "config": {
    "camera": {
      "angle": "wide-shot",
      "movement": "slow-pan across the landscape"
    },
    "environment": {
      "setting": "mystical alien world with floating islands",
      "elements": "vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights",
      "vibes": "dreamy, magical, otherworldly serenity"
    },
    "character": {
      "type": "astronaut in a futuristic suit",
      "action": "sleeping curled up on soft moss",
      "surroundings": "gentle magical creatures hovering nearby, emitting soft glows"
    }
  }
}
{
  "prompt": "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes.",
  "config": {
    "camera": {
      "angle": "wide-shot",
      "movement": "slow-pan across the landscape"
    },
    "environment": {
      "setting": "mystical alien world with floating islands",
      "elements": "vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights",
      "vibes": "dreamy, magical, otherworldly serenity"
    },
    "character": {
      "type": "astronaut in a futuristic suit",
      "action": "sleeping curled up on soft moss",
      "surroundings": "gentle magical creatures hovering nearby, emitting soft glows"
    }
  }
}
{
  "prompt": "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes.",
  "config": {
    "camera": {
      "angle": "wide-shot",
      "movement": "slow-pan across the landscape"
    },
    "environment": {
      "setting": "mystical alien world with floating islands",
      "elements": "vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights",
      "vibes": "dreamy, magical, otherworldly serenity"
    },
    "character": {
      "type": "astronaut in a futuristic suit",
      "action": "sleeping curled up on soft moss",
      "surroundings": "gentle magical creatures hovering nearby, emitting soft glows"
    }
  }
}

精度とコントロール:JSONでは正確なパラメーターを定義できるため、曖昧さが減り、モデルが意図を正しく理解できます。

構造化されたアプローチ:要素を明確な階層に整理することで、複雑なシーンも管理しやすくなります。

空間プロンプトとは?

空間プロンプトは、シーン内の要素の配置や相互作用に焦点を当てます。落書きや注釈などの視覚的な補助も使いながら、物がどこにあり、どう動くかを説明する手法です。たとえば、シンプルな指示で、宇宙飛行士が走る、ロケットが離陸するといった特定の動きをVeo3に生み出させることができます。アクションシーンや複数の物体が絡み合う場面など、動きとレイアウトが重要なダイナミックなシーンに最適です。

空間プロンプトをさらに詳しく知りたい方は、こちらのXの投稿をご覧ください。シンプルな指示と落書きで、動画の動きを正確にコントロールできる様子が紹介されています。

視覚的なコントロール:動きや配置を簡単に指示できます。

柔軟性:専門的な構文は不要で、わかりやすい説明や絵だけで伝えられます。

YAMLプロンプトとは?

YAML(YAML Ain’t Markup Language)は、JSONに似た構造化形式ですが、より読みやすい構文を持っています。Veo3での対応は公式には確認されていませんが、対応していれば、JSONと同等のコントロールが得られるでしょう。

仮定の例:

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings: gentle magical creatures hovering nearby, emitting soft glows
prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings: gentle magical creatures hovering nearby, emitting soft glows
prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings: gentle magical creatures hovering nearby, emitting soft glows

自然言語プロンプトとは?

この手法は、日常的な言葉でシーンを説明するもので、誰にでも使いやすく、わかりやすいのが特長です。初心者の方や、すぐに結果が欲しいときに最適です。

例:ゆっくりとしたドリーイン、ソフトフォーカスとフィルムグレインのある白黒のヴィンテージフィルム風。エドワード朝風の流れるようなドレスをまとった若い女性が、1900年代の豪華な応接室でグランドピアノを弾いている。カメラは、滑るように動く指から、揺らめくキャンデラブラの光に照らされた感情豊かな表情のクローズアップへと移動する。ベルベットのカーテン、金箔の家具、シャンデリアが、装飾的な影とともに視界に入り、そよ風が薄手のカーテンを揺らしている。ショパン風の物憂げなノクターンが、ソロピアノで流れる。アンティークの蓄音機で録音したような温かみのあるモノラル音で、かすかなノイズ、床のきしみ、遠くの時計の音も聞こえる。

ベストプラクティスとヒント

  • 具体的に書く:JSONでも空間的な説明でも、細部まで書くほど良い結果につながります。

  • 視覚的な補助を活用する:Xの投稿にあるように、空間プロンプトでは落書きや注釈を使いましょう。

  • シンプルに始める:自然言語から始めて、構造化された手法へと進みましょう。

  • 繰り返し改善する:出力結果をもとにプロンプトを磨きましょう。Veo3は試行錯誤に応えてくれます。

  • 音声も含める:音を描写すると、動画の没入感が高まります。

まとめ

Veo3のプロンプト手法を使いこなすことが、そのポテンシャルを引き出す鍵です。JSONは精度を、空間プロンプトは視覚的なコントロールを(Xの投稿が好例です)、YAMLは読みやすさを(対応している場合)、自然言語は手軽さをもたらします。プロジェクトのニーズに合った手法を選び、試しながらアプローチを磨いていきましょう。詳しいガイドは、 こちらのリソースをご覧ください。

楽しい動画制作を!

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

prompt: "An astronaut sleeping peacefully on a mystical world, surrounded by colorful glowing flowers and ethereal creatures, evoking creative space magical vibes."
config:
  camera:
    angle: wide-shot
    movement: slow-pan across the landscape
  environment:
    setting: mystical alien world with floating islands
    elements: vibrant glowing flowers in hues of neon blue and purple, shimmering ethereal lights
    vibes: dreamy, magical, otherworldly serenity
  character:
    type: astronaut in a futuristic suit
    action: sleeping curled up on soft moss
    surroundings

あなたの物語を伝える準備はできましたか?

あなたの物語を伝える準備はできましたか?

あなたの物語を伝える準備はできましたか?