Skip to main content

Awesome mp3tools created by carsten-engelke

Project description

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.

merge mp3 files from subdirectories

  • 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

Installation

pip install mp3tools

Usage

Command-line-use:

mp3tools -> start tools using standard wizard, just follow instructions.

mp3tools merge-mp3 [dir] [subdir-mode] [foobarpath] [autowaittime]
    [dir] determines the directory in which to perform. Use '.' to select the current directory
    [subdir-mode] determines wheter all mp3 files in subfolders should be merged into one file each. ('True' to do so)")
    [foobarpath] determines the path to your foobar2000 installation. Please provide in case it differs from 'C:/Program Files (x86)/foobar2000/foobar2000.exe'
    [autowaittime] determines whether to automatically close foobar2000 after some seconds. Use -1 to disable and any number to set the waiting time.

mp3tools pack-subdirs [group-size] [dir] [file-filter] [copy-mode]
    [group-size] determines the number of files to put into each directory
    [dir] determines the directory in which to perform the script. Use '.' to select the current directory
    [file-filter] Filter the file list according to this
    [copy-mode] If 'True', the files are copied into the created subfolders. If 'False' they are moved (Use with caution).

mp3tools unpack-subdirs [dir] [subdir-filter] [filter] [copy-mode] [remove-dir]")
    [dir] determines the directory in which to perform the script. Use '.' to select the current directory
    [subdir-filter] Filter the subdir list according to this. Use '*' to select any subdirectory
    [filter] Filter the file list according to this
    [copy-mode] If 'True', the files are copied into the parent folder. If 'False' they are moved (Use with caution).
    [remove-dir] If 'True', the subdirectories are deleted. If 'False' they are left as they are.

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

mp3tools-1.2.3.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

mp3tools-1.2.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file mp3tools-1.2.3.tar.gz.

File metadata

  • Download URL: mp3tools-1.2.3.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for mp3tools-1.2.3.tar.gz
Algorithm Hash digest
SHA256 aeaec334cf86ec5d463a1c6cd094b4b39d692b776fc15d8323e0db83219979ba
MD5 ff3bee88aebd94f8fd4cc75693a9bf30
BLAKE2b-256 5e19b310e26530b7fd286e90ba601243071050ecf7f1a3b158abb181a000c597

See more details on using hashes here.

File details

Details for the file mp3tools-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: mp3tools-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for mp3tools-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fa333097c12e3a27d3db4b2daa18618a0daa3c13b6f3e1e207b70bab19e5a26c
MD5 9abb55921d8733116a2dbfa3c7184a1f
BLAKE2b-256 f9a78b751247fac73cdeb91fd28de54f2b211a74afe35988f73bcec93a2d4cf2

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