Local-first multi-source video summarization with any OpenAI-compatible LLM
Project description
Video Summarizer
Transcribe and summarize videos from YouTube, Instagram, TikTok, Twitter, Reddit, Facebook, Google Drive, Dropbox, and local files.
Works with any OpenAI-compatible LLM provider, including locally hosted endpoints.
Interfaces
Pick your poison:
| Interface | Command |
|---|---|
| CLI | python -m summarizer --source <source> |
| HTTP API | python -m summarizer serve → http://localhost:8000/docs |
| Streamlit GUI | python -m streamlit run app.py |
| Docker | docker compose up -d → http://localhost:8501 |
| Agent Skill | .agent/skills/summarize/SKILL.md |
Quick Start
git clone https://github.com/martinopiaggi/summarize.git
cd summarize
pip install -e .
python -m summarizer --source "https://youtube.com/watch?v=VIDEO_ID"
The summary is saved to summaries/watch_YYYYMMDD_HHMMSS.md.
How It Works
+--------------------+
| Video URL/Path |
+---------+----------+
|
v
+---------+----------+
| Source Type? |
+---------+----------+
|
+----------------+--------------------+
| visual flag |
v v
+-------+--------+ +---------+----------+
| Visual Mode | | Transcript Cache |-------------> HIT ---+
| base64 / url | +---------+----------+ |
+-------+--------+ | MISS |
| | |
| v |
| +-------+ +-------+ +-------+ +-------+ |
| |YouTube| |yt-dlp | | Local | |Dropbox| |
| | | |X.com | | File | |G.Drive| |
| | | |TikTok | | | | | |
| | | |etc. | | | | | |
| +---+---+ +---+---+ +---+---+ +---+---+ |
| | | | | |
| v v | | |
| +----+---+ +--+---+ | | |
| |Captions| |Cobalt| | | |
| | Exist? | +--+---+ | | |
| +---+----+ | | | |
| Yes No | | | |
| +----+ | +--------+--------------+ |
| | | | |
| +-------------->| v |
| | +--------+--------+ |
| | | Whisper | |
| | | endpoint? | |
| | +--------+--------+ |
| | | |
| | +-----------+-----------+ |
| | | | |
| | | Cloud Whisper Local | |
| | | | |
| | +----------+------------+ |
| | | |
| +------------------------|--+ |
| v |
| store in cache |
| | |
| +-----------------+
| |
| | Transcript
| |
| v
| summarizer.yaml -> +------------+----------+
| prompts.json -> | Prompt + LLM |
| | Merge |
| +------------+----------+
| |
| v
v +------------+----------+
+-------+--------+ | |
| Vision-capable | | Output |
| model |----------------------------------------->+ |
+-------+--------+ +-----------------------+
^
|
+----- prompts.json
- Transcript path (default): downloads audio/video, transcribes with Whisper or captions, caches the transcript, then summarizes with an LLM.
- Visual path (
--visual): sends the video directly to a vision-capable model, skipping transcription. Uses the same prompts, provider config, and.envkeys as the transcript path. Supportsbase64chunks (default) andurlpassthrough for YouTube.
Documentation
Full docs live at summarize.martino.im.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file martino_summarize-0.2.0.tar.gz.
File metadata
- Download URL: martino_summarize-0.2.0.tar.gz
- Upload date:
- Size: 61.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
177d4a09179f071183268c657f350100c81fc5afcd262a90b45c0dfa66943441
|
|
| MD5 |
81d8dea444ec76fbf7416b87310b355b
|
|
| BLAKE2b-256 |
cca19d9333ada33d0af469375a79a2f0d59f4354deb7d8fda84ec31cd04fe348
|
Provenance
The following attestation bundles were made for martino_summarize-0.2.0.tar.gz:
Publisher:
publish-pypi.yml on martinopiaggi/summarize
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
martino_summarize-0.2.0.tar.gz -
Subject digest:
177d4a09179f071183268c657f350100c81fc5afcd262a90b45c0dfa66943441 - Sigstore transparency entry: 1998604825
- Sigstore integration time:
-
Permalink:
martinopiaggi/summarize@8f0ed035e14c404a8c5881e5c48c6b8b63324a51 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/martinopiaggi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8f0ed035e14c404a8c5881e5c48c6b8b63324a51 -
Trigger Event:
release
-
Statement type:
File details
Details for the file martino_summarize-0.2.0-py3-none-any.whl.
File metadata
- Download URL: martino_summarize-0.2.0-py3-none-any.whl
- Upload date:
- Size: 59.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba49824aeeaee9376071c9f38e4ec8aae27752dcfdccef503e40b096cd4fda8c
|
|
| MD5 |
15b429a8f404a9c9b4dd4ab59e843945
|
|
| BLAKE2b-256 |
16dfb5d162b995c79e06ab552b0e9faa73db84154dcca70c9d94fb8956022a83
|
Provenance
The following attestation bundles were made for martino_summarize-0.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on martinopiaggi/summarize
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
martino_summarize-0.2.0-py3-none-any.whl -
Subject digest:
ba49824aeeaee9376071c9f38e4ec8aae27752dcfdccef503e40b096cd4fda8c - Sigstore transparency entry: 1998605046
- Sigstore integration time:
-
Permalink:
martinopiaggi/summarize@8f0ed035e14c404a8c5881e5c48c6b8b63324a51 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/martinopiaggi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@8f0ed035e14c404a8c5881e5c48c6b8b63324a51 -
Trigger Event:
release
-
Statement type: