View Full Version : Does Avsresize perform color matrix conversion before or after downscaling?
orion44
28th July 2025, 01:08
I'm downscaling 1080p Blu-ray to 960x540 resolution.
In the following line, is the color matrix conversion performed before or after downscaling:
z_ConvertFormat(width=960,height=540,pixel_type="YV12",colorspace_op="709:709:709:limited=>170m:601:170m:limited",resample_filter="spline64",cpu_type="avx2")
How do I do the following, but with z_ConvertFormat:
Spline64Resize(960,540)
FineSharp(...)
ColorMatrix(mode="Rec.709->Rec.601")
To make test you can do separate filter calls sequence and check results with single call.
StvG
28th July 2025, 11:16
IIRC the color conversion is done on the smaller resolution to get optimal speed. If target resolution is smaller then it's done after resizing and if the source resolution is smaller then it's done before resizing.
orion44
28th July 2025, 15:02
I'm new to modern AviSynth+.
Can z_ConvertFormat downscale the resolution without any sort of color matrix conversion?
And after sharpening, can z_ConvertFormat apply color matrix conversion without touching the current resolution?
StvG
28th July 2025, 20:34
I'm new to modern AviSynth+.
Can z_ConvertFormat downscale the resolution without any sort of color matrix conversion?
And after sharpening, can z_ConvertFormat apply color matrix conversion without touching the current resolution?
First question - yes. It has also z_xxx functions that are also for resizing.
Second question - yes.
For it usage refer the documentation.
Split your single filter call in a sequence of calls:
Resize -
z_ConvertFormat(width=960,height=540,pixel_type="YV12",resample_filter="spline64",cpu_type="avx2")
Matrix -
z_ConvertFormat(colorspace_op="709:709:709:limited=>170m:601:170m:limited",cpu_type="avx2")
And insert sharpener if required in between.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.