diff --git a/av1an/vmaf.py b/av1an/vmaf.py index 50c4d35..1353762 100755 --- a/av1an/vmaf.py +++ b/av1an/vmaf.py @@ -173,24 +173,6 @@ class VMAF: # return -ln(1-99.99/100) return 9.210340371976184 - @staticmethod - def read_vmaf_with_motion_compensation(file, percentile=0): - """Reads vmaf file with vmaf scores in it and return N percentile score from it. - - :return: N percentile score - :rtype: float - """ - - jsn = VMAF.read_json(file) - - vmafs = sorted([x["metrics"]["vmaf"] for x in jsn["frames"]]) - motion = np.average([x["metrics"]["motion2"] for x in jsn["frames"]]) - print(round(motion, 1)) - percentile = percentile if percentile != 0 else 0.25 - score = VMAF.get_percentile(vmafs, percentile) - - return round(score, 2) - @staticmethod def read_weighted_vmaf(file, percentile=0): """Reads vmaf file with vmaf scores in it and return N percentile score from it.