Skip to main content

A VapourSynth wrapper for the FLIP perceptual metric

Project description

vsflip

vsflip is a Python wrapper for VapourSynt that enables perceptual video comparison using the FLIP metric. It computes frame-by-frame error maps that quantify visual differences between a reference and a test video.

This wrapper integrates the flip Python library and works entirely within VapourSynth pipelines.

📦 Features

  • Frame-by-frame FLIP comparison between two VideoNode.
  • Outputs GrayscaleS error maps where darker pixels indicate better perceptual similarity.
  • Supports both LDR and HDR evaluation modes.
  • Optionally exports error maps as images (.png). Only

🛠 Requirements

🚀 Installation

You can install vsflip via pip:

pip install vsflip

✏️ Basic Usage

from vsflip import vsflip_frame, vsflip_video

# Compare the first frame of two clips
result = vsflip_frame(ref_clip, test_clip)

# Compare all frames (must be aligned and same length)
result = vsflip_video(ref_clip, test_clip)
  • Both functions return a VideoNode (GRAYS format).

  • Refer to the Python docstrings for detailed parameter descriptions and options.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Third-party Dependencies

This project uses the FLIP metric python wrapper by NVIDIA, which is licensed under the BSD 3-Clause License.

The flip library's source code or binaries are not bundled with this project. It is installed separately as a required runtime dependency.

TODO List

Hoping that Nvidia hasn't dropped the project, I want to create the Python wrapper and the Vaporsynth implementation for the CUDA version as well. I actually tried, but I miserably failed...

Any help is appreciated.

📬 Contact

For questions, bugs, or feature requests, feel free to open an issue or pull request.

Project details


Download files

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

Source Distribution

vsflip-1.0.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vsflip-1.0.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file vsflip-1.0.2.tar.gz.

File metadata

  • Download URL: vsflip-1.0.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vsflip-1.0.2.tar.gz
Algorithm Hash digest
SHA256 492c25a48703b25c323bed22d57c784be719e2140564fdfb19d14692b990c0ee
MD5 876c15dcb6526918864fe47cf5457b4c
BLAKE2b-256 8b8831fd5d24d70e132276f237cf89dd99f449e8ee33d990239d2e9b3c4097a5

See more details on using hashes here.

File details

Details for the file vsflip-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: vsflip-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vsflip-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eae051fbc26627e27c8de7ff38a48ebfc84da1fbadcd6ec1f3748ba589180d5a
MD5 fff4cb36dd5816d73488c30fb06a70d2
BLAKE2b-256 196c203d89b90002891fd811a05a5ae8fc8add07edbec5540cedc9bfc3991d92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page