View Full Version : Can't get ColorMill to Work
VideoFanatic
9th February 2012, 16:27
This is my script. It seems that the second instance of colormill is causing HC Encoder to crash. It just crashes without giving an error. I need the second instance to restore the natural colour tones.
Mpeg2Source("K:\New\colour test.d2v", CPU=6,info=3)
DeGrainMedian(limitY=2, limitUV=3, mode=1, interlaced=true)
converttorgb32(interlaced=true)
LoadVirtualdubPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMill.vdf","colormill",1)
colormill(25700, 31076, 21604, 25700, 25700, 25700, 25734, 25700, 25700, 25700, 25700, 25700, 25700, 1124, 5)
LoadVirtualdubPlugin("C:\Program Files\AviSynth 2.5\plugins\Camcorder_Color_Denoise_sse2.vdf","ccd",1)
ccd(41,1)
LoadVirtualdubPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMill.vdf","colormill",1)
colormill(25700, 25700, 25700, 25700, 25700, 25700, 25700, 25700, 25700, 25713, 25700, 25700, 25700, 1124, 5)
ConvertBackToYUY2()
Crop(0,0,0,-14)
Tweak(Bright=-0, Sat=1.5, Cont=1.0, Hue=0.0, Coring=False)
AddBorders(8, 0, 8, 14)
Here's a few seconds of the video: http://www.mediafire.com/?sn33cb559ppc3b5
Guest
9th February 2012, 20:37
You shouldn't load the plugin twice. You can invoke it twice but don't load it twice.
VideoFanatic
9th February 2012, 22:45
OK I deleted the red line but it still crashes.
Guest
9th February 2012, 23:04
Maybe colormill doesn't support multiple instantiation, i.e., it uses global variables. You'll have to ask the author.
VideoFanatic
9th February 2012, 23:17
The guy here told me to add a second instance and he says that 2 instances doesn't crash for him so I don't understand what the problem is: http://forum.videohelp.com/threads/343257-How-to-Fix-Patchy-Colour-with-Avisynth?p=2139621&viewfull=1#post2139621
When I use 1 instance there's a orange tint on the picture. The 2nd instance restores the natural colours.
If I can't get the 2nd instance working, any idea of a script I could use to remove the orange tint?
Guest
10th February 2012, 00:09
With this simple script I do not see any orange tint. So if there is such a tint after adding colormill(), then you must have told colormill to do that via your parameters.
loadplugin("c:\dgmpgdec\dgdecode.dll")
mpeg2source("colour test.d2v")
converttorgb32(interlaced=true)
Build up your script line by line to see what is causing what.
VideoFanatic
10th February 2012, 00:13
That's the code I was given. All I know is that it fixes the patchy colour problem but it leaves a tint. Do you know of another plugin I could use which can remove tint?
Guest
10th February 2012, 00:19
You're not following my instructions, so I will leave you on your own.
VideoFanatic
10th February 2012, 00:27
All you said was "Build up your script line by line to see what is causing what". I already know it's this line that's causing HC Encoder to crash:
LoadVirtualdubPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMill.vdf","colormill",1)
Could you be more specific of what it is that you want me to do?
Guest
10th February 2012, 00:49
We're talking about the orange tint now, not the crash.
Start your script with only what I gave above. Is it orange when opening in VirtualDub?
It shouldn't be, so if not, now add only the first colormill() line. Is it orange? If so, then your parameters are hosed.
If not, start adding the filters one by one until you see the orange. The last one added is the culprit for the orange.
You should need only one colormill() invocation so we should debug the orange thing.
VideoFanatic
12th February 2012, 13:04
It goes orange when I add the bottom 2 lines:
Mpeg2Source("K:\New\colour test.d2v", CPU=6,info=3)
DeGrainMedian(limitY=2, limitUV=3, mode=1, interlaced=true)
converttorgb32(interlaced=true)
LoadVirtualdubPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMill.vdf","colormill",1)
colormill (25700, 31076, 21604, 25700, 25700, 25700, 25734, 25700, 25700, 25713, 25700, 25700, 25700, 1124, 5)
The guy who gave me the script seemed to know what he was doing as he said he needed a 2nd instance of colormill to restore the natural colours so I don't understand why he couldn't do it right on the first instance!?
I can't even find any documentation for colormill so I don't know how to get natural colors in the first instance. Any ideas?
Or do you know of another plugin which can remove tint? Thanks
Guest
12th February 2012, 20:57
Well, you admit here that you don't legitimately own the video. And you're no longer a newbie here, so I close this.
http://forum.videohelp.com/threads/343257-How-to-Fix-Patchy-Colour-with-Avisynth?p=2139222&viewfull=1#post2139222
If you keep posting about this kind of material, you'll get struck.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.