Fully automated short-form video pipeline that generates and uploads 6 AI-powered videos/day to YouTube Shorts and Instagram Reels โ zero manual work.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ GitHub Actions (Free) โ
โ 7AM + 7PM IST โ Daily Cron โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โ pipeline.py (Main) โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโผโโโโโโโ โโโโโโโโโโผโโโโโโโโ โโโโโโโโผโโโโโโโโ
โ Step 1 โ โ Step 2 โ โ Step 3 โ
โ Gemini Flash โ โ Edge TTS โ โ Pexels API โ
โ Script+Captionsโ โ Neural Voice โ โ HD Stock Videoโ
โ (Free API) โ โ (Free) โ โ (Free API) โ
โโโโโโโโโฌโโโโโโโ โโโโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โ Step 4: FFmpeg โ
โ โข 9:16 vertical crop โ
โ โข Dark cinematic filter โ
โ โข Bold subtitle overlay โ
โ โข Muted song mix โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โ Step 5: Upload โ
โ โข YouTube Shorts โ
โ โข Instagram Reels โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Feature | Details |
|---|---|
| Auto Script | Gemini 2.5 Flash generates viral scripts with SEO titles + hashtags |
| Neural Voice | Edge TTS (Microsoft) โ Christopher (EN) / Madhur (HI) |
| HD Video | Pexels API โ portrait 9:16 cinematic clips |
| Bold Subtitles | FFmpeg burns large white uppercase subtitles word-by-word |
| Bilingual | EN โ HI โ EN pattern per run |
| 4 Niches | Horror ๐ป Comedy ๐ AI&Tech ๐ค Storytelling ๐ |
| Part Series | Part 1 / Part 2 cliffhanger format for engagement |
| Topic Dedup | Tracks last 500 topics โ never repeats |
| Retry Logic | Exponential backoff on upload failures |
| Analytics | Logs every upload to JSON for tracking |
| Free Forever | Runs on GitHub Actions free tier (2x daily = ~1,200 mins/month) |
- GitHub account
- Google AI Studio API key (free) โ aistudio.google.com
- Pexels API key (free) โ pexels.com/api
- YouTube OAuth credentials โ Google Cloud Console
- Fork this repo
- Add GitHub Secrets (Settings โ Secrets โ Actions):
| Secret | Description |
|---|---|
GEMINI_API_KEY |
Google AI Studio key |
PEXELS_API_KEY |
Pexels API key |
YOUTUBE_CLIENT_SECRETS |
OAuth JSON from Google Cloud |
YOUTUBE_TOKEN_B64 |
Base64-encoded pickle token |
INSTAGRAM_TOKEN |
Meta Graph API token (optional) |
INSTAGRAM_ACCOUNT_ID |
Instagram account ID (optional) |
- Enable GitHub Actions โ pipeline runs automatically at 7AM + 7PM IST
pip install pytest
pytest tests/ -v- 6 videos/day (3 per run ร 2 runs)
- ~32 seconds per video
- 1080ร1920px (9:16 vertical)
- Bilingual โ 4 EN + 2 HI per day
| Layer | Technology |
|---|---|
| Script AI | Google Gemini 2.5 Flash |
| Voice AI | Microsoft Edge TTS (Neural) |
| Video | Pexels HD Stock API |
| Assembly | FFmpeg |
| Upload | YouTube Data API v3, Instagram Graph API |
| CI/CD | GitHub Actions |
| Auth | Google OAuth 2.0 |
freakybits/
โโโ pipeline.py # Main automation pipeline
โโโ requirements.txt # Python dependencies
โโโ tests/
โ โโโ test_pipeline.py # Unit tests (pytest)
โโโ buzzBits_output/ # Generated videos (gitignored)
โ โโโ analytics.json # Upload history
โ โโโ used_topics.json # Topic deduplication store
โโโ .github/
โโโ workflows/
โโโ buzzBits_daily.yml # Cron schedule
- Oracle Cloud VM migration (unlimited runs)
- Gemini Vision clip relevance scoring
- Google Sheets analytics dashboard
- Instagram token integration
- Fine-tuned topic model per niche
Mohammad Sahil Vahora โ ECE Final Year, Parul University 2026
- GitHub: @imsv1301
- Instagram: @freaky_bits
This project demonstrates end-to-end AI pipeline engineering โ from LLM prompting to cloud deployment โ built entirely for free using open APIs and GitHub Actions.