the actual halo issues can be reduced like this:
Code:
AviSource("YV12.avi")
ConvertToRGB32(matrix="PC.601",interlaced=false,chromaresample="lanczos4")
C24c ="0 0 2 0 0 0 -5 -15 -5 0 5 -5 170 -5 5 0 -5 -15 -5 0 0 0 2 0 0"
C40h1 ="5 -11 29 -25 177 0 0 -0 -3 -50 0 0 -5 -0 40 0 0 0 0 -5 0 0 0 0 5"
C40h1RY="5 0 0 0 0 -5 0 0 0 0 80 0 -5 0 0 -50 -3 0 0 0 177 -25 29 -11 5"
GeneralConvolution(0, C24c)
GeneralConvolution(0, C40h1)
GeneralConvolution(0, C40h1RY)
ConvertToYV12(matrix="PC.601",interlaced=false,chromaresample="lanczos4")
----------------
in the screen shot I used the following color settings, should be easy to translate to the avisynth filters:
Code:
adm.addVideoFilter("contrast", "coef=0.970000", "offset=40", "doLuma=False", "doChromaU=False", "doChromaV=True")
adm.addVideoFilter("colorYuv", "y_gain=0.000000", "y_bright=0.000000", "y_gamma=5.400000"
, "y_contrast=11.000000", "u_gain=0.000000", "u_bright=0.000000", "u_gamma=0.000000"
, "u_contrast=11.000000", "v_gain=0.000000", "v_bright=0.000000"
, "v_gamma=0.000000", "v_contrast=0.000000", "matrix=0", "levels=0", "opt=False", "colorbars=0", "analyze=1", "autowhite=False", "autogain=False")
(the actual processed video looks better than the auto-converted jpg.)
I found some artifacts though, they come from mpeg artifacts in the video, plus the convolution should have a higher precision than 8 bit.