Skip to content

Ravencentric/mkvinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Python library for probing matroska files with mkvmerge.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages