veo-use
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVeo Use
Veo 使用指南
Use this skill to generate and edit videos using Google's Veo models ( and ).
veo-3.1veo-2.0This skill uses portable Python scripts managed by .
uv使用此Skill通过Google的Veo模型(和)生成和编辑视频。
veo-3.1veo-2.0本Skill使用由管理的可移植Python脚本。
uvPrerequisites
前提条件
Ensure you have one of the following authentication methods configured in your environment:
-
API Key:
- or
GOOGLE_API_KEYGEMINI_API_KEY
-
Vertex AI:
GOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_LOCATIONGOOGLE_GENAI_USE_VERTEXAI=1
请确保您的环境中已配置以下身份验证方式之一:
-
API密钥:
- 或
GOOGLE_API_KEYGEMINI_API_KEY
-
Vertex AI:
GOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_LOCATIONGOOGLE_GENAI_USE_VERTEXAI=1
Usage
使用方法
1. Text to Video
1. 文本转视频
Generate a video purely from a text description.
bash
uv run skills/veo-use/scripts/text_to_video.py "A cinematic drone shot of a futuristic city" --output city.mp4仅通过文本描述生成视频。
bash
uv run skills/veo-use/scripts/text_to_video.py "A cinematic drone shot of a futuristic city" --output city.mp42. Image to Video
2. 图像转视频
Generate a video starting from a static image context.
bash
uv run skills/veo-use/scripts/image_to_video.py "Zoom out from the flower" --image start.png --output flower.mp4从静态图像上下文生成视频。
bash
uv run skills/veo-use/scripts/image_to_video.py "Zoom out from the flower" --image start.png --output flower.mp43. Reference to Video
3. 参考图转视频
Use specific asset images (subjects, products) to guide generation.
bash
uv run skills/veo-use/scripts/reference_to_video.py "A man walking on the moon" --reference-image man.png --output moon_walk.mp4使用特定资产图像(主体、产品)引导视频生成。
bash
uv run skills/veo-use/scripts/reference_to_video.py "A man walking on the moon" --reference-image man.png --output moon_walk.mp44. Edit Video (Inpainting)
4. 编辑视频(Inpainting)
Modify existing videos using masks.
Modes:
- : Remove dynamic object.
REMOVE - : Remove static object (watermark).
REMOVE_STATIC - : Insert new object (requires
INSERT).--prompt
bash
uv run skills/veo-use/scripts/edit_video.py --video input.mp4 --mask mask.png --mode INSERT --prompt "A flying car" --output edited.mp4使用蒙版修改现有视频。
模式:
- : 移除动态对象。
REMOVE - : 移除静态对象(如水印)。
REMOVE_STATIC - : 插入新对象(需要
INSERT参数)。--prompt
bash
uv run skills/veo-use/scripts/edit_video.py --video input.mp4 --mask mask.png --mode INSERT --prompt "A flying car" --output edited.mp45. Extend Video
5. 延长视频
Extend the duration of an existing video clip.
bash
uv run skills/veo-use/scripts/extend_video.py --video clip.mp4 --prompt "The car flies away into the sunset" --duration 6 --output extended.mp4延长现有视频片段的时长。
bash
uv run skills/veo-use/scripts/extend_video.py --video clip.mp4 --prompt "The car flies away into the sunset" --duration 6 --output extended.mp4Common Options
通用选项
- : Default
--model.veo-3.1-generate-001 - :
--resolution(default),1080p,720p.4k - :
--aspect-ratio(default),16:9.9:16 - :
--duration(default),6,4.8
- : 默认值为
--model。veo-3.1-generate-001 - :
--resolution(默认)、1080p、720p。4k - :
--aspect-ratio(默认)、16:9。9:16 - :
--duration(默认)、6、4。8
References
参考资料
Before running scripts, review the reference guides for prompting tips and best practices.
- Prompting Guide - Camera angles, movements, lens effects, and visual styles
运行脚本前,请查看参考指南获取提示技巧和最佳实践。
- 提示指南 - 包含相机角度、运动、镜头效果和视觉风格相关内容