You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bazarr/libs/enzyme
panni 8f584143f8
update deps
6 years ago
..
parsers update deps 6 years ago
tests update deps 6 years ago
HISTORY.rst update deps 6 years ago
LICENSE update deps 6 years ago
README.rst update deps 6 years ago
__init__.py update deps 6 years ago
compat.py Integrated enzyme module with included PR to fix #40 6 years ago
exceptions.py Integrated enzyme module with included PR to fix #40 6 years ago
mkv.py update deps 6 years ago
subtitle.py update deps 6 years ago

README.rst

Enzyme

======

Enzyme is a Python module to parse video metadata.

.. image:: https://travis-ci.org/Diaoul/enzyme.png?branch=master
:target: https://travis-ci.org/Diaoul/enzyme


Usage
-----
Parse a MKV file::

>>> with open('How.I.Met.Your.Mother.S08E21.720p.HDTV.X264-DIMENSION.mkv', 'rb') as f:
... mkv = enzyme.MKV(f)
...
>>> mkv.info
<Info [title=None, duration=0:20:56.005000, date=2013-04-15 14:06:50]>
>>> mkv.video_tracks
[<VideoTrack [1, 1280x720, V_MPEG4/ISO/AVC, name=None, language=eng]>]
>>> mkv.audio_tracks
[<AudioTrack [2, 6 channel(s), 48000Hz, A_AC3, name=None, language=und]>]


License
-------
Apache2