mp3tools
Merge mp3 files and set correct audio length using foobar2000 with an automated python script. These scripts can merge all files in one directory or create one file for each subdirectory.
- mp3tools merge-mp3: merging script, works with foobar2000
- mp3tools pack-subdirs: pack files into grouped subdirectories (good for large audiobooks)
- mp3tools unpack-subdirs.py: unpack files from grouped subdirectories (undo mp3tools pack-subdirs)
Version
1.2.2 Fixed
1.2.0 Added PI/CI Support thanks to https://github.com/rochacbruno/python-project-template
1.0.0 release version. Ported to vscode.
0.2.0 bug corrected foobar needs to be called from working directory as the command line plugin cannot handle empty spaces in file names or paths given by command line
0.1.0 initial release. Port from windows script to python, introducing automation
Requirements
- Python (script was created using python 3.7.0) (https://www.python.org/)
- foobar2000 (https://www.foobar2000.org/)
Installation
pip install mp3tools
Usage
Command-line-use:
mp3tools -> start tools using the interactive wizard.
mp3tools --help -> show available commands and options.
mp3tools merge-mp3 --help -> show command-specific help.
mp3tools merge-mp3 [DIR] [SUBDIR-MODE] [FOOBAR-PATH] [SECONDS]
DIR: folder containing MP3 files (default: current directory)
SUBDIR-MODE: merge each subfolder separately; if omitted, choose interactively
FOOBAR-PATH: legacy positional executable path; prefer --foobar-path
SECONDS: auto-close delay (default: 5; use -1 to disable)
mp3tools pack-subdirs [GROUP-SIZE] [DIR] [FILE-FILTER] [COPY-MODE]
GROUP-SIZE: maximum files per subdirectory (default: 15; must be positive)
DIR: folder containing files (default: current directory)
FILE-FILTER: case-sensitive substring selecting files (default: '.mp3')
COPY-MODE: copy rather than move (default: false)
mp3tools unpack-subdirs [DIR] [SUBDIR-FILTER] [FILE-FILTER] [COPY-MODE] [REMOVE-SUBDIRS]
DIR: folder containing subdirectories (default: current directory)
SUBDIR-FILTER: case-sensitive substring; '*' selects all (default: 'subdir-')
FILE-FILTER: case-sensitive substring selecting files (default: '.mp3')
COPY-MODE: copy rather than move (default: false)
REMOVE-SUBDIRS: remove emptied subdirectories (default: true)
mp3tools wait [SECONDS]
set the foobar2000 auto-close delay before opening the interactive wizard
Boolean arguments accept true/false, yes/no, y/n, ja/nein, 1/0, and on/off.
For COPY-MODE, 'move' is also accepted as false. Use --foobar-path PATH and
--mp3tag-path PATH to set executable locations; both default to their configured
paths and may be placed before or after a subcommand. The legacy `wait=SECONDS`
form remains supported.
Metadata
Release files for mp3tools 1.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mp3tools-1.2.6.tar.gz | 13.5 kB | Without provenance | Details for mp3tools-1.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mp3tools-1.2.6-py3-none-any.whl | Python 3 | none | any | Details for mp3tools-1.2.6-py3-none-any.whl |
Total release size: 25.0 kB
Release files / mp3tools-1.2.6.tar.gz
| Download URL | mp3tools-1.2.6.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca0c018a312641388620e110d926018bf053bf9fab17fedaecb390aacb86d8fa
|
|
BLAKE2b-256 checksum How to use checksums |
7736f4fcf251e0b3239ae21cbeba697e31e8d6197932da8635b084eaa93e9233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / mp3tools-1.2.6-py3-none-any.whl
| Download URL | mp3tools-1.2.6-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04f3b38a6c33ca33968085f72fa750d03079629ac548b0943c0ed0231a453747
|
|
BLAKE2b-256 checksum How to use checksums |
7e3eafc272b17ed118596ac2b7635029df5e7598dca58c9f6a36f11956247e89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for mp3tools 1.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.