Skip to content

Collection of Python based utilities for manipulating MP3s.

License

Notifications You must be signed in to change notification settings

jpenney/pymp3utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pymp3utils

Utilities

mp3gainer

This is a simple wrapper for mp3gain and/or /aacgain. These tools store their replaygain data in APEv2 tags, which I don't use. This wrapper allows the tags to be stored in ID3v2 tags instead (similar to metamp3).

mp3sum

This is a utility for adding check-sum tags to mp3 files. The checksum is calculated on only the mp3 data frames, so changing meta-data on the mp3 does not invalidate the checksum. Any (and all) of the hash algorithms supported by hashlib can be used.

I wrote this after a friend of mine had some hard drive issues on his media drive, and was disappointed to find out there wasn't a way to test the integrity of his mp3 files like he could with his flac files.:

usage: mp3sum [-h] [-c] [-u] [-r] [-s [hash]] [-v] file [file ...]

Manage checksums for mp3 audio data in ID3v2 tags

positional arguments:
  file                  file(s) to process

optional arguments:
  -h, --help            show this help message and exit
  -c, --check           verify checksums (default if no other
                        operation is requested)
  -u, --update          calculate and store checksum(s) from file(s)
                        that don't already have the requested
                        checksumtype(s)
  -r, --remove          remove stored checksum(s) from file(s)
  -s [hash], --sum-type [hash]
                        type(s) of checksum(s) to calculate
  -v, --verbose

About

Collection of Python based utilities for manipulating MP3s.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages