Communitygithub.com

Gemini 视频分析器

使用 Google Gemini API 进行原生视频分析。上传并分析视频文件 — 描述场景、提取文本/UI、回答内容相关问题、转录语音、识别对象和动作。

Gemini 视频分析器 是什么?

这是一个基于 Google Gemini 多模态 API 的原生视频分析技能。它无需手动抽取视频帧,Gemini 自动以 1 FPS 的速率处理视频,并理解运动、过渡、音频和视觉上下文。用户可以直接上传视频文件(支持 MP4、AVI、MOV 等常见格式,单文件最大 2GB),然后通过自然语言提问,例如描述场景、提取屏幕上的文本和 UI 元素、总结教程、生成会议纪要、比较两个视频的差异,或报告屏幕录制中的 bug。底层使用 Gemini File API 临时存储视频(48 小时后自动删除),默认模型为 gemini-2.5-flash(快速、便宜且视觉能力强),也可通过 --model 参数切换到 gemini-2.5-pro 处理更复杂的分析任务。该技能主要面向命令行使用,适用于 Claude Code、Cursor 等支持本地脚本执行的 AI 开发环境,配置仅需设置 GOOGLE_AI_API_KEY 环境变量。

兼容平台~Claude Code~Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/modbender/skill-library-mcp/tree/HEAD/data/a6-gemini-video-analyzer

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Gemini 视频分析器 是做什么的?

使用 Google Gemini 的多模态 API 原生分析视频。无需手动抽取帧——Gemini 以 1 FPS 的速度处理视频,具备完整的运动、音频和视觉理解能力。

快速开始

# 使用默认提示分析视频(完整描述)
GOOGLE_AI_API_KEY=$GOOGLE_AI_API_KEY python3 {baseDir}/scripts/analyze.py /path/to/video.mp4

# 提出特定问题
GOOGLE_AI_API_KEY=$GOOGLE_AI_API_KEY python3 {baseDir}/scripts/analyze.py /path/to/video.mp4 "屏幕上显示了哪些文本?"

# 管理已上传的文件
GOOGLE_AI_API_KEY=$GOOGLE_AI_API_KEY python3 {baseDir}/scripts/manage_files.py list
GOOGLE_AI_API_KEY=$GOOGLE_AI_API_KEY python3 {baseDir}/scripts/manage_files.py cleanup

支持的格式

MP4, AVI, MOV, MKV, WebM, FLV, MPEG, MPG, WMV, 3GP——单文件最大 2GB。

工作原理

  1. 视频上传到 Google Files API(临时存储,48 小时后自动删除)
  2. Gemini 以每秒 1 帧的速度处理——理解运动、过渡和音频上下文
  3. 模型根据你的提示生成响应
  4. 在理解时序内容方面,远比逐帧抽取方式更优秀

用例

任务示例提示
通用描述(默认——无需提示)
UI/文本提取"有哪些文本和 UI 元素可见?"
教程总结"总结本教程中展示的步骤"
视频 bug 报告"描述这个屏幕录制中出现了什么问题"
会议记录"总结讨论的关键点"
内容对比上传两个视频,询问差异

配置

在你的环境或 .env 文件中设置 GOOGLE_AI_API_KEY。在 aistudio.google.com 免费获取密钥。

默认模型:gemini-2.5-flash(快速、廉价、视觉能力出色)。对于复杂分析,使用 --model gemini-2.5-pro 覆盖默认模型。

API 参考

参见 references/gemini-files-api.md 了解文件上传限制、处理详情和高级选项。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

modbender/skill-library-mcp

Complete investment portfolio risk management system. Analyze positions, calculate risk metrics, stress test scenarios, optimize allocations, and generate institutional-grade risk reports — all wit...

modbender/skill-library-mcp

Borrow from Aave via credit delegation. Agent self-funds by borrowing against delegator collateral. Supports borrow, repay, health checks. Works on Aave V2/V3.

modbender/skill-library-mcp

Discover and register autonomous AI agents. Use when: browsing the agent registry, submitting an agent for verification, or embedding agent badges. NOT for: general web search or agent capability analysis.

