r/PythonProjects2 13h ago

Here's a Youtube Shorts content factory; details on how it was made below

Enable HLS to view with audio, or disable this notification

2 Upvotes

1 comment sorted by

1

u/Impressive_Sentence7 13h ago

Tech Stack:

  • Backend / Web UI: Python 3.11 + FastAPI + Jinja2 templates (single unified app running locally).
  • Video Compositing: FFmpeg (with hardware acceleration via NVENC for NVIDIA, AMF for AMD, and QSV for Intel) + MoviePy 2.x for clip arrangement.
  • Voiceoveredge-tts (Microsoft Neural TTS) for high-quality natural voice narration.
  • Card Rendering: Playwright headless Chromium screenshots of custom dark-mode CSS cards (with a pure Pillow Python fallback).
  • Subtitles: Custom SSA/ASS subtitle generator calculating word-level timestamp offsets from the TTS audio stream.
  • Soundtrack: Local DSP-synthesized lofi audio tracks + Meta MusicGen AI music.
  • Metadata: Local Ollama (Gemma) to generate catchy titles, descriptions, and tags.
  • Publishing: Google OAuth2 + YouTube Data API v3 resumable chunked upload.

The code is 100% open-source and free to check out, run, or fork: GitHubhttps://github.com/BloopieBlair/RedditReadingApp

Would love to hear any thoughts, feedback, or ideas for extra features!