Skip to main content

Python library for probing matroska files with mkvmerge.

Project description

mkvinfo

PyPI - Version PyPI - Python Version License PyPI - Types

GitHub Build Workflow Status GitHub Tests Workflow Status codecov

Python library for probing matroska files with mkvmerge.

Installation

mkvinfo is available on PyPI, so you can simply use pip to install it.

pip install mkvinfo

Usage

from mkvinfo import MKVInfo

mkv = MKVInfo.from_file("./Big Buck Bunny, Sunflower version.mkv")

assert mkv.file_name == "Big Buck Bunny, Sunflower version.mkv"
assert mkv.container.properties.title == "Big Buck Bunny, Sunflower version"
assert mkv.container.properties.writing_application == "mkvmerge v92.0 ('Everglow') 64-bit"

for track in mkv.tracks:
    print(f"{track.id} - {track.codec}")
    #> 0 - AVC/H.264/MPEG-4p10
    #> 1 - MP3
    #> 2 - AC-3

Checkout the complete documentation here.

License

Distributed under the MIT License. See LICENSE for more information.

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

mkvinfo-0.0.2.tar.gz (82.0 kB view details)

Uploaded Source

Built Distribution

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

mkvinfo-0.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file mkvinfo-0.0.2.tar.gz.

File metadata

  • Download URL: mkvinfo-0.0.2.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkvinfo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1e827aca3c273dbe635be4a6dbb36fe32d31192e3d85479ad5faff5141dd6cb1
MD5 c06c4c351a4ec1666485e54c2abec792
BLAKE2b-256 afc3eac243e59cd75072357b6487ee702e6dd4a2948ce9a2caf6ee305de19c03

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkvinfo-0.0.2.tar.gz:

Publisher: release.yml on Ravencentric/mkvinfo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkvinfo-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mkvinfo-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkvinfo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 50d96881ca3776727d664e2746e8fda09be0d1bbd30d1a18850bd43d3ca1ef07
MD5 b717c76b37bc45abfb92a12bb652eb2c
BLAKE2b-256 3e928c49917a00d7870804c1a2189ae1c38c6affa61cc514678e77b2b40cb913

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkvinfo-0.0.2-py3-none-any.whl:

Publisher: release.yml on Ravencentric/mkvinfo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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