# bobagi/video-maker architecture

> Architecture diagram of the GitHub repository bobagi/video-maker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bobagi/video-maker
- Repository: https://github.com/bobagi/video-maker

## Overview

This is a script-driven video production and publishing tool for YouTube and TikTok. Its main workflow processes a script, generates narration, gathers stock media, assembles a video, then schedules or uploads it to both platforms. The repository also includes script-splitting and music-search modules; their connection to the main run is not established by the excerpts. The README documents video creation and upload capabilities, while some implementation details and provider wiring remain unsampled.

Main entry points: [`main.py`](https://github.com/bobagi/video-maker/blob/main/main.py) (Run coordinator), [`src/googleVoice.py`](https://github.com/bobagi/video-maker/blob/main/src/googleVoice.py) (Narration synthesis), [`src/pexels.py`](https://github.com/bobagi/video-maker/blob/main/src/pexels.py) (Pexels media), [`src/pixabay.py`](https://github.com/bobagi/video-maker/blob/main/src/pixabay.py) (Pixabay media)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_production["Production workflow"]
  node_main["Run coordinator<br/>[main.py]"]
  node_scripts["Script splitting"]
  node_voice["Narration synthesis<br/>[googleVoice.py]"]
  node_maker["Video assembly<br/>[videomaker.py]"]
end

subgraph group_media["Media providers"]
  node_pexels["Pexels media<br/>[pexels.py]"]
  node_pixabay["Pixabay media<br/>[pixabay.py]"]
end

subgraph group_publishing["Publishing"]
  node_youtube["YouTube publisher<br/>[uploadYoutube.py]"]
  node_tiktok["TikTok publisher<br/>[uploadTiktok.py]"]
end

subgraph group_music["Music discovery"]
  node_freesound["Freesound search<br/>[freesound.py]"]
  node_jamendo["Jamendo search<br/>[jamento.py]"]
end

node_operator(("Channel operator"))
node_googletts{{"Google Text-to-Speech"}}
node_pexelsservice{{"Pexels API"}}
node_pixabayservice{{"Pixabay API"}}
node_youtubeapi{{"YouTube Data API"}}
node_tiktoksite{{"TikTok Studio"}}
node_freesoundservice{{"Freesound API"}}
node_jamendoservice{{"Jamendo API"}}

node_operator -->|"runs"| node_main
node_main -->|"generates narration"| node_voice
node_main -->|"searches media"| node_pexels
node_main -->|"searches media"| node_pixabay
node_main -->|"creates video"| node_maker
node_main -->|"schedules upload"| node_youtube
node_main -->|"schedules upload"| node_tiktok
node_voice -->|"synthesizes speech"| node_googletts
node_pexels -->|"searches and downloads"| node_pexelsservice
node_pixabay -->|"searches and downloads"| node_pixabayservice
node_youtube -->|"authenticates and uploads"| node_youtubeapi
node_tiktok -->|"uploads through browser"| node_tiktoksite
node_freesound -->|"searches and downloads"| node_freesoundservice
node_jamendo -->|"searches and downloads"| node_jamendoservice

click node_main "https://github.com/bobagi/video-maker/blob/main/main.py"
click node_scripts "https://github.com/bobagi/video-maker/blob/main/src/roteiroProcessor.py"
click node_voice "https://github.com/bobagi/video-maker/blob/main/src/googleVoice.py"
click node_maker "https://github.com/bobagi/video-maker/blob/main/src/videomaker.py"
click node_pexels "https://github.com/bobagi/video-maker/blob/main/src/pexels.py"
click node_pixabay "https://github.com/bobagi/video-maker/blob/main/src/pixabay.py"
click node_youtube "https://github.com/bobagi/video-maker/blob/main/src/uploadYoutube.py"
click node_tiktok "https://github.com/bobagi/video-maker/blob/main/src/uploadTiktok.py"
click node_freesound "https://github.com/bobagi/video-maker/blob/main/src/freesound.py"
click node_jamendo "https://github.com/bobagi/video-maker/blob/main/src/jamento.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_scripts,node_voice,node_maker toneBlue
class node_pexels,node_pixabay toneAmber
class node_youtube,node_tiktok,node_pexelsservice,node_pixabayservice,node_youtubeapi,node_freesoundservice,node_jamendoservice toneMint
class node_freesound,node_jamendo toneRose
class node_operator,node_googletts,node_tiktoksite toneIndigo
```

## Components

### Production workflow

- [Run coordinator](https://github.com/bobagi/video-maker/blob/main/main.py): `main.py`
- [Script splitting](https://github.com/bobagi/video-maker/blob/main/src/roteiroProcessor.py): `src/roteiroProcessor.py`
- [Narration synthesis](https://github.com/bobagi/video-maker/blob/main/src/googleVoice.py): `src/googleVoice.py`
- [Video assembly](https://github.com/bobagi/video-maker/blob/main/src/videomaker.py): `src/videomaker.py`

### Media providers

- [Pexels media](https://github.com/bobagi/video-maker/blob/main/src/pexels.py): `src/pexels.py`
- [Pixabay media](https://github.com/bobagi/video-maker/blob/main/src/pixabay.py): `src/pixabay.py`

### Publishing

- [YouTube publisher](https://github.com/bobagi/video-maker/blob/main/src/uploadYoutube.py): `src/uploadYoutube.py`
- [TikTok publisher](https://github.com/bobagi/video-maker/blob/main/src/uploadTiktok.py): `src/uploadTiktok.py`

### Music discovery

- [Freesound search](https://github.com/bobagi/video-maker/blob/main/src/freesound.py): `src/freesound.py`
- [Jamendo search](https://github.com/bobagi/video-maker/blob/main/src/jamento.py): `src/jamento.py`

### Other components

- **Channel operator**
- **Google Text-to-Speech**
- **Pexels API**
- **Pixabay API**
- **YouTube Data API**
- **TikTok Studio**
- **Freesound API**
- **Jamendo API**

## Connections

- Channel operator → Run coordinator: runs (evidence: `README.md`)
- Run coordinator → Narration synthesis: generates narration (evidence: `main.py`)
- Run coordinator → Pexels media: searches media (evidence: `main.py`)
- Run coordinator → Pixabay media: searches media (evidence: `main.py`)
- Run coordinator → Video assembly: creates video (evidence: `README.md`)
- Run coordinator → YouTube publisher: schedules upload (evidence: `main.py`)
- Run coordinator → TikTok publisher: schedules upload (evidence: `main.py`)
- Narration synthesis → Google Text-to-Speech: synthesizes speech (evidence: `src/googleVoice.py`)
- Pexels media → Pexels API: searches and downloads (evidence: `src/pexels.py`)
- Pixabay media → Pixabay API: searches and downloads (evidence: `src/pixabay.py`)
- YouTube publisher → YouTube Data API: authenticates and uploads (evidence: `src/uploadYoutube.py`)
- TikTok publisher → TikTok Studio: uploads through browser (evidence: `src/uploadTiktok.py`)
- Freesound search → Freesound API: searches and downloads (evidence: `src/freesound.py`)
- Jamendo search → Jamendo API: searches and downloads (evidence: `src/jamento.py`)
