Log in

View Full Version : Correct placement of ColorMatrix in AviSynth script?


orion44
7th September 2023, 00:41
When converting Blu-Ray to SD resolution, where should I put the ColorMatrix filter?

Before cropping and resizing, or after resizing?

This is my current script:

DGSource("D:\Project\m2ts.dgi")
ColorMatrix(mode="Rec.709->Rec.601")
Crop(4,0,1916,1080)
BicubicResize(720,404,b=0,c=0.5)
Trim(0,154009)
#SelectRangeEvery(1918,96)

Sharc
7th September 2023, 16:52
It doesn't matter for the end result. However, I would insert it after resizing because players may default to 709 when you watch the video at the original HD resolution (e.g. for debugging the script) but default to 601 when you watch it at the downscaled SD resolution.