pymiparse
pymiparse is an easy to use parser for MediaInfo text logs. Most current MediaInfo parsing libraries for Python either act as straight wrappers around the MediaInfo binary or are only capable of translating XML output from MediaInfo.
In addition, pymiparse is capable of automatically parsing and identifying the following in a developer-friendly format, so that developers don’t have to:
All MediaInfo sections (General, Audio, Video, Text, Menu)
Filename and container
Primary video codec
Primary audio codec
Common audio channel configurations (1.0, 2.0, 2.1, 5.1, 7.1)
All audio languages
All subtitle languages
And more!
pymiparse is powerful and easy to use:
>>> import pymiparse
>>> with open('mediainfo_log.txt', 'r') as f:
... logs = pymiparse.parse_from_file(f)
...
>>> logs[0].get_primary_video_codec()
'H.264'
>>> logs[0].get_primary_audio_codec()
'AAC'
>>> logs[0].get_primary_audio_channels()
'2.0'
>>> logs[0].get_audio_languages()
['Japanese']
>>> logs[0].get_subtitle_languages()
['English', 'Japanese']
Installing
pymiparse can be installed with pip:
$ pip install pymiparse
Alternatively, you can grab the latest source code from GitHub:
$ git clone git://github.com/wchill/pymiparse.git $ python setup.py install
Documentation
To be completed…
Contributing
To be completed…
Maintainers
@wchill (Eric Ahn)
Changes
0.1.1 (2016-11-03)
Fixed several parsing bugs.
0.1.0 (2016-11-03)
Initial release.
Metadata
Release files for pymiparse 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pymiparse-0.1.1.tar.gz | 5.7 kB | Without provenance | Details |
Release files / pymiparse-0.1.1.tar.gz
| Download URL | pymiparse-0.1.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77f8bb06de545dd6d14a3e86e15c7d5ee6f3015e7c7e7afce89a7e402ff17f9c
|
|
BLAKE2b-256 checksum How to use checksums |
e30f42a9ed781b3da5c529b5b447efcab6c7454884cffa770e5a414f81941c13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pymiparse 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.