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

Uploaded Python 3

File details

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

File metadata

  • Download URL: export_chapters-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 976aa45e1c274c3c9988060d6e839a282402866b97fc48042548096138a2dae5
MD5 5939cf9adccc633185e6d4aeaf52657c
BLAKE2b-256 31ba3a878af34ac85666ecd0d8aa8f6053f01b3ab6fda174ff868d9aa48ec59f

See more details on using hashes here.

Provenance

The following attestation bundles were made for export_chapters-0.1.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for export_chapters-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 37c762e81490209df2e9034a05e91a301862e543a03f8b5b6e02dc888eb9c2e7
MD5 c9dc2c3224026b8f510856148cf4801d
BLAKE2b-256 ca2d01ffe45951b08b4a9a2afa974534c2cfe1970a46e3d4334ab81830f3e980

See more details on using hashes here.

Provenance

The following attestation bundles were made for export_chapters-0.1.6-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