Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
21st December 2006, 03:01 | #1 | Link |
Registered User
Join Date: Jul 2005
Posts: 317
|
Using ColorMill in AviSynth
Okay, I'm trying to use the Vdub filter ColorMill. I have no idea where to begin. If someone could lend me a hand. I tried searching the forums but ended up being confused with my script. My initial problem is loading the plugin. Here's my script:
Code:
LoadPlugin("g:\Kartick's Stuff\Tools\dvd editors\dgmpgdec149b3\DGDecode.dll") Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avs") Import("C:\Program Files\AviSynth 2.5\plugins\Ylevels.avs") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMatrix.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DeSpot.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SSE3Tools.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mvtools.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\fft3dfilter.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE3.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RepairSSE3.dll") LoadVirtualDubPlugin("G:\Kartick's Stuff\Tools\video tools\virtualdub\plugins\AutoLevel.VDF") Setmemorymax(512) mpeg2source("G:\Hindi Movies\HP\scripts\VideoFile.d2v",idct=5,info=3) ColorMatrix(mode="Rec.601->Rec.709",hints=true) Crop(4,68,-12,-68) LanczosResize(704,344) DeSpot(pwidth=50,pheight=50,p1=35,p2=14,mthres=25) FFT3DFilter(bt=4,sigma=2.7,ow=48/2,oh=48/2) LimitedSharpenFaster(Smode=4,strength=160,lmode=2) AddBorders(0,68,0,68) ConvertToYUY2() Please help. Thanks. |
21st December 2006, 04:33 | #2 | Link |
Registered User
Join Date: Sep 2006
Posts: 84
|
I think you forgot to specify with what filter name AVISynth should will be referencing this filter as.
try something like: LoadVirtualDubPlugin("G:\Kartick's Stuff\Tools\video tools\virtualdub\plugins\AutoLevel.VDF", "MyAutoLevel", 0) |
21st December 2006, 04:43 | #3 | Link |
Registered User
Join Date: Jul 2005
Posts: 317
|
^Thanks. That did the trick. Knew I was missing something. Now I just need to find out what params mean what. Maybe the source code can help with that. I'm gonna fool around with it and see if I come up with anything.
|
21st December 2006, 05:15 | #4 | Link |
Registered User
Join Date: Apr 2006
Posts: 81
|
This is what I figured out after gleaning a few hints on the forum, and it works for me.
Load video into VirtualDub, and tweak the filter settings to desired settings. DON'T HAVE ANY OTHER V-DUB FILTERS ACTIVE, you want your ColorMill configuration settings to be the only ones listed. Go to File > Save Processing Settings, and save the file to an easily accessible name and folder, it adds the .VCF extension automatically. In the AviSynth script, put the line LoadVirtualdubplugin(vdPath+"colormill.vdf", "colormill",1) where vdPath is the path to where you put the plugin. The entry for "colormill" tells AviSynth that this is the name you will use to call the plugin. Then use notepad to open your saved VCF file, and almost at the bottom, you will find a line that looks like this --- VirtualDub.video.filters.instance[0].Config(25700, 45924, 7268, 25700, 36452, 14235, 42596, 25665, 25700, 25700, 25700, 25700, 25700, 1124, 5); Now open your script. If your video is not in RGB, you must add a line to ConvertToRGB32() Add a line to call ColorMill, and in parentheses, copy and paste the setting numbers that follow Config (I marked the sample in bold red) Script should look something like this--- Code:
LoadVirtualdubplugin(vdPath+"colormill.vdf", "colormill",1) ConvertToRGB32() colormill(25710, 44388, 31069, 25699, 26212, 25708, 26468, \ 28516, 29028, 25700, 27260, 25701, 25700, 1124, 5) I've noticed that I sometimes must go back and tweak saturation a bit more and save a new VCF file, because my capture is in YUV and it is a RGB filter --- I think converting between RGB and YUV affects the color range a bit. hope this helps EDIT while I was typing, superuser answered the question. Oh, well, maybe someone else can use this info too. Last edited by grannyGeek; 21st December 2006 at 05:20. |
21st December 2006, 05:20 | #5 | Link |
Registered User
Join Date: Jul 2005
Posts: 317
|
^Worked like a charm. Thanks for the tips
One more question. Because of the conversion of colourspaces... would it be necessary to use colormatrix? So far, I have something like this: Code:
Setmemorymax(512) mpeg2source("G:\Hindi Movies\HP\scripts\VideoFile.d2v",idct=5,info=3) ColorMatrix(mode="Rec.601->Rec.709",hints=true) Crop(4,68,-12,-68) LanczosResize(704,344) DeSpot(pwidth=50,pheight=50,p1=35,p2=14,mthres=25) FFT3DFilter(bt=4,sigma=2.8,ow=48/2,oh=48/2) DeHalo_alpha() LimitedSharpenFaster(Smode=4,strength=100) ConvertToRGB32() ColorMill(25700, 25700, 25700, 25700, 25800, 25700, 28527, 20847, 25700, 25700, 25700, 25700, 25700, 1124, 2053) AddBorders(0,68,0,68) ConvertToYUY2() |
21st December 2006, 06:35 | #7 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
MPEG2 default is rec 601, MPEG4 default is rec 709, so if you're crossing the two you'll need it. If you're going back to MPEG2 you have to switch the order around. (And it probably won't be used at all if hints are used.)
|
21st December 2006, 07:47 | #9 | Link |
Registered User
Join Date: Jul 2005
Posts: 317
|
^that's a good idea. but here's the vcf file for eqRGB:
Code:
VirtualDub.audio.SetSource(1); VirtualDub.audio.SetMode(0); VirtualDub.audio.SetInterleave(1,500,1,0,0); VirtualDub.audio.SetClipMode(1,1); VirtualDub.audio.SetConversion(0,0,0,0,0); VirtualDub.audio.SetVolume(); VirtualDub.audio.SetCompression(); VirtualDub.audio.EnableFilterGraph(0); VirtualDub.video.SetInputFormat(0); VirtualDub.video.SetOutputFormat(7); VirtualDub.video.SetMode(3); VirtualDub.video.SetFrameRate(0,1); VirtualDub.video.SetIVTC(0,0,-1,0); VirtualDub.video.SetCompression(); VirtualDub.video.filters.Clear(); VirtualDub.video.filters.Add("RGB Equalizer(2.11)"); VirtualDub.video.filters.instance[0].Config("€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€‚€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€†€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€„€‚Œ€‚„€‚„€‚„€‚„€‚„€‚„€‚„€‘„€‚„€"); VirtualDub.audio.filters.Clear(); |
21st December 2006, 15:47 | #12 | Link | |
Registered User
Join Date: Feb 2004
Posts: 743
|
Quote:
I get simular results but the charactors are different. Try pasteing those wierd settings in to your script and see what happens, it should work, the only problem I would see is if you wanted to add sliders in "AVSp". The problem may be solved add just by adding the correct language pack to your computer You could contact "Fdump" he's very helpful, I worked with him on the fuctions needed in his filters. For me in the color restoration of old movie film, I need to change the values for every scene, so "Avsynth" doesn't work for me with his filters. I output from "AVSp" to Vdub where I can do a "JobList" but even better, Magix A.G. in their new EP-11 Plus UK version NLE, I can add most VD plugins on a field or frame basis, so after all my film editing is done, I then add the color correction. Richard photorecall.net |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|