Skip to main content

Export MP4/MOV chapter markers into YouTube description-friendly text

Project description

export-chapters

Export MP4/MOV chapter markers into YouTube description–friendly text.

Features

  • Default format: timestamp - Title (perfect for YouTube descriptions)
  • --title-first to switch to Title - timestamp
  • Output modes (mutually exclusive):
    • default: write to <input>.yt.txt
    • --copy: copy to clipboard (no file)
    • --stdout: print to stdout (no file)
  • Cross-platform:
    • Requires ffprobe (FFmpeg) in PATH
    • Clipboard on Linux requires xclip or xsel

Install (pipx recommended)

pipx install export-chapters

Or locally:

pipx install .

Usage

export-chapters MyVideo.mp4            # writes MyVideo.yt.txt
export-chapters MyVideo.mp4 --copy     # copies to clipboard
export-chapters MyVideo.mp4 --stdout   # prints to terminal
export-chapters MyVideo.mp4 --title-first

Prerequisites

  • FFmpeg (ffprobe in PATH)
    • macOS: brew install ffmpeg
    • Windows: install FFmpeg and add bin to PATH
    • Linux: sudo apt-get install ffmpeg
  • For --copy on Linux: sudo apt-get install xclip (or xsel)

Sanity check

The formatter should produce:

  • 83s -> 1:23
  • 251s -> 4:11
  • 485s -> 8:05

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

export_chapters-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

export_chapters-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file export_chapters-0.1.1.tar.gz.

File metadata

  • Download URL: export_chapters-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for export_chapters-0.1.1.tar.gz
Algorithm Hash digest
SHA256 62c9750a37a0ffce64ca063a32e0d9faf6e26085d237d0a3d3b72a2b498b2b4f
MD5 7818b637370fdfb12134096178b7978a
BLAKE2b-256 cc1f2795038d5cd420be65e3203fe27ac4f7a776c8d500336a513b7b8ea267b2

See more details on using hashes here.

File details

Details for the file export_chapters-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for export_chapters-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a04c87cb8379235afa8695a9a4514d28c9a17f53df16d60367651950d3a19bbd
MD5 566d73aaf73e835c672060b7a9dedfc8
BLAKE2b-256 e37b8172130e5d14c7d3f99dd15f638ab5e4a1d28cc81025b68139b6e45d8fc7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page