This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] AviSynth 32 bit - ColorMatrix filter not working for video?
#16
I feel terrible bumping this, but, it's still not fixed. It's the problem that wants to keep coming back to induce maximum headaches and annoyance! Tongue

I haven't had time to test it until now, so sorry about that.

Using Hybrid Dev version 2020.10.28.1.

So, the problem now, is that enabling Color Matrix and going from Rec.709 to Rec.601 has no effect (ignore the preview error message):

[Image: HToF7KR.gif]


Here's the previewer script:

ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\ImageSeq.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\ColorMatrix.dll")
# loading source: E:/USER/Test/Test-AdobeRGB.png
#  color sampling RGB24@8, matrix: bt709, scantyp: progressive, luminance scale: limited
ImageReader(file="E:\USER\Test\Test-AdobeRGB.png", end=100, fps=23.976, use_DeviL=true, pixel_type="RGB24")
# current resolution: 1440x1080
ConvertToYUY2(interlaced=false, matrix="Rec709")
# color modifications
ColorMatrix(mode="Rec.709->Rec.601",clamp=3,interlaced=false,hints=false)
# filtering
# adjust color to RGB32 (color matrix: Rec601)
ConvertToRGB32(matrix="Rec601")
PreFetch(4)
# setting output fps to 23.976fps
AssumeFPS(24000,1001)
#  output: color sampling RGB32@8, matrix: Rec.601, scantyp: progressive, luminance scale: limited
return last


And here's a debug file (toggled ColorMatrix filter off and on several times at the end):

Edit - Check the log files in the below post; the HybridDebugOutput_1028_NoChange.zip is for the above issue.



Also, I checked, and the workaround I posted above doesn't work here... it has no effect. Although that workaround was for mp4 files, not image streams.



I said above that this custom script gives correct colors in Hybrid 2020.10.20.1 for image streams:

LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\ColorMatrix.dll")
ConvertToYUY2(interlaced=false, matrix="Rec709")
ColorMatrix(mode="Rec.709->Rec.601",clamp=3,interlaced=false,hints=false)

But I'm trying it again in Hybrid 2020.10.20.1 and now that also has no effect? WTF?
Reply


Messages In This Thread
RE: AviSynth 32 bit - ColorMatrix filter not working for video? - by The_Tinkerer - 02.11.2020, 07:59

Forum Jump:


Users browsing this thread: 4 Guest(s)