PostPilot
PostPilot is an autonomous social media publishing engine built with Django that automatically fetches videos from Google Drive, generates AI captions from video frames and audio, applies custom watermarks via FFmpeg, and schedules daily uploads to Instagram Reels and YouTube Shorts with multi-provider failover and quo
PostPilot is a self-hosted, admin-operated automation platform designed to manage and auto-publish short-form vertical videos across multiple Instagram and YouTube accounts on a daily schedule. Built to run reliably on low-resource environments (512 MB RAM), it handles the entire content pipeline end-to-end without manual intervention.
Key Features Automated Daily Pipeline: Lazily schedules daily posts per account in IST, picks the next sequential video from a configured Google Drive folder, and executes each step with idempotent checkpoints. Multimodal AI Captions & Failover: Extracts video frames and audio using ffmpeg/ffprobe and sends them along with channel persona details to an OpenAI-compatible LLM failover chain (with automatic cooldowns, rate-limit handling, and fallback captions). Video Processing & Watermarking: Transcodes and crops/pads videos to 9:16 vertical format (720×1280), applies customizable text/image watermarks, and enforces strict output size and memory limits. Multi-Bucket Storage Failover: Uploads processed videos to Supabase Storage (S3-compatible) across multiple configured buckets with automatic quota tracking, failover, and post-publish cleanup. Platform Integrations: Instagram Reels: Publishes via the official Meta Instagram Graph API with container status polling, duplicate-post guards, and automatic 60-day token refresh. YouTube Shorts: Supports OAuth 2.0 channel connection and memory-safe resumable chunked uploads via the YouTube Data API v3. Error Center & Usage Monitoring: Tracks every failure with plain-language diagnostics, automatic exponential-backoff retries, and real-time storage/egress/database quota alerts. Tech Stack Backend: Python 3.12, Django 5, Gunicorn, WhiteNoise Database: PostgreSQL (Supabase Transaction Pooler) Media & Storage: FFmpeg / FFprobe, Supabase Storage (boto3 S3) APIs: Meta Instagram Graph API, YouTube Data API v3, Google Drive API v3, OpenAI-compatible Multimodal LLMs Security: Fernet-encrypted credentials in DB, CSRF/CSP headers, token-protected internal cron ticks, login throttling
Interested in a similar build?
Explore Custom Website Development, read common answers on the FAQ page, or reach out directly.
Request a quote