Skip to main content

D2V Source for VapourSynth (Example)

As the title says, this is a D2V parser and decoder for VapourSynth. There's not much else to say, so let's get right to an example:

import vapoursynth as vs

core = vs.get_core()

core.std.LoadPlugin(path=r'C:\path\to\d2vsource.dll')

ret = core.d2v.Source(input=r'C:\path\to\my.d2v')

ret.set_output()

Parameters: input - Full path to input D2V file. nocrop - Always use direct-rendered buffer, which may need cropping. Provides a speedup when you know you need to crop your image anyway, by avoiding extra memcpy calls. rff - Invoke ApplyRFF (True by default) threads - Number of threads FFmpeg should use. Default is 0 (auto).

About RFF Flags

Unlike DGDecode, it's up to the user to apply RFF flags as they see fit, by passing rff=True to the source function, or by passing rff=False and using core.d2v.ApplyRFF(clip, d2v=r'C:\path\to\my.d2v') after calling the source function. Unless you know your source is 100% FILM, you probably want to apply these. DGDecode's traditional "Force FILM" mode isn't really present in this plugin, but if your source or part of it is 100% FILM, which is the only time you should be Force FILMing anyway, you can simply set Force FILM in DGIndex, which will set the framerate properly in the D2V file, and then not apply RFF flags. It's also feasible to trim away any non-FILM frames and still Force FILM.

Parameters: clip - Input clip. d2v - D2V file for parsing RFF flags. This will be optional in the future, once VapourSynth gets global metadata support.

Known Limitations & Bugs

  • Only works with D2V files created by DGIndex (version flag 16) or D2VWitch (https://github.com/dubhater/D2VWitch).
  • Not all the IDCT algorithms in DGDecode are in libavcodec, so I've tried to map them as best I could. See idct_algo_conv in d2v.hpp for more info.
  • Does not support user specified cropping. Would be easy to add, but I disagree with the premise. Use VapourSynth's cropping.
  • Needs the full path to the D2V file.
  • Probably more I'm forgetting!

How to Build for Development

On Windows (Visual Studio):

Install FFmpeg using vcpkg and then use the included Visual Studio solution.

Please note that MinGW-built FFmpeg will be faster than one build with Visual
Studio, due to its use of inline assembly. Also note that only MinGW-w64 is
supported.

Metadata

Release files for vapoursynth-d2vsource 1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vapoursynth-d2vsource 1.4
File Size Uploaded Provenance
vapoursynth_d2vsource-1.4.tar.gz 29.5 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for vapoursynth-d2vsource 1.4
File
vapoursynth_d2vsource-1.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
vapoursynth_d2vsource-1.4-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details
vapoursynth_d2vsource-1.4-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details
vapoursynth_d2vsource-1.4-py3-none-macosx_15_0_x86_64.whl Python 3 none macOS 15.0+ x86-64 Details
vapoursynth_d2vsource-1.4-py3-none-macosx_15_0_arm64.whl Python 3 none macOS 15.0+ ARM64 Details

Total release size: 40.9 MB

Release files / vapoursynth_d2vsource-1.4.tar.gz

Download URL vapoursynth_d2vsource-1.4.tar.gz
Size 29.5 kB
Tags Source
SHA-256 checksum
How to use checksums
070e7ff185888c7ceafd602a2434f02e4a09c63d092fa1c0d210a5a5e2cf5e56
BLAKE2b-256 checksum
How to use checksums
6ffe050737fc63ed0afb72cac767f20492df00c7c5019ae4357f530d1cb4137f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release files / vapoursynth_d2vsource-1.4-py3-none-win_amd64.whl

Download URL vapoursynth_d2vsource-1.4-py3-none-win_amd64.whl
Size 8.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f594160446d79e912b02644a8c875cd37efe054823f8cd53a4ba4e544f9fecd8
BLAKE2b-256 checksum
How to use checksums
665fcc9f5e01f59d59c2046fc0726c762acdcd5803fe19d07a45cf7542d53476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release files / vapoursynth_d2vsource-1.4-py3-none-manylinux_2_28_x86_64.whl

Download URL vapoursynth_d2vsource-1.4-py3-none-manylinux_2_28_x86_64.whl
Size 8.8 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
eb7a0295d47e6183e28c164ecee401ecfde71c37a910c4739f4b35905d9c3834
BLAKE2b-256 checksum
How to use checksums
fedc15d6fd93802f3387312340c1d43d6955ba691bba7ace62a801179cbba115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release files / vapoursynth_d2vsource-1.4-py3-none-manylinux_2_28_aarch64.whl

Download URL vapoursynth_d2vsource-1.4-py3-none-manylinux_2_28_aarch64.whl
Size 8.6 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2548a5026ec48082db35b4822524cea21ba2131a89fa7fd0ec03526a4ffcc11f
BLAKE2b-256 checksum
How to use checksums
72ac7ef4c5ddf79372d6d10693380dfbfbb7657b8e60fcc39735206644178891
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release files / vapoursynth_d2vsource-1.4-py3-none-macosx_15_0_x86_64.whl

Download URL vapoursynth_d2vsource-1.4-py3-none-macosx_15_0_x86_64.whl
Size 7.6 MB
Tags Python 3 macOS 15.0+ x86-64
SHA-256 checksum
How to use checksums
63000b9ea6444139c2b457d8f84904097fae20eac9f5a81ce3c5d8a2f195707d
BLAKE2b-256 checksum
How to use checksums
624c04722cc1990470d6dbc1e8935e0780589d49d592eca6f6650e71a837cab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Release files / vapoursynth_d2vsource-1.4-py3-none-macosx_15_0_arm64.whl

Download URL vapoursynth_d2vsource-1.4-py3-none-macosx_15_0_arm64.whl
Size 6.9 MB
Tags Python 3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
a73af0e3a199330a2ca850d6ea18f12afe3123e991740a6526cdc1e5c1d69f4c
BLAKE2b-256 checksum
How to use checksums
c3fcf152c012e3a1ada9c46fe2eeb5bff1783fe6b3461f80f4168969f5845402
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

Security for vapoursynth-d2vsource 1.4

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.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for vapoursynth_d2vsource-1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 9, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.4 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page