View Full Version : 0-255 colorrange to 16-235 colorrange in RGB colorspace
EncodeThis
21st March 2008, 01:46
I was wondering what filter or plugin I should use in AVIsynth in order to get some video footage that I have that is in 0-255 colorrange to 16-235 colorrange in the RGB colorspace? I already know there is a filter in Virtual Dub but just wondering if there is one in AVIsynth.
hkazemi
21st March 2008, 04:28
The coloryuv filter will let you convert between TV scale 16-235 and PC scale 0-255.
http://avisynth.org/mediawiki/ColorYUV
http://forum.doom9.org/showthread.php?t=109443
Colormatrix is used for BT.601 <-> BT.709 conversions
http://forum.doom9.org/showthread.php?t=133982
http://forum.doom9.org/showthread.php?t=82217
smok3
21st March 2008, 09:21
i use
# PC to TV ; scales a [0,255] clip to [16,235]:
Levels(0, 1, 255, 16, 235, coring=false)
found here;
http://avisynth.org/mediawiki/Levels
EncodeThis
21st March 2008, 21:07
Thanks. But now where can I go to download these filters?
J_Darnley
21st March 2008, 22:50
Levels and ColorYUV are both internal and ColorMatrix is found with a quick search.
MADAJ
22nd March 2008, 09:12
Thanks. But now where can I go to download these filters?
I don't think it needs a filter. Just add Levels(0, 1, 255, 16, 235, coring=false) in your avs script.
IanB
23rd March 2008, 06:17
And for completeness in RGB space you could use :-
RGBAdjust(r=0.859, g=0.859, b=0.859, rb=16, gb=16, bb=16)
This is an internal filter.
If changing between YUV and RGB colour spaces then matrix="PC.601" or "PC.709" avoids any PC<->TV levels conversion.
And Levels() can be used in either YUV or RGB colour spaces.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.