1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 09:37:25 +00:00
bazarr/libs/enzyme/README.rst
2018-10-31 17:08:29 +01:00

27 lines
667 B
ReStructuredText

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