Skip to content

About

🎬 Google Flow & Veo 3.1 AI ile %100 otonom 3D viral YouTube Shorts üretim, montaj ve yayın stüdyosu (macOS Desktop & Streamlit HUD)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

1 Commit

Folders and files

Repository files navigation

Flow Studio 🎬 β€’ Autonomous AI 3D Shorts & Veo 3.1 Pipeline

Flow Studio Icon

Python 3.11+ Streamlit Gemini 3.6 Google Veo Playwright FFmpeg YouTube Data API License MIT

End-to-End Autonomous 3D Pixar Animation & Viral Shorts Studio powered by Google Flow, Veo 3.1, Gemini 3.6 & Native macOS App.

Key Features β€’ Architecture β€’ Quickstart β€’ Desktop App β€’ Structure β€’ License

πŸ‡ΉπŸ‡· TΓΌrkΓ§e DokΓΌmantasyon iΓ§in README_TR.md dosyasΔ±na gΓΆz atabilirsiniz.


Flow Studio Dashboard Preview


🌟 Overview

Flow Studio is a next-generation, zero-marginal-cost content creation studio engineered for YouTube Shorts, Instagram Reels, and TikTok. Utilizing your existing Google Pro account via Chrome DevTools Protocol (CDP), Flow Studio automates the entire creative lifecycle:

  1. AI Prompt Engineering: Gemini 3.6 generates viral character storylines (Pixar-style baby animals, low-stimulation themes, fantasy creatures).
  2. Autonomous Veo 3.1 Generation: High-fidelity 4K 60FPS video synthesis via Google Flow / VideoFX with automated prompt submission and smart dialog confirmation.
  3. Smart Video Caching & Fast Retrieval: Automatic memory tracking prevents duplicate downloads; finished videos are fetched directly from CDN.
  4. ASMR Sound Engineering & 9:16 Post-Production: FFmpeg dynamic scaling, low-stimulation calming audio tracks, and normalization.
  5. Kuration HUD & 1-Click Publishing: Cyberpunk glassmorphism interface with integrated YouTube Data API v3 scheduler and uploader.
  6. Native Desktop & Mobile Synergy: Standalone macOS desktop app bundle (.app) with custom Retina icon, plus Apple Shortcuts webhook support for remote triggers.

✨ Features

