gavishap/AI-Content-Clipping-System

GitHub: gavishap/AI-Content-Clipping-System

基于 AI 的直播/视频内容自动剪辑系统,能从长视频中识别并提取具有病毒传播潜力的精彩片段。

Stars: 0 | Forks: 0

# Nick Matau AI 内容剪辑器 由 AI 驱动的内容剪辑系统,可自动识别直播中具有病毒传播潜力的精彩片段。 ## 功能特性 - 🎤 **转录**:使用 Deepgram Nova-3,提供词级时间戳 - 🧠 **AI 分析**:使用 Gemini 2.5 Pro 识别值得剪辑的片段 - ✂️ **精准提取**:FFmpeg 关键帧精确剪切 - 📊 **审核队列**:集成 Google Sheets 实现审批工作流 ## 快速开始 ``` # Clone repo git clone https://github.com/seqora/nick-matau-clipper.git cd nick-matau-clipper # 创建 virtual environment python -m venv venv source venv/bin/activate # or `venv\Scripts\activate` on Windows # Install dependencies pip install -r requirements.txt # Copy environment variables cp .env.example .env # 使用 API keys 编辑 .env # Run pipeline python main.py process video.mp4 --output ./clips ``` ## 项目结构 ``` nick-matau-clipper/ ├── src/ │ ├── ingester.py # Video input + audio extraction │ ├── transcriber.py # Deepgram Nova-3 integration │ ├── analyzer.py # Gemini 2.5 Pro clip detection │ ├── extractor.py # FFmpeg precise clip cutting │ ├── sheets.py # Google Sheets review queue │ └── timestamp_utils.py ├── prompts/ │ ├── base_prompt.md # Master clip detection prompt │ └── nick_preferences.md ├── docs/ │ ├── PRD.md # Product requirements │ ├── ARCHITECTURE.md # System design │ └── TASKS.md # Implementation tasks ├── main.py # CLI entry point └── CLAUDE.md # AI assistant instructions ``` ## CLI 命令 ``` # Full pipeline python main.py process video.mp4 --output ./clips # 仅 transcribe python main.py transcribe video.mp4 --output transcript.json # 仅 analyze (来自现有 transcript) python main.py analyze transcript.json --output clips.json # 仅 extract clips python main.py extract video.mp4 --clips clips.json --output ./clips ``` ## 配置 创建一个 `config/config.yaml`: ``` deepgram: model: nova-3 gemini: model: gemini-2.5-pro temperature: 0.3 extraction: quality: medium # fast, medium, high padding_start: 0.3 padding_end: 0.5 ``` ## 开发 ``` # Run tests pytest tests/ -v # Type check mypy src/ # Format code black src/ tests/ # Lint ruff check src/ tests/ ``` ## 团队 - **Gabriel** (AI 工程师):转录、AI 分析、提示词 (Prompts)、编排 - **Jake** (集成工程师):FFmpeg 模块、Google Sheets ## 成本 | 视频时长 | Deepgram | Gemini | 总计 | |--------------|----------|--------|-------| | 2 小时 | $0.52 | $0.25 | $0.77 | | 4 小时 | $1.03 | $0.40 | $1.43 | ## 许可证 专有软件 - Seqora AI
标签:Deepgram, FFmpeg, Gemini, Google Sheets, LLM工程, Python, TikTok, YouTube Shorts, 人工智能, 关键帧提取, 内容创作, 多智能体辩论, 多模态分析, 媒体处理, 思维链, 提示词工程, 数字营销, 无后门, 用户模式Hook绕过, 病毒式传播, 直播切片, 策略决策点, 视频剪辑, 语音识别, 说话人分离, 逆向工具