Hi guys
I've a little problem. I have many little movies (mainly trailers). I want to convert it in DivX using 2 pass encoding. Each movie is convert through an AviSynth script. Now: the slow part of this work is to make the conversion with VirtualDubMod. I know there is a function, Batch processing, much useful. But the slow problem is to make the configuration of codec for the first pass and the Nt pass.
My question is: is there a method to make a batch processing of an AVS motion file, applying the first pass and the second pass in one way?
I see: an example of file for the batch processing of VirtulDubMod is as follow:
The particular strings are the SetCompData, which it changes only if it is for the first or second pass, and the string AddRange, which it change for every AVS motion file.Code:VirtualDub.Open("D:\\[TRAILERS_LAB]\\AVS\\... ...mission-impossible-480p.avs","",0); VirtualDub.RemoveInputStreams(); VirtualDub.stream[0].SetSource(0x73647561,0); VirtualDub.stream[0].DeleteComments(1); VirtualDub.stream[0].AdjustChapters(1); VirtualDub.stream[0].SetMode(0); VirtualDub.stream[0].SetInterleave(1,500,1,0,0); VirtualDub.stream[0].SetClipMode(1,1); VirtualDub.stream[0].SetConversion(0,0,0,0,0); VirtualDub.stream[0].SetVolume(); VirtualDub.stream[0].SetCompression(); VirtualDub.stream[0].EnableFilterGraph(0); VirtualDub.stream[0].filters.Clear(); VirtualDub.video.DeleteComments(1); VirtualDub.video.AdjustChapters(1); VirtualDub.video.SetDepth(24,24); VirtualDub.video.SetMode(3); VirtualDub.video.SetFrameRate(0,1); VirtualDub.video.SetIVTC(0,0,-1,0); VirtualDub.video.SetRange(0,0); VirtualDub.video.SetCompression(0x78766964,0,10000,0); VirtualDub.video.SetCompData(121,"LWJ2bjEgMzUwMD[...]yAA=="); VirtualDub.video.filters.Clear(); VirtualDub.subset.Clear(); VirtualDub.subset.AddRange(0,2899); VirtualDub.SaveAVI("D:\\[TRAILERS_LAB]\\1p.avi"); VirtualDub.Close();
If there's a method to know the total number of frames through a command, I think I've found a solution for my problem! :P
Any other solution???
Thanks for your precious help!![]()
+ Reply to Thread
Results 1 to 2 of 2
-
-
Search AVS2AVI for your exact settings, but the batch file would be:
2-pass.bat
for %%a in (*.avs) do avs2avi.exe "%%a" "%%~na.avi" -P 2 -p 0 -s xvid.conf -e -w
Similar Threads
-
About using AviSynth scripts with MeGUI 0.3.5.0.
By Nagashi in forum DVD RippingReplies: 56Last Post: 15th Jul 2010, 10:15 -
How to Batch Process Using Avidemux? Or Batch Processing H264 .m2ts or .ts?
By forgotpassword in forum Video ConversionReplies: 0Last Post: 14th Apr 2009, 00:00 -
I need some help on writing H.264 AVISynth scripts
By rocky12 in forum Newbie / General discussionsReplies: 46Last Post: 6th Dec 2008, 13:40 -
What are some good video processing scripts?
By rocky12 in forum Newbie / General discussionsReplies: 21Last Post: 26th Oct 2008, 23:40 -
Avisynth scripts and VDubMOD filters
By GangstaRap in forum Newbie / General discussionsReplies: 2Last Post: 13th May 2007, 11:39