Skip to main content

Video to Chapters (with Transcript)

AI-powered Python library and CLI that automatically generates timestamped chapter summaries for video content.

Features

  • Automatic transcript generation (with speaker labels) using AssemblyAI
  • Cheap local scene detection (SSIM + histogram comparison) to find chapter boundaries
  • Google Gemini used only where it adds value: describing detected scene changes and writing chapter titles/summaries
  • Chapter segmentation based on scene changes and speaker turns
  • Export formats for YouTube, Vimeo, Spotify, Markdown, SRT, and JSON

Requirements

Installation

uv tool install video-to-chapters-with-transcript

Or for development:

git clone https://github.com/hbmartin/video-to-chapters-with-transcript
cd video-to-chapters-with-transcript
uv sync

Usage

# Process a video end-to-end (transcript, scene detection, chapters)
video-to-chapters process video.mp4

# Choose an output format and save to a file
video-to-chapters process video.mp4 --format youtube --output chapters.txt

# List previously processed videos
video-to-chapters list

# Show chapters for an already-processed video without reprocessing
video-to-chapters show --video-id 1

# Re-segment with a different scene-change threshold (reuses cached AI summaries)
video-to-chapters regenerate --threshold 0.6

Run video-to-chapters --help for all commands and options.

Configuration

Copy .env.example to .env and fill in your API keys:

ASSEMBLYAI_API_KEY=...
GEMINI_API_KEY=...

License

MIT

Metadata

Release files for video-to-chapters-with-transcript 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for video-to-chapters-with-transcript 0.1.0
File Size Uploaded Provenance Actions
video_to_chapters_with_transcript-0.1.0.tar.gz 25.1 kB With provenance Details for video_to_chapters_with_transcript-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for video-to-chapters-with-transcript 0.1.0
File Interpreter ABI Platform Actions
video_to_chapters_with_transcript-0.1.0-py3-none-any.whl Python 3 none any Details for video_to_chapters_with_transcript-0.1.0-py3-none-any.whl

Total release size: 56.8 kB

Release files / video_to_chapters_with_transcript-0.1.0.tar.gz

Download URL video_to_chapters_with_transcript-0.1.0.tar.gz
Size 25.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd5c0ff72d13c9f4203215d50dc20ae69377198fa7ef6320b927117faa88005b
BLAKE2b-256 checksum
How to use checksums
17c452b5f58ffcf4582c96360ed1e0c0486f10cb82b4aae37c851c58faff5a19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Release files / video_to_chapters_with_transcript-0.1.0-py3-none-any.whl

Download URL video_to_chapters_with_transcript-0.1.0-py3-none-any.whl
Size 31.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02083213d90fc304c2e0a90d7ab8581a35fca04e6475ccf70742839882a3ab7b
BLAKE2b-256 checksum
How to use checksums
c6044e6dac91a58d37a1452b3a3804474c0d00bdefd89d3c9f7b13d1679b1a93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

Security for video-to-chapters-with-transcript 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for video_to_chapters_with_transcript-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page