Google Video Url Analysis
Use scripts/gemini_video_url_analyzer.py for deterministic Gemini calls instead of ad-hoc API snippets.
Workflow
- 1. Set an API key:
-
GEMINI_API_KEY (preferred), or
-
GOOGLE_API_KEY
- 2. Run the analyzer with a public video URL supported by Gemini as direct URI input.
- Provide a task-specific prompt (summary, timeline extraction, Q&A, moderation, etc.).
- Inspect the text output.
Command Guide
-
python scripts/gemini_video_url_analyzer.py --video-url "https://www.youtube.com/watch?v=..." --prompt "Summarize in 5 bullets and list important timestamps."
- INLINECODE4
Operational Rules
- - Require a publicly accessible URL.
- Prefer concise, explicit prompts with concrete output constraints.
Google 视频网址分析
使用 scripts/geminivideourl_analyzer.py 进行确定性 Gemini 调用,而非临时编写的 API 代码片段。
工作流程
- 1. 设置 API 密钥:
- GEMINI
APIKEY(首选),或
- GOOGLE
APIKEY
- 2. 运行分析器,输入 Gemini 支持作为直接 URI 输入的公网视频网址。
- 提供任务特定的提示词(摘要、时间线提取、问答、内容审核等)。
- 检查文本输出结果。
命令指南
- python scripts/gemini
videourl_analyzer.py --video-url https://www.youtube.com/watch?v=... --prompt 用5个要点总结并列出重要时间戳。
- python scripts/gemini
videourl_analyzer.py --video-url <网址> --model gemini-2.5-pro --prompt 生成逐场景报告。
操作规则
- - 需要可公开访问的网址。
- 优先使用简洁、明确的提示词,并附带具体的输出约束条件。