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 (Fidelity Loss Image Processing). 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
LDRandHDRevaluation modes (). - Optionally exports error maps as images (
.png).
🛠 Requirements
- Python ≥ 3.13
- VapourSynth R71 or newer
- NumPy
- Matplotlib
- flip
🚀 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 in grayscale (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.
📬 Contact
For questions, bugs, or feature requests, feel free to open an issue or pull request.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vsflip-1.0.1.tar.gz.
File metadata
- Download URL: vsflip-1.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
939d3425205f8100ff49388b0575bfcfd0876cf7aeca818e0da3932c90aeb7fb
|
|
| MD5 |
5174aaee31381e6194516022e37664bf
|
|
| BLAKE2b-256 |
3c726c1893bd1be5c883e7b715cb36f0f1176339a54e653881ceb5dc213747d2
|
File details
Details for the file vsflip-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vsflip-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9481d5b07d21286f6f3480de9ab094e47447f9d2cef474324d72d57e3d8653b
|
|
| MD5 |
557adcb874e4a55e46f9eca5bc2a7a0f
|
|
| BLAKE2b-256 |
bc2f174130881c6e6c77539dce8fb505ba64d1bd40d335841aa79e92eab9b45e
|