ApoorvBrooklyn/MCP-Server
3.2
If you are the rightful owner of MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
AI-Powered Viral Moment Content Pipeline is a complete MCP server that processes YouTube videos to generate viral content using open-source tools.
Tools
6
Resources
0
Prompts
0
Viral Moment Pipeline
Turn long YouTube videos into short, shareable clips. Now simplified: monologue-only scripts, ElevenLabs narration, and a looped background using the repository’s Sample_Video.mp4.
What it does
- Detects viral moments from a YouTube transcript (Gemini)
- Generates a single-person monologue script (no VOICEOVER/SFX labels)
- Creates high‑quality narration (ElevenLabs)
- Loops
Sample_Video.mp4to match narration length (FFmpeg) and muxes audio
Requirements
- Python 3.11+
- FFmpeg in PATH (
ffmpeg,ffprobe) - API keys in
.env:GOOGLE_API_KEYELEVENLABS_API_KEY
Install deps:
pip install -r requirements.txt
FFmpeg (macOS):
brew install ffmpeg
Quick start
Run the Streamlit app:
cd viral-moment-pipeline
streamlit run streamlit_app.py
Pipeline steps in the UI:
- Download audio → 2) Transcribe → 3) Find moments → 4) Generate monologue → 5) ElevenLabs voiceover → 6) Loop
Sample_Video.mp4and mux audio
Result videos/audio are saved under generated_videos/ and generated_audio/.
How it works (under the hood)
- Script generation:
tools/llm_tool.pyenforces monologue output and sanitizes any labels/cues - Narration:
tools/voice_tool.py#create_high_quality_voiceover - Video:
tools/video_tool.py#create_looped_video_with_audiouses FFmpeg to loopSample_Video.mp4to the narration duration - Streamlit pipeline updated to use the looped-video path by default
Keeping media out of Git
*.mp4 is ignored, but if Sample_Video.mp4 was previously committed, untrack it:
git rm --cached viral-moment-pipeline/Sample_Video.mp4
git commit -m "Stop tracking Sample_Video.mp4; ignore media"
git push
Troubleshooting
- Missing ElevenLabs key: set
ELEVENLABS_API_KEYin.env - FFmpeg not found: install and ensure
ffmpeg/ffprobeare on PATH
Project structure
viral-moment-pipeline/
├── main.py
├── streamlit_app.py
├── tools/
│ ├── llm_tool.py # moments + monologue scripts
│ ├── voice_tool.py # ElevenLabs voiceover
│ └── video_tool.py # loop Sample_Video.mp4 + mux audio
├── Sample_Video.mp4 # background (kept local, ignored by Git)
├── generated_audio/
└── generated_videos/