View Full Version : Colourlike - Script errors
flebber
30th July 2008, 01:50
HI I was trying to use colourlike http://forum.doom9.org/showthread.php?t=96308.
I seem to have trouble with the scripting side of things, I keep receving errors. If I follow the formatdvd.WriteHistogram("dvd hist 100.txt", 100) the script errors with I don't know what dvd means, so I have changed it and now receive invalid arguments to writehistogram. WriteHistogram("C:\My Documents\Project\Capture\TestColor.avi hist Test.txt", 100)
I was going to create the histogram for the first clip I like and then reference that to a different script.
So I thought WriteHistogram("<input> hist 100.txt", 100)
colourlike("C:\My Documents\Project\Capture\Test.txt", "100.txt")
I must be reading it wrong because this doesn't work ?
FlimsyFeet
30th July 2008, 09:24
the script errors with I don't know what dvd means
Sorry if this is stating the obvious, but you should have a line before that looks something like this:
dvd=MPEG2source("c:\My documents\project.d2v")
flebber
30th July 2008, 10:23
Yeah what I was thinking with colourlike is that I could use it too create for the lack of a better word swatches so that if I saw scenes I liked I could take a copy of its histogram and apply it as necessary. In my head I thought this could that if I found a good outdoor scene I could take a copy of this and apply to another scene and so forth.
I am going back to the start but I can't even do that right I am having a shocker. I tried to use Histogram to do some colour correction. But that wont work for me either. Says invalid arguments to function # Set DAR in encoder to 31 : 17. The following line is for automatic signalling
global MeGUI_darx = 31
global MeGUI_dary = 17
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3DYV12.dll")
#denoiseAVISource("C:\Documents and Settings\home\My Documents\Project\Capture\Ramoness-test.avi", audio=false)
Histogram(mode="levels")
#deinterlace
#crop
Lanczos4Resize(352,288) # Lanczos4 (Sharp)
#denoise
I was then going to use tweak http://avisynth.org/mediawiki/Tweak is this a good option?
Gavino
30th July 2008, 10:36
I tried to use Histogram to do some colour correction. But that wont work for me either. Says invalid arguments to function ...
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3DYV12.dll")
#denoiseAVISource("C:\Documents and Settings\home\My Documents\Project\Capture\Ramoness-test.avi", audio=false)
Histogram(mode="levels")
As before, you have not provided any input for the function, as the source on the previous line is commented out.
FlimsyFeet
30th July 2008, 10:52
Also, histogram doesn't do colour correction, it just plots various graphs of the input video levels.
You might be thinking of HistogramAdjust, which can do the same thing as ColourLike but with luma only.
flebber
30th July 2008, 11:49
But HIstogram should tell me where the colour or hue of a clip is incorrect or needs adjusting so that if I used something like Tweak or Levels I would actually know what would be the best values to use. Wouldn't it ?
I got it working, thanks, Are there any pratical guides about how, now that I can see a histogram how I would interpret the output to specify it as "levels" or similar filter.
****** I really should have read this great guide http://www.doom9.org/index.html?/capture/postprocessing_avisynth.html better initially. Using the script editor and VdubMod+F5 key to preview changes as I am doing them is just great. So the answer to my question is that my script should have been.# Set DAR in encoder to 31 : 17. The following line is for automatic signalling
global MeGUI_darx = 31
global MeGUI_dary = 17
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3DYV12.dll")
AVISource("C:\Documents and Settings\home\My Documents\Project\Capture\Ramoness.avi", audio=false)
ConvertToYUY2()
Peachsmoother()
ConvertToYV12()
Deen("a3d",2,10,12)
fft3dfilter(sigma=2, bt=4, sharpen=0.4)
Convolution3D (0, 6, 10, 6, 8, 2.8, 0)
sat_v = 0.8
cv = - (1-sat_v)*256
ColorYUV(off_y=-25, gain_y=64, cont_u=0, cont_v = cv, opt="coring")
ConvertToYV12()
Tweak(bright=05, cont=1, sat=1.4, hue=15, coring=false)
Levels(0, 1.313, 255, 0, 255)
DeSpot(p1=30, mthres=15, p2=10, pwidth=12, pheight=10, mwidth=12, mheight=10, interlaced=false, blur=4)
Lanczos4Resize(352,288) # Lanczos4 (Sharp)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.