Skip to main content

A tool to parse and extract audio metadata.

Project description

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

FFmpeg

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.

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

metia-0.3.5.tar.gz (53.6 MB view details)

Uploaded Source

Built Distribution

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

metia-0.3.5-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file metia-0.3.5.tar.gz.

File metadata

  • Download URL: metia-0.3.5.tar.gz
  • Upload date:
  • Size: 53.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.15

File hashes

Hashes for metia-0.3.5.tar.gz
Algorithm Hash digest
SHA256 9bbd3f4e3680ae6b2d7ea97c679b3ba90803a61a502b92de2a06c657af8616a9
MD5 ba9a448f9adb3339834e6ade85404239
BLAKE2b-256 43ff0e54bbf079dbc5ebab56a576419e168c5d453d9b6898d6cc6af267d17a5e

See more details on using hashes here.

File details

Details for the file metia-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: metia-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.15

File hashes

Hashes for metia-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 226fcd67c61a53b27194ec5100826318e78799695826a4289cf995c48cd4bf4b
MD5 c15a74c2d3dc913c37def993cb385222
BLAKE2b-256 02d4e59e929c6576e04729fe3967f3ea76825d7775f9d5be485a3efec4cbf087

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