A Python Parser for DGMPGDec's D2V Project Files
Project description
pyd2v
A Python Parser for DGMPGDec's D2V Project Files
pip install pyd2v
Documentation
Quick Example
# pip install pyd2v
from pyd2v import D2V
# ...
# Choose Input File
input_file = "/home/user/Desktop/video.d2v"
# Parse Input File
d2v = D2V()
d2v = d2v.parse(file_path=input_file)
# Print D2V Options, which will be shown with the accessible variable names.
# Data will not be printed as it will be too large
print(d2v)
# Print Media Files
print(d2v.header.videos)
# Print Frame Rate
print(d2v.settings.frame_rate)
# Print first frame data
print(d2v.data.frames[0])
parse
Send a D2V to a D2V object to be parsed. Nothing will be returned, if failure it will raise a ValueError Exception. If successful, three options will be available, header
, settings
and data
which can be accessed via d2v_obj.header
.
D2V.parse(str file_path)
- file_path: File path to DGIndex Project File (
.d2v
extension)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyd2v-1.0.0.post1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pyd2v-1.0.0.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045e12eb32e4e5e182d410b5eeeca1a7fdee1e5b0994607f663b5780e1352e29 |
|
MD5 | 6709969549ebdaa8131f091008a163fe |
|
BLAKE2b-256 | 47806dbd1845b3ba29b50bb60f73befc0e40c24efe45e61c6e972e8e8a9fae26 |