OpenDemon/Pilipili-AutoVideo
Tentang
ð¬ å šèªåš AI è§é¢ä»£ç · äžå¥è¯çæåžŠå广ç · Fully Automated AI Video Agent · Local Deployment
Desain dan mediaYang dapat Anda lakukan
- ð€ Natural Language Driven: One sentence â full video, no manual node operations required
- ðš Premium Visual Quality: Nano Banana keyframe lock + Kling 3.0 / Seedance 1.5 dual-engine, exceptional subject consistency
- ð Perfect Audio-Video Sync: Measure voiceover duration first, control video duration accordingly â never misaligned
- âïž CapCut/JianYing Draft Export: AI handles 90%, you fine-tune the last 10% in CapCut
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +2
- dalam 15 hari
- +3
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Aslið¬ Pilipili-AutoVideo · åŒå©åŒå©
Fully Automated AI Video Agent · Local Deployment · One Sentence to Final Cut
ç®äœäžæ · English · ç¹é«äžæ · æ¥æ¬èª · íêµìŽ
ð¹ Demo â Replace this line with a GIF or video recording of the full workflow: topic input â scene review â final video output.
docs/demo.gif(to be recorded â see Contributing)
ð Overview
Pilipili-AutoVideo (åŒå©åŒå©) is a fully local, end-to-end AI video agent. Describe your video in one sentence â the system automatically handles script planning â keyframe image generation â TTS voiceover â video clip generation â FFmpeg assembly â subtitle burning, delivering a complete MP4 with subtitles and a CapCut/JianYing draft project for final human touch-ups.
Key differentiators from similar tools (LibTV, Huobao Drama):
- Absolute Audio-Video Sync: TTS voiceover is generated first and its exact millisecond duration is measured, then used to control video
durationâ audio and video are always perfectly aligned - Keyframe Lock Strategy: Nano Banana generates a 4K keyframe image first, then Image-to-Video (I2V) produces the clip â ensuring consistently high visual quality with no subject drift
- Digital Twin Memory: Mem0-powered memory system learns your style preferences over time, injecting your creative habits into every new generation
- Skill Integration: The entire workflow is packaged as a standard Skill, callable by any AI Agent
ð¯ Core Features
- ð€ Natural Language Driven: One sentence â full video, no manual node operations required
- ðš Premium Visual Quality: Nano Banana keyframe lock + Kling 3.0 / Seedance 1.5 dual-engine, exceptional subject consistency
- ð Perfect Audio-Video Sync: Measure voiceover duration first, control video duration accordingly â never misaligned
- âïž CapCut/JianYing Draft Export: AI handles 90%, you fine-tune the last 10% in CapCut
- ð§ Gets Smarter Over Time: Mem0 memory system learns your aesthetic preferences with every project
- ð Agent-Callable: Packaged as a standard Skill, seamlessly integrates into larger automation workflows
ð ïž Architecture
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â Pilipili-AutoVideo Architecture â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ€
â Frontend React 19 + TailwindCSS · 3-panel Studio · WS â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ€
â API Layer FastAPI · WebSocket · REST · LangGraph Workflow â
ââââââââââââââââ¬âââââââââââââââ¬âââââââââââââââ¬âââââââââââââââââ€
â Brain Layer â Vision Layerâ Motion Layerâ Voice Layer â
â DeepSeek â Nano Banana â Kling 3.0 â MiniMax TTS â
â Kimi â (Gemini 3 â Seedance â Speech 2.8 HD â
â MiniMax LLM â Pro Image) â 1.5 Pro â â
â Gemini â â â â
ââââââââââââââââŽâââââââââââââââŽâââââââââââââââŽâââââââââââââââââ€
â Assembly Python + FFmpeg · xfade transitions · WhisperX â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ€
â Draft Layer pyJianYingDraft · Auto CapCut/JianYing Draft â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ€
â Memory Mem0 · Local SQLite · Style Preference Twin â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
| Layer | Technology | Description |
|---|---|---|
| Brain (LLM) | DeepSeek / Kimi / MiniMax / Gemini | Script generation, scene breakdown, metadata |
| Vision (Image) | Nano Banana (Gemini 3 Pro Image) | 4K keyframe lock, subject consistency foundation |
| Motion (Video) | Kling 3.0 / Seedance 1.5 Pro | Dual-engine smart routing, I2V generation |
| Voice (TTS) | MiniMax Speech 2.8 HD | Best-in-class Chinese TTS, voice cloning support |
| Assembly | Python + FFmpeg + WhisperX | xfade transitions + subtitle burning + audio mix |
| Draft | pyJianYingDraft | Auto-generate CapCut/JianYing draft projects |
| Memory | Mem0 (local SQLite / cloud sync) | Style preference digital twin |
| Backend | Python 3.10+ + FastAPI + LangGraph | Async workflow orchestration, WebSocket push |
| Frontend | React 19 + TailwindCSS + Wouter | 3-panel studio, no mock data |
ð Quick Start
ð Requirements
| Software | Version | Notes |
|---|---|---|
| Python | 3.10+ | Backend runtime |
| Node.js | 18+ | Frontend build |
| FFmpeg | 4.0+ | Video assembly (required) |
| Docker | 20.0+ | Container deployment (optional) |
Install FFmpeg
macOS:
brew install ffmpeg
Ubuntu / Debian:
sudo apt update && sudo apt install ffmpeg
Windows: Download from ffmpeg.org and add to PATH. Verify:
ffmpeg -version
Clone & Install
# 1. Clone the repository
git clone https://github.com/OpenDemon/Pilipili-AutoVideo.git
cd Pilipili-AutoVideo
# 2. Install Python dependencies
pip install -r requirements.txt
# 3. Copy config template
cp configs/config.example.yaml configs/config.yaml
Configure API Keys
Edit configs/config.yaml:
llm:
provider: deepseek # deepseek | kimi | minimax | gemini
api_key: "sk-xxxx"
image_gen:
provider: nano_banana
api_key: "AIzaSy-xxxx" # Google AI Studio Key
video_gen:
default_engine: kling # kling | seedance | auto
kling:
api_key: "xxxx"
api_secret: "xxxx"
seedance:
api_key: "xxxx"
tts:
provider: minimax
api_key: "xxxx"
group_id: "xxxx"
memory:
provider: local # local | mem0_cloud
# mem0_api_key: "m0-xxxx" # Fill in for cloud sync
ð¡ You can also configure API keys visually at
http://localhost:3000/settingsâ no YAML editing required.
Option 1: CLI (Recommended for debugging)
# Basic usage
python cli/main.py run --topic "Cyberpunk Mars colony, 60 seconds, cold color palette"
# Specify engine
python cli/main.py run \
--topic "Ancient palace romance story" \
--engine seedance \
--duration 90 \
--add-subtitles
# List past projects
python cli/main.py list
# Help
python cli/main.py --help
Option 2: Web UI (Recommended for daily use)
# Start backend
python cli/main.py server
# In another terminal, start frontend
cd frontend
pnpm install && pnpm dev
# Visit http://localhost:3000
Option 3: Docker Compose (Recommended for production)
# Copy environment variables
cp .env.example .env
# Edit .env with your API keys
# Start all services
docker-compose up -d
# Visit http://localhost:3000
ðŠ Project Structure
Pilipili-AutoVideo/
âââ api/
â âââ server.py # FastAPI backend + WebSocket
âââ cli/
â âââ main.py # Click CLI entrypoint
âââ core/
â âââ config.py # Global config (Pydantic Settings)
âââ modules/
â âââ llm.py # LLM script generation (multi-provider)
â âââ image_gen.py # Nano Banana keyframe generation
â âââ tts.py # MiniMax TTS + duration measurement
â âââ video_gen.py # Kling 3.0 / Seedance 1.5 I2V
â âââ assembler.py # FFmpeg assembly + subtitle burning
â âââ jianying_draft.py # CapCut/JianYing draft generation
â âââ memory.py # Mem0 memory system
âââ frontend/ # React 19 frontend (3-panel studio)
âââ skills/
â âââ SKILL.md # Skill packaging spec
âââ configs/
â âââ config.example.yaml # Config template
â âââ config.yaml # Local config (gitignored)
âââ tests/
â âââ test_pipeline.py # Unit tests (18 test cases)
âââ data/
â âââ outputs/ # Generated videos and drafts
â âââ memory/ # Memory database
âââ docker-compose.yml
âââ Dockerfile.backend
âââ requirements.txt
âââ pyproject.toml
ð¬ Workflow Deep Dive
The core workflow is orchestrated by LangGraph in the following stages:
User Input
â
âŒ
â Script Generation (LLM)
â DeepSeek/Kimi expands one sentence into a structured storyboard
â Each scene: voiceover text, visual description, motion description,
â duration, transition, camera motion
â
âŒ
â¡ Scene Review (optional human step)
â Web UI shows scene list; user can edit each scene before confirming
â CLI mode: auto-approved
â
âŒ
⢠Parallel Generation (Keyframe Images + TTS Voiceover)
â Nano Banana generates 4K keyframe images for each scene in parallel
â MiniMax TTS generates voiceover for each scene, measuring exact ms duration
â
âŒ
⣠Video Generation (Image-to-Video)
â Uses keyframe as first frame, voiceover duration as video duration
â Kling 3.0 (action/product) or Seedance 1.5 (narrative/multi-character)
â
âŒ
†Assembly (FFmpeg)
â xfade transitions + background music mixing + WhisperX subtitle burning
â
âŒ
⥠Draft Export (CapCut/JianYing)
â Auto-generates draft project preserving all scene assets and timeline
â
âŒ
⊠Memory Update (Mem0)
After user rating, system learns style preferences for future generations
ð Comparison
| Dimension | LibTV | Huobao Drama | Pilipili |
|---|---|---|---|
| Interaction | Node canvas, manual trigger | Form-based, step-by-step | Natural language, one sentence |
| Audio-Video Sync | Manual editing | Not explicitly supported | Measure TTS duration â control video duration |
| Subject Consistency | Prompt guidance | Reference image upload | Nano Banana keyframe lock + Kling Reference API |
| Final Delivery | Manual import to CapCut | MP4 export | Auto CapCut draft + MP4 dual output |
| Memory System | None | None | Mem0 digital twin, learns your style |
| Agent Integration | None | None | Standard Skill, callable by any Agent |
| Deployment | Cloud SaaS | Cloud SaaS | Local deployment, full data ownership |
𧪠Testing
# Run all unit tests (no API keys required)
python -m pytest tests/test_pipeline.py -v -m "not api and not e2e"
# Run API integration tests (real API keys required)
python -m pytest tests/test_pipeline.py -v -m "api"
# Run full E2E tests
python -m pytest tests/test_pipeline.py -v -m "e2e"
Current test coverage: 18 unit tests, all passing.
ð Skill Integration
Pilipili-AutoVideo is packaged as a standard Skill, callable by any AI Agent:
# In an Agent session
Please generate a 60-second science explainer video about "The History of AI Chips",
blue-purple tech aesthetic.
The Agent will automatically read skills/SKILL.md and invoke Pilipili to complete the entire workflow.
ð FAQ
Q: FFmpeg not found?
A: Ensure FFmpeg is installed and in your PATH. Run ffmpeg -version to verify.
Q: Video generation is slow â is that normal?
A: Video generation relies on cloud APIs (Kling/Seedance), typically 2-5 minutes per scene. This is an API-side constraint, not a local performance issue.
Q: How do I switch LLM providers?
A: Edit llm.provider in configs/config.yaml, or use the Settings page in the Web UI.
Q: Where is the CapCut/JianYing draft?
A: After generation, the draft project is at data/outputs/{project_id}/draft/. Copy the entire folder to CapCut's draft directory to open it.
Q: What aspect ratios are supported?
A: 9:16 (portrait, TikTok/Reels), 16:9 (landscape, YouTube), 1:1 (square, Instagram).
ð€ Contributing
Issues and Pull Requests are welcome!
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'feat: add amazing feature' - Push the branch:
git push origin feature/amazing-feature - Open a Pull Request
ð License
This project is licensed under the MIT License.
Pilipili-AutoVideo · åŒå©åŒå© · Local Deployment · Fully Automated AI Video Agent
If this project helps you, please give it a â Star!
Jelajahi proyek terkait
MemuatâŠ