View Full Version : ConvertToRGB - matrix
When converting to RGB using ConvertToRGB, should a matrix be provided or will the function recognize itself based on the frame parameters which matrix (601 or 709) to convert from?
Emulgator
4th June 2024, 19:59
AviSynth assumes Rec601 as default, anything else you will have to provide.
AviSynth can not know, only believe from there.
From old AviSynth help:
Options
matrix
Default Rec601. Controls the colour coefficients and scaling factors used in RGB - YUV conversions.
"Rec601" : Uses Rec.601 coefficients; scale full range [0..255] RGB to TV range [16..235] YUV, and vice versa.
"Rec709" : Uses Rec.709 coefficients; scale full range [0..255] RGB to TV range [16..235] YUV, and vice versa.
"PC.601" : Uses Rec.601 coefficients, keep full range.
"PC.709" : Uses Rec.709 coefficients, keep full range.
"AVERAGE" : Uses averaged coefficients, keep full range. (So the luma becomes the average of the RGB channels.)
With the advent of frame properties some conversions may pass some more parameters:
http://avisynth.nl/index.php/ConvertToRGB
If you know matrix (and also range mapping required) it is most safe way to provide it.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.