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
Source code available here
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mp3chaps2-1.0.5.tar.gz.
File metadata
- Download URL: mp3chaps2-1.0.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e64657a4b69aa00fee5bed239a9ce03a6fade06d75374256f32bc34b0ab98dd
|
|
| MD5 |
343c315b6a60ec2bf57f38e891f92ef6
|
|
| BLAKE2b-256 |
92b0e1aa2b198c6d723ae618a3596298dcde74164c0fb6acd011c67693a151d8
|
File details
Details for the file mp3chaps2-1.0.5-py3-none-any.whl.
File metadata
- Download URL: mp3chaps2-1.0.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86badc6cf4f8c39f1a83262e6d382d84c0ba9d764bcdf2af4cb8dd832e78dd28
|
|
| MD5 |
e8367b8260a673c5715c46fea4ff0f10
|
|
| BLAKE2b-256 |
ad3bdd346db586ff5f24d6bc5cc4c8f8218eebe989001cc4204c1523d6f50b94
|