Skip to main content

tool for inserting chapter marks in mp3 files

Project description

Command line utility for adding chapter marks to mp3 files.

Many podcast and audiobook apps on Android and iOS support chapter markers in mp3 files

This uses the eyeD3 lib to read and write the chapters details

requirements

Python 3

installation

pip3 install mp3chapters

usage

The chapter markers format should be in either:

- Timecode: hours:minutes:seconds.milliseconds + space + chapter title
- Milliseconds: milliseconds (whole) + space + chapter title
- Audacity: seconds (floating point) + tab + seconds (no used) + tab + chapter title

Assuming you have a file named episode_42.mp3, mp3chaps looks for a chapter marks file called episode_42.chapters.txt in the same directory:

00:00:00.000 Introduction
00:02:00.000 Chapter Title
00:42:24.123 Chapter Title

00000000 Introduction
00060000 Chapter Title
00276123 Chapter Title

0.000000       0.000000        Introduction
85.180378      85.180378       Chapter Title
543.822379     543.822379      Chapter Title

Add chapter marks

Add (import) chapter marks from text file (if chapters already exist, remove first with the option -r)

mp3chaps -i episode_42.mp3

Remove chapters

mp3chaps -r episode_42.mp3

List chapters

mp3chaps -l episode_42.mp3

List chapters with frame details

mp3chaps -p episode_42.mp3

Export chapters to <filename>.chaps.txt

with timecode markers

mp3chaps -e=tc episode_42.mp3

with milliseconds markers

mp3chaps -e=ms episode_42.mp3

Export chapters to <filename>.cue

create cue sheet

mp3chaps -e=cue episode_42.mp3

Add test chapters marks

mp3chaps -t episode_42.mp3

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

mp3chapters-0.5.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

mp3chapters-0.5.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file mp3chapters-0.5.2.tar.gz.

File metadata

  • Download URL: mp3chapters-0.5.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for mp3chapters-0.5.2.tar.gz
Algorithm Hash digest
SHA256 e8ba34ff452368cf2cab8b0372bc6c8fa89dda7ee0f9080da11eebee41423aa1
MD5 484ddab681376e8cc4da7af4fc53c4fd
BLAKE2b-256 2c2fc964753b62518effc9814a1b3324acb88e6a3eb79db059a2e93a6ea849b4

See more details on using hashes here.

File details

Details for the file mp3chapters-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: mp3chapters-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.9

File hashes

Hashes for mp3chapters-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 20f39fc5268184db8cdee1662904ccd47e749b2df7d1958521caf4d84f97f68e
MD5 25dc3b0ee51a47a13b577493441530dc
BLAKE2b-256 e92e5f9bc23f7c43d2858fad5c52fd02d21b9b573eaa2513febd1cd046a31e83

See more details on using hashes here.

Supported by

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