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.1.tar.gz (81.5 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.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkvinfo-0.0.1.tar.gz
  • Upload date:
  • Size: 81.5 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.1.tar.gz
Algorithm Hash digest
SHA256 af04c852a88c8f5e7e3d4484e170c4e92a0cbb00831247ef1288b2c3fd3a2f1f
MD5 bbc0d9d05d4dacb14340aee410260b91
BLAKE2b-256 a1dd155d221a58d8d13d979474242d234062b13b1f4c869f732a8349d27c524c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mkvinfo-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e0618c9cda76686d2cfac03cf0d8e50e2a97190da73b2bfe5468100762712f9
MD5 ebc09a58c8064a80d63c96feb5dd8bd4
BLAKE2b-256 6d1627ceaafe8102edec4d294fada0e904d194bb8e67d83085e257db85b6ae6f

See more details on using hashes here.

Provenance

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