Metia
A tool (and a wrapper of FFmpeg) to manipulate metadata of audio files.
This library is developed under Python 3.8.
Installation
pip install -U metia
Dependency
Usage
All of the functionalities requires a ffmpeg/ffprobe build that has the
corresponding codec that the media is using. To set a custom build of
ffmpeg/ffprobe, set the variables metia.probe.FFPROBE_COMMAND and/or
metia.writter.FFMPEG_COMMAND.
metia.Probe
If all you want to do is to read the metadata, use this class. This provides a
wrapper of ffprobe to extract commonly-used media metadata, such as bit-rate
and codec.
Some methods of this class may be helpful to video files too.
metia.Media
WORK IN PROGRESS
This class, apart from reading the metadata, allows you to alter the metadata, including changing the tags of the media file and adding a cover art to it.
This class, unlike metia.probe.Probe, is highly targeted to music files (with
or without cover art). Although it is possible to integrate some video-related
features, the demands might differ so much that it's unworthy compared to using
the original ffmpeg commands. Thus, I believe a better way to utilize this
library with videos is to use metia.probe.Probe to extract the information you
want and use os.system (or other equivalent) to invoke a ffmpeg command.
Alternatively, you may look for other more powerful ffmpeg wrappers that has
support for more ffmpeg features, but that is beyond the scope of this project.
Command Line Interface
This tool provides command-line interface for convenience.
metia-probe: print the media info in a nicer (less messy) format
Development
This library is hosted on this Github repository. Visit to fork or create issue/PR.
Metadata
Release files for metia 0.3.5
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 |
|---|---|---|---|---|
| metia-0.3.5.tar.gz | 53.6 MB | Without provenance | Details for metia-0.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metia-0.3.5-py3-none-any.whl | Python 3 | none | any | Details for metia-0.3.5-py3-none-any.whl |
Total release size: 53.6 MB
Release files / metia-0.3.5.tar.gz
| Download URL | metia-0.3.5.tar.gz |
|---|---|
| Size | 53.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bbd3f4e3680ae6b2d7ea97c679b3ba90803a61a502b92de2a06c657af8616a9
|
|
BLAKE2b-256 checksum How to use checksums |
43ff0e54bbf079dbc5ebab56a576419e168c5d453d9b6898d6cc6af267d17a5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.15
|
Release files / metia-0.3.5-py3-none-any.whl
| Download URL | metia-0.3.5-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
226fcd67c61a53b27194ec5100826318e78799695826a4289cf995c48cd4bf4b
|
|
BLAKE2b-256 checksum How to use checksums |
02d4e59e929c6576e04729fe3967f3ea76825d7775f9d5be485a3efec4cbf087
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.15
|
Security for metia 0.3.5
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.