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.7.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.7-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for export_chapters-0.1.7.tar.gz
Algorithm Hash digest
SHA256 b127a6b72c797e40825094ca343733f0bc05ccf70ee25c33d1cd1adfc7e9b7ef
MD5 7d6dac24c1f11d95021182daf2b39e57
BLAKE2b-256 431f364c73fef70cac3ba3d089b589741c94ef5406095a6263f9d64ea0e86d31

See more details on using hashes here.

Provenance

The following attestation bundles were made for export_chapters-0.1.7.tar.gz:

Publisher: python-publish.yml on anomaddev/Export-Chapters

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for export_chapters-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 49b18217d047098df25865d20e00670d7eab276d39c051201b4c41d240edc855
MD5 455feaf9270d8c16c42017cd4d75e1eb
BLAKE2b-256 80b9f4d992ae5ac5668780402fa3abc48be69e50ba4d3b74686dcfe0896835f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for export_chapters-0.1.7-py3-none-any.whl:

Publisher: python-publish.yml on anomaddev/Export-Chapters

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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