Comment écrire des prompts avec Veo3 : comparatif complet des techniques de prompt JSON, spatiales, YAML et classiques
Comment écrire des prompts avec Veo3 : comparatif complet des techniques de prompt JSON, spatiales, YAML et classiques
Comment écrire des prompts avec Veo3 : comparatif complet des techniques de prompt JSON, spatiales, YAML et classiques
Veo3 de Google révolutionne la génération vidéo, mais la vraie magie opère quand vous maîtrisez ses techniques de prompt. Dans cet article de blog approfondi, nous comparons le prompt au format JSON, le prompt spatial, le prompt YAML et le prompt en texte classique. Chaque méthode offre des avantages uniques, et bien les comprendre peut transformer votre processus de création vidéo.
Comprendre le prompting dans Veo3
Le prompting est l'art de communiquer votre vision à Veo3. Que vous soyez débutant ou créateur chevronné, choisir la bonne technique peut avoir un impact considérable sur votre résultat. Décortiquons chaque méthode et explorons ses forces, ses faiblesses et ses cas d'usage idéaux. Vous trouverez des techniques de prompt plus détaillées dans cet article de blog.
Qu'est-ce que le prompt au format JSON ?
JSON (JavaScript Object Notation) est un format de données structuré et léger, à la fois lisible par l'humain et adapté aux machines. Dans le contexte de Veo3, le prompt au format JSON consiste à rédiger la description de votre vidéo sous forme d'objet JSON. Cette méthode permet de préciser des détails très fins comme les mouvements de caméra, les conditions d'éclairage, les actions des personnages et les décors.
Par exemple, un prompt JSON pourrait ressembler à ceci :
{
"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"
}
}}
Précision et contrôle : JSON vous permet de définir des paramètres exacts, ce qui réduit l'ambiguïté et garantit que le modèle comprend votre intention.
Approche structurée : en organisant les éléments selon une hiérarchie claire, il est plus facile de gérer des scènes complexes.
Qu'est-ce que le prompt spatial ?
Le prompt spatial se concentre sur l'agencement et l'interaction des éléments au sein d'une scène. Il s'agit de décrire où se trouvent les objets et comment ils bougent, souvent à l'aide d'aides visuelles comme des griffonnages ou des annotations. Par exemple, il montre comment de simples instructions peuvent guider Veo3 pour créer des mouvements précis, comme un astronaute qui court ou une fusée qui décolle. Idéal pour les scènes dynamiques où le mouvement et la disposition sont essentiels, comme les séquences d'action ou les interactions entre plusieurs objets.
Pour approfondir le prompt spatial, consultez ce post sur X, qui montre comment de simples instructions et des griffonnages peuvent contrôler précisément le mouvement d'une vidéo.
Contrôle visuel : dirige facilement le mouvement et le placement,
Flexibilité : pas besoin de syntaxe technique, de simples descriptions ou dessins suffisent.
Qu'est-ce que le prompt YAML ?
YAML (YAML Ain’t Markup Language) est un autre format structuré, proche de JSON mais avec une syntaxe plus lisible. Il n'est pas officiellement confirmé pour Veo3, mais s'il était pris en charge, il offrirait le même niveau de contrôle que JSON.
Exemple hypothétique :
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 withfloating islands
elements:vibrant glowing flowersinhuesof neon blue and purple,shimmering ethereal lights
vibes:dreamy,magical,otherworldly serenity
character:
type:astronautina 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 withfloating islands
elements:vibrant glowing flowersinhuesof neon blue and purple,shimmering ethereal lights
vibes:dreamy,magical,otherworldly serenity
character:
type:astronautina 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 withfloating islands
elements:vibrant glowing flowersinhuesof neon blue and purple,shimmering ethereal lights
vibes:dreamy,magical,otherworldly serenity
character:
type:astronautina futuristic suit
action:sleeping curled up on soft moss
surroundings:gentle magical creatures hovering nearby,emitting soft glows
Qu'est-ce que le prompt en langage naturel ?
Cette méthode utilise le langage courant pour décrire votre scène, ce qui la rend accessible et directe. Elle est parfaite pour les débutants ou quand vous avez besoin d'un résultat rapide.
Exemple : travelling avant lent, rendu de film vintage en noir et blanc avec flou doux et grain de pellicule. Une jeune femme en robe édouardienne fluide joue du piano à queue dans un somptueux salon des années 1900. La caméra passe de ses doigts qui glissent sur le clavier à un gros plan de son visage expressif, éclairé par la lueur vacillante des candélabres. Des rideaux de velours, des meubles dorés et des lustres apparaissent dans le champ, avec des ombres ornementées et une brise légère qui agite les voilages. Un nocturne mélancolique dans le style de Chopin résonne au piano solo, enregistré comme sur un phonographe ancien, avec un son mono chaleureux, un léger crépitement, des craquements de parquet et le tic-tac lointain d'une horloge.
Bonnes pratiques et conseils
Soyez précis : le détail donne de meilleurs résultats, que ce soit en JSON ou dans des descriptions spatiales.
Exploitez les aides visuelles : utilisez des griffonnages ou des annotations pour le prompt spatial, comme dans le post sur X.
Commencez simplement : débutez avec le langage naturel, puis passez progressivement aux méthodes structurées.
Itérez : affinez vos prompts en fonction des résultats, car Veo3 récompense l'expérimentation.
Intégrez l'audio : décrivez les sons pour renforcer l'immersion de la vidéo.
Conclusion
Maîtriser les techniques de prompt de Veo3 est la clé pour exploiter tout son potentiel. JSON offre la précision, le prompt spatial apporte le contrôle visuel (comme l'illustre le post sur X), YAML promet la lisibilité (s'il est pris en charge) et le langage naturel garantit la simplicité. Choisissez la méthode qui correspond aux besoins de votre projet et expérimentez pour affiner votre approche. Pour un guide complet, consultez cette ressource.
Bonne création vidéo !
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