View Full Version : AGKPal - another AutoGK tweaker
Mr2001
26th September 2005, 10:44
Announcing AGKPal, a tool based on gircobain's excellent AutoGK Tweaker.
Instead of pausing before each pass to edit the scripts manually, you tell AGKPal the changes you want to make to the AviSynth file (using regular expressions) and it applies them automatically.
There's also some experimental support for changing compression options (e.g. to use interlaced encoding), but without knowing the format of the base64-encoded codec settings, it's hard to do this automatically.
I use it for cleaning up my noisy TiVo recordings... Deen does the job better than RemoveGrain. I'm sure you all will come up with other uses for it.
Download AGKPal 0.11 (http://hansprestige.com/agkpal/AGKPal-0.11.zip)
unskinnyboy
26th September 2005, 16:32
Nice one, Thanks. Will test this.
This will be useful for all those newbies are willing to painstakingly tweak AutoGK to death, but still won't touch GordianKnot. :D
laserfan
31st October 2005, 23:47
Has anyone actually tried and succeeded to get this to work? It appears VDMReplacement is corrupt in the zip file (only 14Kb!).
Mr2001
1st November 2005, 03:19
The archive tests OK. VDMReplacement.exe is 40k in the zip file (13k compressed), which is normal because this is a .NET application.
Guess I forgot to mention that - if you can't get it to run, install .NET Framework 2.0 Beta 2 (http://www.microsoft.com/downloads/details.aspx?FamilyID=7ABD8C8F-287E-4C7E-9A4A-A4ECFF40FC8E&displaylang=en). I haven't tested it with the released version of the 2.0 framework that just came out.
BigDid
9th November 2005, 20:57
Announcing AGKPal, a tool based on gircobain's excellent AutoGK Tweaker.
Instead of pausing before each pass to edit the scripts manually, you tell AGKPal the changes you want to make to the AviSynth file (using regular expressions) and it applies them automatically.
...
Download AGKPal 0.11 (http://hansprestige.com/agkpal/AGKPal-0.11.zip)
Nice once I got used to.
I also use it for capture filtering and de-rainbowing.
The easy side is if you use the same directory and settings is you can just forget it once launched :)
Thanks for your tool;
Did
bananacreamandpeca
10th January 2006, 23:50
Nice one, Thanks. Will test this.
This will be useful for all those newbies are willing to painstakingly tweak AutoGK to death, but still won't touch GordianKnot. :D
Yes, I know it's funny.
But I find ripping and encoding video with some codec so very very painstakingly difficult.
I mean all those seperate things to consider and then the settings.
They made it a whole seperate science out of encoding video!
agk will help newbies like me get started.
BYW. I just want to override/change the removegrain.dll with agk.
How exactly do I do that?
Any help?
I just read that whatever, tweak-utility and then another dll will make it do something else
and then sometimes vdubmod will not copy back sorrectly.
MG!
Please a step by step.
BigDid
11th January 2006, 01:12
Please refer to the "AGKPal-README.html" inside the zip package
If it does'nt launch re-read the readme: you need Microsoft .NET Framework 2.0 :D
1/
... How to Use
Start AutoGK, then start AutoGKTweaker.exe. Add a job to AutoGK and start it; the AGKPal Countdown dialog box will appear automatically during the job...
Click the "AVS Pattern Editor" button in the countdown window. The AVS Script Search and Replace dialog box will appear...
2/
First time, use the deen button, the removegrain will automatically replaced by deen {same as deen()}
3/
If you want to use another filter replace deen by "filter()" like "removegrain(mode=5)"
For 2 or more filters syntax is "filter1().filter2().filter3() note the dot{.} separation between 2 filters
4/
After used for the first time it is easier to edit the file agkpal.xml in notepad and change {to="Deen()"} by {to="removegrain(mode=5)"} and/or more filters
Try 1 easy filter first (like removegrain), one step at a time after. You will be trying to use the powerful and difficult avisynth syntax and you can get errors very soon/often. :o
This is why AGKPal/tweaker is only the first step in avisynth filtering ;)
You can also see this thread to get more knowledge: http://forum.doom9.org/showthread.php?t=79227
Happy filtering
Did
BigDid
12th January 2006, 20:17
...?
understandable?
Working?
Useful? (if not say it, so I can go fishing :) )
Did
BigDid
13th January 2006, 18:14
I go fishing
:(
http://forum.doom9.org/showthread.php?t=52597
http://forum.doom9.org/showthread.php?t=14432
http://forum.doom9.org/showthread.php?s=&threadid=7770
Did
bananacreamandpeca
16th January 2006, 12:48
Hi bigdid!
sorry, so rude of me not to come back and see if i had any replies.
once again sorry.
I will get with it and try the step-by-step tonight!
thank you very much for taking the time to help a noob in video ;)
appreciated! :goodpost:
kentar
18th January 2006, 01:18
Can I use this to specify my own encoding options ? e.g. QPEL, GMC, no custom matrix, etc. ?
Thanks
seehowyouare
19th January 2006, 18:44
Hi all,
AutoGK works fine for me as is so I have never played with AGKPal or it's predecessor.
I'd like AutoGK to automatically pause for 20 minutes between/during jobs to let the computer "catch it's breath" and cool down. My encoding jobs run while I sleep so I can't monitor them to add jobs.
Can AGKPal be tweaked to run a script that simply does nothing but wait until a certain time has passed and then return control back to AutoGK ?
From another angle, is it possible to insert a dummy job into AutoGK that consumes minimal CPU, takes some time to complete and then disappears to allow the next/current job to complete.
Finally, I use a freeware tool to automate button clicking called PTFB and it "Pushes The Freaking Button" automatically whenever it pops up, or after a set time................ idea .....
Cheers
BigDid
20th January 2006, 22:16
Can I use this to specify my own encoding options ? e.g. QPEL, GMC, no custom matrix, etc. ?
Thanks
Hi,
Yes it should be possible, see the readme. If working, you'll have to manually "edit codec" button for each pass.
Did
BigDid
20th January 2006, 22:51
...Can AGKPal be tweaked to run a script that simply does nothing but wait until a certain time has passed and then return control back to AutoGK ?
Dunno, it's using .net...
From another angle, is it possible to insert a dummy job into AutoGK that consumes minimal CPU, takes some time to complete and then disappears to allow the next/current job to complete.
You could try a long preview between jobs?
Finally, I use a freeware tool to automate button clicking called PTFB and it "Pushes The Freaking Button" automatically whenever it pops up, or after a set time................ idea .....
You could try :
make it click between buttons -> will stop the countdown
after a set time -> make it click start button, will resume the job ?
Did
kentar
21st January 2006, 01:05
Thanks, I'll give it a try !
Might be exactly what I'm looking for... ;)
kentar
21st January 2006, 02:16
Questions (hope you don't mind)
1. How can I make the program not to countdown ? (let's say I'm not at the computer in between the passes).
2. If I modify only the codec options (by adding: modified matrix, QPEL, GMC), how can I see how the original .AVS looks like and how the modified one looks like (to try and find a replaceable pattern to use on every encoding job).
Are the settings stored in .AVS file ? Couldn't see any difference between the default one and the one after modifications were made to the codec settings.
Thanks a lot !
BigDid
21st January 2006, 08:31
PM sent,
For 1- ask Seehowyouare if his proggy can do that
Did
kentar
21st January 2006, 17:58
Thanks a lot BigDid, don't know why... I had the impression you're the author of AGKpal. Sorry for the mistake.
Now, I'm doing tests with AGKpal and DivX / Xvid with different settings.
When trying it with DivX, after modifying some codec settings I got an error message:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: initialData and newData lengths must match
at AGKPal.CodecStateDiff..ctor(Int32 codec, Byte[] initialData, Byte[] newData)
at AGKPal.Tweaks.SetCodecData(Int32 codec, Byte[] initialData, Byte[] newData)
at AGKPal.CountdownForm.btnEditCodec_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
VDMReplacement
Assembly Version: 0.10.0.0
Win32 Version: 0.10.0.0
CodeBase: file:///c:/Tools/AutoGK/VDubMod/VIRTUA~2.EXE
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
15oxdboi
Assembly Version: 0.10.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Why this error?
BigDid
21st January 2006, 19:08
@kentar
1/ For divx (last post) I don't use divx, someone else? Unskinnyboy?
2/ For the post before that one (with 1. & 2.)
It seems you are candidate for VdubMod or ArCalculator (nice prog in english but help in spanish only)
There is a discussion digged in the AGK main thread where Ceejay.dk adviced me to try Avs2avi for further tweaking AGK. I could not use Avs2avi with XP-Sp2 so I began with Arcalculator.
Now with AgkPal you can change, edit, try (avsedit or MPC) your settings before encoding but you still have the automat for 1st and 2nd pass, so the trick is you do all the tweaking in agk pal, let 1st pass begin and stop it.
Then you import your avsfile (settings unchanged, ready to use) and set 1st and 2nd job launch the jobs et voila.
The details belong to the prog you use ( and related thread) not here because Agk is not used!
Did
PS: Going to hibernate until end of february except, maybe, for exceptions :)
Bye
Mr2001
24th February 2006, 21:15
Hello again, everyone. My email notifications don't seem to be working so I didn't realize there were all these responses.
I'd like AutoGK to automatically pause for 20 minutes between/during jobs to let the computer "catch it's breath" and cool down. My encoding jobs run while I sleep so I can't monitor them to add jobs.
Can AGKPal be tweaked to run a script that simply does nothing but wait until a certain time has passed and then return control back to AutoGK ?
I suppose making the countdown more configurable (see below) would work for this purpose, if you could make it just stay at the countdown screen for 20 minutes before each pass.
How can I make the program not to countdown ? (let's say I'm not at the computer in between the passes).
This isn't an option in AGKPal, but I'll consider adding it. What exactly are you looking for? Do you want AGKPal to stay at the countdown screen, pausing the encode process, until you come back to the PC and click a button?
If I modify only the codec options (by adding: modified matrix, QPEL, GMC), how can I see how the original .AVS looks like and how the modified one looks like (to try and find a replaceable pattern to use on every encoding job).
Are the settings stored in .AVS file ? Couldn't see any difference between the default one and the one after modifications were made to the codec settings.
The codec options aren't stored in the AVS file, they're stored in the VCF (VirtualDub script) as a big base64 string.
Changing the codec options automatically is not easy. That base64 string is basically meaningless to AGKPal. Its format is undocumented, and it's different between XviD and DivX, and probably different between different versions of the same codec. All I know about it is I can pass it to the codec, edit it with a dialog box that the codec provides, and the codec passes back a different string if I change the options.
What AGKPal does now is measure the bytes that are changed in the codec string before and after you edit the codec options. The differences are then compressed and stored in AGKPal's options file along with your AVS patterns, but they're stored separately for each original codec string, because applying those changes to a different initial string could have unpredictable effects. Meaning: your changes are only remembered for *that particular set* of initial codec options, which is why you have to edit them again before every pass - AutoGK uses different options for each pass.
It'll be hard to make the codec options feature any better without figuring out the format of those base64 strings. AutoGK seems to know a bit about them, but it's not open source...
When trying it with DivX, after modifying some codec settings I got an error message
That error means the base64 string got bigger or smaller when you edited it. I expected them to always stay the same size based on my own testing, but maybe I only tested with XviD.
BigDid
25th February 2006, 01:48
Glad to see you back.
Now that I am less newbie with avisynth I use your app a lot.
I still dont know how to write/script directly and would be grateful for some tips infos etc...
Did
Mr2001
25th February 2006, 05:29
Now that I am less newbie with avisynth I use your app a lot.
I still dont know how to write/script directly and would be grateful for some tips infos etc...
It's probably easiest to learn by writing your own AVS scripts and playing with them outside of AGKPal. There are some tutorials on www.avisynth.org.
kentar
5th March 2006, 21:58
Thank you for your answer Mr2001.
Yes, I was thinking if you can put an option to stop after each pass or eventually to let the user to specify the time.
My standalone player supports GMC (up to 2 warp points) and QPEL and I think AutoGK is among the best compression tools. Still I hate not having the options to set those encoding settings.
AGKPal is what I was looking for.
Can you please give us the possibility to control that timer?
I'd like to be able to stop it between passes, eventually to chose a sound file that AGKPal would play when the pass is finished.
Shouldn't be too hard to implement.
Thanks in advance ! :D
Lyle_JP
20th March 2006, 07:55
Nice one, Thanks. Will test this.
This will be useful for all those newbies are willing to painstakingly tweak AutoGK to death, but still won't touch GordianKnot. :D
In my case, there is a method to that particular madness. Regular Gordian Knot can't do quality based single pass encoding. It's nice to be able to tweak AutoGK for this purpose.
-Lyle J.P.
PatchWorKs
20th March 2006, 17:24
It would be really nice to use the installed vfw codecs.... (so we can encode in almost any format thanks to ffdshow encoding engine) :goodpost:
Yonder
6th November 2006, 21:04
I really love the idea behind this project, but I can't seem to get it work... The problem is, when I click on "preview" the program opens a file so huge that notepad simple can't handle. And it isn't really readable in textformat. Did something happen in agk over the past versions?
I am using AutoGordianKnot.2.36.beta and AutoGordianKnot.2.27 (stable) for this. What I would just like to do is add the following lines to encoding script:
LanczosResize(608,448,0,0,640,480)
AddBorders(16,16,16,16)
BigDid
10th November 2006, 02:38
I really love the idea behind this project, but I can't seem to get it work...
Hi,
Please start with a minor modification like use the deen replace and modify the right textbox.
Some hints given in this post:
http://forum.doom9.org/showthread.php?p=765897#post765897
The problem is, when I click on "preview" the program opens a file so huge that notepad simple can't handle.
Uhhh? preview inside AGKPal gives you access to the modifications made in the avs script; If you are noob with avisynth, please take some time to understand and use the basics of that program, see the avisynth threads.
What I would just like to do is add the following lines to encoding script:
LanczosResize(608,448,0,0,640,480)
AddBorders(16,16,16,16)
This may not be good ideas at least for the resize parts cause you will conflict or go against Agk internal resize. If you really want to add borders, use fixed width and use addborders() to be mod16 compliant -> again this is avisynth stuff
Did
Yonder
16th November 2006, 19:30
Okey.. I've been playing around with avisynth and getting it to work, also been looking at regex:s. Too bad avisynths site is down though... so I don't really understand what makes my two lines bad... Anyway, what I still don't get is how to just add a line to my avisynth script. I can replace - sure, and I've been trying to do it like this for now... find something that exists in the previewfile - enter it in the left box of agkpal and enter it again in the right, however, add \n after it and add what you want to add. The problems now is that it wont output a new line as it should, instead just \n which gives an avisynth error. How can I do this?
BigDid
16th November 2006, 23:36
Incredible !!! :scared:
I answered your post and your PM 9 days ago and no news since that day; nothing, nada, peanuts :(
Now 9 days after you complain that it is not working!
Ok, this will be my last, very last contribution to your demands.
1/ Either you use avisynth and conform to it's syntax either you use AGK Pal and conform to it's particular syntax.
2/ If you use AGK PAL I already gave a beginner's push:
"
Please start with a minor modification like use the deen replace and modify the right textbox.
Some hints given in this post:
http://forum.doom9.org/showthread.ph...897#post765897
"
I will be more specific
- Use the deen modification
- on the right size textbox change "deen()" by another avisynth command (filter) like "removegrain(mode=5)"
First things first make sure that this simple command works!
After and only after, try to chain multiple commmands like: "removegrain(mode=5).removegrain(mode=25)"
The 2 successive avisynth filters will do a little denoise and a little sharpen
To chain you have to insert, between each command a dot (.)
All this is already covered, so if it does'nt work maybe the time has not yet come for you. In opposite, it is always the time to be polite and respect the time given.
Happy encoding and forget me.
Did
Yonder
17th November 2006, 00:14
Hmm... Did, I got started with all the good information you gave me right away, and of course I encountered problems...but I tried myself, alot, until I felt that I couldn't get further wihtout consulting you again... I am very very grateful for your help, and I'm sorry that you get upset with me not understanding.... I really have tried. I've tried to understand everything in all the links you provided, but it almost feels like magic to me, how people actually can do it with this little information. I won't give up though...
medp7060
2nd January 2007, 10:40
How to Use
Start AutoGK, then start AutoGKTweaker.exe. Add a job to AutoGK and start it; the AGKPal Countdown dialog box will appear automatically during the job.
However, I could not see the "AGKPal Countdown dialog box" popped up. I am using AutoGK 2.4
BigDid
2nd January 2007, 18:51
However, I could not see the "AGKPal Countdown dialog box" popped up. I am using AutoGK 2.4
Happy new year,
From the same post:
Please refer to the "AGKPal-README.html" inside the zip package
If it does'nt launch re-read the readme: you need Microsoft .NET Framework 2.0
Or you use wierd directory/file naming or something is wrong with your AGK/avisynth/windows installation or I don't know ...
Did
medp7060
4th January 2007, 11:42
Thanks for reply. I did not realised that I did not have Microsoft .NET Framework 2.0.
BigDid
4th January 2007, 18:00
Thanks for reply. I did not realised that I did not have Microsoft .NET Framework 2.0.
You are welcome ;)
Did
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.