Skip to content

fdar0536/VapourSynth-butteraugli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VapourSynth-butteraugli

Introduction

It's base on Google's butteraugli.
Please refer to the original document.

Usage

butteraugli.butteraugli(clip clipa, clip clipb, bint heatmap = true)
  • Both clipa and clipb MUST be in RGB24 format.
  • If heatmap is set to true, it returns a heatmap contains differences between two input clips, else just copy clipb.
  • Either heatmap is true or not, it stores diffvalue in the frame properties named "_Diff".

Example

import mvsfunc as mvf

clipa = core.std.Trim(src1, 0, 0)
clipa = mvf.ToRGB(clipa, depth = 8)
clipb = core.std.Trim(src2, 0, 0)
clipb = mvf.ToRGB(clipb, depth = 8)

diff = core.butteraugli.butteraugli(clipa, clipb)

Compilation

meson build
ninja -C build

Licence

Apache 2.0

Reference

libpnmio