Skip to main content

A tool for managing MP3 chapter markers, modified from mp3chaps. The original version can be found here: https://github.com/dskrad/mp3chaps

Project description

mp3chaps2


A robust command-line utility for managing chapter markers in MP3 files. This is an enhanced version of the original mp3chaps project, with improved error handling and reliability.

This utilizes the excellent eyeD3 tagging module to read and write chapter frames and title subframes.

Features

  • Add chapter markers from a text file
  • List existing chapters
  • Remove chapter markers
  • Robust error handling and validation
  • Compatible with podcast apps on Android and iOS

Requirements

Python >3.7

Installation


pip install mp3chaps2

Usage


The tool looks for chapter marks in a companion .chapters.txt file. For example, if your audio file is episode_42.mp3, create episode_42.chapters.txt in the same directory:

00:00:00.000 Introduction
00:02:00.000 Main Topic Discussion
00:42:24.123 Closing Thoughts

If you run into errors, try using ASCII. There have been some issue with Unicode.

Commands

# Add chapters (remove existing chapters first with -r for best results)
mp3chaps2 -i episode_42.mp3

# List existing chapters
mp3chaps2 -l episode_42.mp3

# Remove all chapters
mp3chaps2 -r episode_42.mp3

Options

-h  Show help text
-l  List chapters in <filename>
-i  Import chapters from <filename>.chapters.txt
-r  Remove chapters from <filename>

Development


If you want to modify this project locally, you can clone the repository and install the dependencies.

git clone https://github.com/StevenZuber/mp3chaps2.git
cd mp3chaps2
pip install -e .

Or you can install it with dependencies directly with:

pip install mp3chaps2[dev]

The requirements.txt file is also available for poeple who prefer that approach.

pip install -r requirements.txt

License

MIT License

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

mp3chaps2-1.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

mp3chaps2-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file mp3chaps2-1.0.0.tar.gz.

File metadata

  • Download URL: mp3chaps2-1.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mp3chaps2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ad49835e01d74a7b5f03242e760075acc50b77ac878ec36443b3755147ae0840
MD5 2433c37c768ea438ebf3fdbc3d67f4e3
BLAKE2b-256 1e2be3de539182515eb2bbbb8de5b0e7750c7905c2ce4249b9ca438bad7d3017

See more details on using hashes here.

File details

Details for the file mp3chaps2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mp3chaps2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mp3chaps2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a97aca9d25979de7b3330933bdec6b5a6810b81d724782469e38b7559416be94
MD5 6e403c47f6cf348aa39c838b36c7a0dc
BLAKE2b-256 32c89db5815c7e9c89b6bb8447839e4396cf5d352aeb28d4a809c46008fa0d02

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