# limopsx/auto-audiovideo architecture

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

- Interactive diagram: https://gitdiagram.com/limopsx/auto-audiovideo
- Repository: https://github.com/limopsx/auto-audiovideo

## Overview

This repository is a prototype for generating manga-explainer videos from scraped manga pages and a matching novel. Its intended stages are novel-text collection, narration, manga-image collection, and silent-video generation; the separate `a.py` script contains working image-to-video and audio-muxing code. The main script’s orchestration calls are commented out, and its audio/video assembly function is a stub, so the graph does not imply an end-to-end automated run. The novel and manga sites are explicit in `main.py`; other relationships shown are file reads and writes in the excerpts.

Main entry points: [`main.py`](https://github.com/limopsx/auto-audiovideo/blob/master/main.py) (Collection pipeline), [`a.py`](https://github.com/limopsx/auto-audiovideo/blob/master/a.py) (Video assembly utility)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Source collection"]
  node_main["Collection pipeline<br/>[main.py]"]
  node_image_scrape["Manga image scrape<br/>[main.py]"]
end

subgraph group_media["Media generation"]
  node_tts["Speech synthesis<br/>[main.py]"]
  node_video_gen["Silent video generation<br/>[main.py]"]
  node_media_util["Video assembly utility<br/>[a.py]"]
end

subgraph group_storage["Local artifacts"]
  node_novel_text[("Novel chapters<br/>[main.py]")]
  node_audio_files[("Narration audio<br/>[main.py]")]
  node_image_files[("Chapter images<br/>[main.py]")]
  node_video_files[("Silent videos<br/>[main.py]")]
  node_final_video[("Combined video<br/>[a.py]")]
end

node_user(("Operator"))
node_novel_site["Novel website"]
node_manga_site["Manga website"]

node_user -->|"runs"| node_main
node_user -->|"runs"| node_media_util
node_main -->|"fetches chapters"| node_novel_site
node_main -->|"writes chapters"| node_novel_text
node_tts -->|"reads chapters"| node_novel_text
node_tts -->|"writes narration"| node_audio_files
node_main -->|"fetches pages"| node_manga_site
node_main -->|"writes images"| node_image_files
node_video_gen -->|"reads images"| node_image_files
node_video_gen -->|"reads durations"| node_audio_files
node_video_gen -->|"writes video"| node_video_files
node_media_util -->|"reads images"| node_image_files
node_media_util -->|"reads audio"| node_audio_files
node_media_util -->|"reads video"| node_video_files
node_media_util -->|"writes combined"| node_final_video

click node_main "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_novel_text "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_tts "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_audio_files "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_image_scrape "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_image_files "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_video_gen "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_video_files "https://github.com/limopsx/auto-audiovideo/blob/master/main.py"
click node_media_util "https://github.com/limopsx/auto-audiovideo/blob/master/a.py"
click node_final_video "https://github.com/limopsx/auto-audiovideo/blob/master/a.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_image_scrape toneBlue
class node_tts,node_video_gen,node_media_util toneAmber
class node_novel_text,node_audio_files,node_image_files,node_video_files,node_final_video toneMint
class node_user,node_novel_site,node_manga_site toneIndigo
```

## Components

### Source collection

- [Collection pipeline](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`
- [Manga image scrape](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`

### Media generation

- [Speech synthesis](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`
- [Silent video generation](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`
- [Video assembly utility](https://github.com/limopsx/auto-audiovideo/blob/master/a.py): `a.py`

### Local artifacts

- [Novel chapters](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`
- [Narration audio](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`
- [Chapter images](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`
- [Silent videos](https://github.com/limopsx/auto-audiovideo/blob/master/main.py): `main.py`
- [Combined video](https://github.com/limopsx/auto-audiovideo/blob/master/a.py): `a.py`

### Other components

- **Operator**
- **Novel website**
- **Manga website**

## Connections

- Operator → Collection pipeline: runs (evidence: `main.py`)
- Operator → Video assembly utility: runs (evidence: `a.py`)
- Collection pipeline → Novel website: fetches chapters (evidence: `main.py`)
- Collection pipeline → Novel chapters: writes chapters (evidence: `main.py`)
- Speech synthesis → Novel chapters: reads chapters (evidence: `main.py`)
- Speech synthesis → Narration audio: writes narration (evidence: `main.py`)
- Collection pipeline → Manga website: fetches pages (evidence: `main.py`)
- Collection pipeline → Chapter images: writes images (evidence: `main.py`)
- Silent video generation → Chapter images: reads images (evidence: `main.py`)
- Silent video generation → Narration audio: reads durations (evidence: `main.py`)
- Silent video generation → Silent videos: writes video (evidence: `main.py`)
- Video assembly utility → Chapter images: reads images (evidence: `a.py`)
- Video assembly utility → Narration audio: reads audio (evidence: `a.py`)
- Video assembly utility → Silent videos: reads video (evidence: `a.py`)
- Video assembly utility → Combined video: writes combined (evidence: `a.py`)
