How elebumm/redditvideomakerbot works
Project type and purpose
• This is a command-line/desktop application (with an optional HTML-based GUI) that automates the creation of short videos from Reddit posts.
• It fetches Reddit content, synthesizes speech via multiple TTS providers, assembles audio with backgrounds, captures screenshots, and produces a final video.
File structure
• Top-level orchestrator:
• main.py – CLI entry point
• GUI.py – launches the HTML/Playwright-driven GUI
• Configuration and assets:
• utils/settings.py & .config.template.toml – user preferences and API secrets
• assets/, fonts/ – static assets and font resources
• GUI/ – HTML templates (index, layout, settings) and preloaded voice clips
• Core modules:
• reddit/ – subreddit.py for Reddit API integration
• TTS/ – engine_wrapper.py plus provider modules (aws_polly, GTTS, elevenlabs, pyttsx, TikTok, streamlabs_polly)
• video_creation/ – background.py, screenshot_downloader.py, voices.py, final_video.py for video assembly
• Utilities:
• utils/ai_methods.py, console.py, ffmpeg_install.py, playwright.py, thumbnail.py, videos.py, cleanup.py, etc.
• Deployment/build:
• Dockerfile, build.sh, install.sh, run.sh/.bat
Readme insights
• Core workflow: fetch Reddit thread → configure voice/background → synthesize audio → render screenshots with Playwright → mix and compile video → output final MP4.
• No automatic upload; manual upload step remains.
Detail is critical
• Both synchronous (CLI call returns) and asynchronous operations (Playwright browser launch)
• Error-handling or cleanup via utils/cleanup if desired