🧠 1. Autonomous Creative Engine (Gemini 3.6 Flash)

  • Generates viral prompts tailored for high-retention 9:16 Shorts.
  • 11+ built-in character presets (Baby Owl, Hedgehog, Otter, Penguin, Fox, Red Panda, Low Stimulation Bunny, Dragon, Pancake Bear, Elephant).
  • Automated SEO metadata generation: Click-worthy titles, emoji-rich descriptions, and viral hashtag sets (#Shorts #Pixar3D #RelaxingAnimation).

πŸ€– 2. Chrome DevTools Protocol (CDP) Bot

  • Connects directly to Google Flow session via remote debugging port 9222.
  • Zero additional API costs: fully leverages your Google Pro subscription and Flow credit pool.
  • Automatically handles terms/dialog popups ("Confirm and do not ask again").
  • Live credit telemetry: reads real-time balance and visualizes remaining video capacity.

🎧 3. Audio & Video Post-Processing Pipeline

  • Converts raw landscape video to lossless 1080x1920 9:16 portrait format.
  • Mixes royalty-free calming ASMR background tracks with gentle fade-ins and fade-outs.
  • Strict frame synchronization and audio normalization for high watch-time algorithms.

πŸ’» 4. Native macOS Desktop App & Cyberpunk HUD

  • Standalone double-clickable Flow Studio.app built with Apple Cocoa pywebview (WKWebView).
  • Custom 3D neon glassmorphism Retina .icns app icon (16x16 up to 1024x1024).
  • Automatic background Streamlit server lifecycle management and graceful shutdown.
  • Dark theme (#06080D), responsive glass cards, and neon progress indicators.

πŸ“€ 5. YouTube Data API v3 One-Click Publishing

  • Instant publishing or flexible future scheduling.
  • Category tagging (Film & Animation / Kids), custom privacy status (Public, Unlisted, Private).
  • Token refresh manager for secure, recurring uploads without re-authentication.

πŸ“± 6. Apple Shortcuts & Remote Webhook API

  • Built-in lightweight HTTP webhook server on port 8503.
  • Trigger autonomous generation from your iPhone via Apple Shortcuts or "Hey Siri, Flow Studio".

πŸ›οΈ System Architecture

flowchart TD
    subgraph Input ["1. Trigger & Input"]
        A1["macOS Desktop App (pywebview)"] 
        A2["Streamlit Web HUD (:8502)"]
        A3["iPhone Apple Shortcuts (:8503)"]
    end

    subgraph AI_Core ["2. Prompt & Story Engine"]
        B1["Gemini 3.6 Flash API"]
        B2["Viral Character Presets & SEO Tags"]
    end

    subgraph Automation ["3. Google Flow Automation"]
        C1["FlowCDPBot (Playwright CDP :9222)"]
        C2["Google Flow / Veo 3.1 Web Interface"]
        C3["Smart Dialogue Auto-Confirm"]
        C4["High-Speed CDN Video Downloader"]
    end

    subgraph Video_Engine ["4. Post-Production Pipeline"]
        D1["9:16 Vertical Cropping & Scaling"]
        D2["ASMR Ambient Audio Mix & Normalize"]
        D3["Metadata Tagging & Local Candidates Cache"]
    end

    subgraph Distribution ["5. Publishing & Output"]
        E1["Interactive Curation Dashboard"]
        E2["YouTube Data API v3 (Instant / Scheduled)"]
    end

    Input --> B1
    B1 --> B2
    B2 --> C1
    C1 --> C2
    C2 --> C3
    C3 --> C4
    C4 --> D1
    D1 --> D2
    D2 --> D3
    D3 --> E1
    E1 --> E2
Loading

πŸ“ Project Structure

flow-studio/
β”œβ”€β”€ AppIcon.icns                 # High-resolution macOS Retina application icon
β”œβ”€β”€ LICENSE                      # MIT Open-Source License
β”œβ”€β”€ README.md                    # English Documentation
β”œβ”€β”€ README_TR.md                 # TΓΌrkΓ§e DokΓΌmantasyon
β”œβ”€β”€ requirements.txt             # Python dependencies
β”œβ”€β”€ run_desktop.py               # macOS Cocoa WKWebView launcher
β”œβ”€β”€ setup_and_run.command        # 1-Click macOS setup & run script
β”œβ”€β”€ start_dashboard.sh           # Terminal dashboard launcher
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ branding/                # Logos, icons, and UI preview assets
β”‚   β”œβ”€β”€ fonts/                   # High-contrast bold typography
β”‚   β”œβ”€β”€ music/                   # Calming ASMR loop audio tracks
β”‚   └── sfx/                     # Cartoon & sound effects library
β”œβ”€β”€ config/
β”‚   └── settings.py              # Environment and style configuration
β”œβ”€β”€ dashboard/
β”‚   └── app.py                   # Cyberpunk HUD Streamlit dashboard
β”œβ”€β”€ scripts/
β”‚   └── build_macos_app.sh       # Script to compile native Flow Studio.app bundle
└── src/
    β”œβ”€β”€ api/
    β”‚   └── shortcuts_server.py  # Apple Shortcuts webhook server (:8503)
    β”œβ”€β”€ automation/
    β”‚   β”œβ”€β”€ downloads_watcher.py # Real-time file system download monitor
    β”‚   └── flow_cdp_bot.py      # Playwright Chrome DevTools Protocol automation
    β”œβ”€β”€ generator/
    β”‚   β”œβ”€β”€ google_labs_prompter.py # Gemini 3.6 prompt synthesizer
    β”‚   └── prompt_templates.py     # Pixar 3D prompt presets
    β”œβ”€β”€ media/
    β”‚   └── audio_manager.py     # Sound engineering and volume leveling
    β”œβ”€β”€ video_engine/
    β”‚   └── video_enhancer.py    # FFmpeg 9:16 rendering and ASMR mix
    └── youtube/
        └── uploader.py          # YouTube Data API v3 automated publisher

πŸš€ Quickstart & Installation

Prerequisites

  • Python: 3.11 or higher
  • FFmpeg: Installed and available in PATH (brew install ffmpeg on macOS)
  • Google Chrome: Standard installation (for CDP automation)
  • Google Account: With access to Google Flow / VideoFX

1. Clone Repository

git clone https://github.com/efekkoc/FlowStudio.git
cd FlowStudio

2. Setup Virtual Environment

python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
playwright install chromium

3. Configure Environment Variables

Copy .env.example to .env:

cp .env.example .env

Fill in your Google Gemini API key:

GEMINI_API_KEY=your_gemini_api_key_here
YOUTUBE_CLIENT_SECRET_FILE=client_secrets.json

πŸ–₯️ Running Flow Studio

Option A: Native macOS Desktop App (Recommended)

Compile the standalone .app bundle onto your Desktop:

chmod +x scripts/build_macos_app.sh
./scripts/build_macos_app.sh

Double-click Flow Studio.app on your Desktop or run:

python3 run_desktop.py

Option B: Terminal Web Dashboard

chmod +x start_dashboard.sh
./start_dashboard.sh

Navigate to http://localhost:8502 in your browser.


πŸ”‘ YouTube API Setup (Optional for Auto-Publishing)

  1. Open Google Cloud Console.
  2. Create a project and enable YouTube Data API v3.
  3. Configure the OAuth Consent Screen (User Type: External, add your YouTube channel email as a Test User).
  4. Create Credentials: Create Credentials > OAuth client ID > Desktop App.
  5. Download the credentials file and save it in the root folder as client_secrets.json.
  6. Run the authentication script once to generate your persistent token.json:
    python3 auth_youtube.py

πŸ”’ Security & Privacy Notice

  • No Passwords Stored: Flow Studio connects to your existing browser session via CDP. No Google credentials or passwords are ever captured or saved.
  • Strict Git Exclusions: .env, client_secrets.json, token.json, and browser user profiles are strictly ignored in .gitignore.

πŸ“„ License

This project is open-source under the terms of the MIT License.


πŸ‘¨β€πŸ’» Author

Crafted with ❀️ by Turgut Efekan Koç (@efekkoc)

About

🎬 Google Flow & Veo 3.1 AI ile %100 otonom 3D viral YouTube Shorts üretim, montaj ve yayın stüdyosu (macOS Desktop & Streamlit HUD)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages