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.3.tar.gz (103.6 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.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mkvinfo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d2e92864746ebe14eab5ff1a4d2d6046e6a93f6a0e1039d27da91515633acfa3
MD5 404308ed8b0a5eadabdf2526a8899872
BLAKE2b-256 a006bf3c250a733db9b2c6a6adb1936697b1adeb26b0dfadf3ab2a68d27f0d99

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkvinfo-0.0.3.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.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mkvinfo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cea106b74589c912050a4fbc03e5811cb7c1c6998bf07f1f721e7d1b2757d927
MD5 469300af394d23e7e91026a84c96e0ee
BLAKE2b-256 63630df0c651b75398c3dd7b74942995876a54a614987cba8cac52b38bad5156

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkvinfo-0.0.3-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