Skip to main content

A Python Parser for DGMPGDec's D2V Project Files

Project description

pyd2v

A Python Parser for DGMPGDec's D2V Project Files

pip install pyd2v

GitHub license CodeFactor GitHub issues

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyd2v, version 1.0.0.post1
Filename, size File type Python version Upload date Hashes
Filename, size pyd2v-1.0.0.post1-py3-none-any.whl (4.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyd2v-1.0.0.post1.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page