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.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.tar.gz
(3.5 kB
view hashes)
Built Distribution
pyd2v-1.0.0-py3-none-any.whl
(4.3 kB
view hashes)