I've always found VDub's scripting abilities needlessly cumbersome and just a general mess whenever I've needed to use it (which is why I
don't, and moved to other, simpler-to-control solutions). There are much simpler solutions than relying on VDub's job control for this.
DriftRoot wrote:No idea if any of this is in the Read ErMaC & AbsoluteDestiny's Friendly AMV Guides, but I never gave much thought to what a job list controls. I've routinely changed compression settings, loaded an old job file, and never though twice about the results actually were. I only noticed something was wrong recently because of the enormous file sizes I was getting. I should check to see whether the compression settings are saved when you save the job list, or when the job list is being built...I would hope it's the former, because...well, that's scary to think of all the screwed up clips I've made, otherwise!
I actually am about 99% sure that the job control file overrides anything previously set (since it does store compression settings), but the best way to find out is use the method you're currently using, and then perform a manual test to see if you get the same result. If they match, then the situation is ok. If they don't match, then you've got a problem. But that's somewhat inconsequential due to the first part of your response.
DriftRoot wrote:What I want is the Fast Recompress/Lagarith results, so I'm taking the approach that the files must be edited to the settings which give me those results. As a double precaution, I'm setting VDM TO those settings before running the job list, just in case something isn't being controlled by that job file. So far it seems to be working out properly.
Then there is, like I said, a far simpler way of doing this than even messing with VDub at all.
Download avs2avi here, unpack it and put the .exe file in C:\WINDOWS
Then, all that's required is (for Lagarith):
Code: Select all
avs2avi input.avs output.avi -c LAGS
You can batch script this by repeating that command over and over in a plain text file with a .bat extension, only changing the names of the input.avs and output.avi files (you can also change the codec by changing the -c part). Like so:
Code: Select all
avs2avi ep1.avs ep1.avi -c LAGS
avs2avi ep2.avs ep2.avi -c ULY0
avs2avi ep3.avs ep3.avi -c MJPG
(ULY0 is the YUV 4:2:0 codec in Ut Video)
Then all that's required is to double-click on it and Windows will automatically run the commands. Leaving out the -c parameter will allow you to choose the compression format from the standard VCM dialog box. This can be used to save custom codec settings because -c uses the codec's defaults. To create a configuration file, the following would be used:
Code: Select all
avs2avi test.avs test.avi -s lagarith.conf -e
And then all that would be necessary to use that configuration file is to do:
Code: Select all
avs2avi test.avs test.avi -l lagarith.conf
Just be aware that loading that .conf file will also change the settings in anything else (read: VDub, et al) that also uses the Video for Windows framework.
So say you needed to convert 20 AviSynth scripts to Lagarith AVI files. The batch script to do that could look like:
Code: Select all
avs2avi 1.avs 1.avi -l lagarith.conf
avs2avi 2.avs 2.avi -l lagarith.conf
avs2avi 3.avs 3.avi -l lagarith.conf
avs2avi 4.avs 4.avi -l lagarith.conf
avs2avi 5.avs 5.avi -l lagarith.conf
avs2avi 6.avs 6.avi -l lagarith.conf
avs2avi 7.avs 7.avi -l lagarith.conf
avs2avi 8.avs 8.avi -l lagarith.conf
avs2avi 9.avs 9.avi -l lagarith.conf
avs2avi 10.avs 10.avi -l lagarith.conf
avs2avi 11.avs 11.avi -l lagarith.conf
avs2avi 12.avs 12.avi -l lagarith.conf
avs2avi 13.avs 13.avi -l lagarith.conf
avs2avi 14.avs 14.avi -l lagarith.conf
avs2avi 15.avs 15.avi -l lagarith.conf
avs2avi 16.avs 16.avi -l lagarith.conf
avs2avi 17.avs 17.avi -l lagarith.conf
avs2avi 18.avs 18.avi -l lagarith.conf
avs2avi 19.avs 19.avi -l lagarith.conf
avs2avi 20.avs 20.avi -l lagarith.conf
There are ways of contextualizing things like this through the use of shell variables, but I generally don't bother with that since I almost never do things that general. Depending on your workflow, composing a script like the above can be simplified by copying/pasting all those filenames at once with something like Ninotech Path Copy or the Copy File Name to Text option in ExplorerXP, and duplicating the other parameters through the use of Notepad's or Wordpad's 'Replace' function, or duplicating cells in a spreadsheet program.