modbender/skill-library-mcp

Create AI avatar and talking head videos with OmniHuman, Fabric, PixVerse via inference.sh CLI. Models: OmniHuman 1.5, OmniHuman 1.0, Fabric 1.0, PixVerse Lipsync. Capabilities: audio-driven avatars, lipsync videos, talking head generation, virtual presenters. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human

modbender/skill-library-mcp

AI代码编辑器规则模板集合 - 为Cursor、Windsurf、Claude Code、Cline等AI编辑器提供项目规则配置。适用于需要配置AI编码助手规则的开发者,包含全栈Web、移动端、Vue3+SpringBoot等技术栈模板。

modbender/skill-library-mcp

Generate landing page code from product descriptions

modbender/skill-library-mcp

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

modbender/skill-library-mcp

Generate AI music videos end-to-end. Creates music with Suno (sunoapi.org), generates visuals with OpenAI/Seedream/Google/Seedance, and assembles into music video with ffmpeg. Supports timestamped lyrics (auto SRT), Suno native music video generation, slideshow/video/hybrid modes. Token-based cost tracking per generation.

modbender/skill-library-mcp

Generate AI-powered notes from videos (document, outline, or graphic-text formats)

modbender/skill-library-mcp

The video AI notes tool is provided by Baidu. Based on the video download address provided by the user, it downloads and parses the video, and finally generates AI notes corresponding to the video (a total of three types of notes can be generated: document notes, outline notes, and image-text notes).

modbender/skill-library-mcp

Automated appointment management for beauty salons, clinics, studios, and photo booths. Handles booking requests, calendar sync, conflict detection, reminders, no-show tracking, and waitlist management.

modbender/skill-library-mcp

Bird identification, life list tracking, and trading card generation. Use this skill when the user: sends a bird photo to identify, says "set up my Birdfolio" or "set my region", asks "how's my checklist", asks "Birdfolio progress", asks "how many birds have I found", asks "show my Birdfolio" or "show my life list", asks "what's my rarest bird", or asks "tell me about [bird species]". Handles everything from first-time setup through ongoing life list tracking and visual trading card generation.

modbender/skill-library-mcp

Multi-project task and research management (JSON-first CLI)

modbender/skill-library-mcp

Track stock and crypto portfolios with CLI - real-time prices, P&L, dividend tracking, multiple portfolios

modbender/skill-library-mcp

Track cryptocurrency portfolios with real-time prices, P&L calculations, and allocation analysis. Query Bitcoin, Ethereum, Solana and 10,000+ token holdings.

modbender/skill-library-mcp

加密貨幣Portfolio追蹤 - 支援TRON/ETH/BSC,分析持倉、收益、Gas費用

modbender/skill-library-mcp

Lead strategy with competitive analysis, strategic planning, growth roadmaps, and business portfolio management.

modbender/skill-library-mcp

Create ATS-optimized resumes and CVs with proper structure, metrics, and industry targeting.

modbender/skill-library-mcp

Use this skill when the user asks to build, create, design, develop, or improve ANY frontend interface, web page, UI component, or visual element. This includes: - Building landing pages, websites, web apps, dashboards, portfolios, or any web interface - Creating UI components (buttons, forms, cards, navbars, modals, etc.) - Designing pages with React, Vue, Next.js, Svelte, or any frontend framework - Adding styling or improving visual design of existing components - Implementing specific design aesthetics (modern, dark, minimalist, brutalist, etc.) - User mentions "frontend", "UI", "UX", "design", "interface", "web design", or "styling" - User asks for "beautiful", "modern", "professional", "clean", or any aesthetic adjective - User requests help with CSS, Tailwind, styled-components, or any styling approach This skill automatically retrieves the appropriate design system prompt (Neo-brutalism, Modern Dark, Bauhaus, Cyberpunk, Material, etc.) to help create visually distinctive, production-grade frontend...

modbender/skill-library-mcp

Paid acquisition strategy, budget allocation, and avoiding common advertising mistakes across platforms

相关技能