VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Feb 2004
    Location
    Italy
    Search Comp PM
    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:

    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();
    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.
    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!
    Quote Quote  
  2. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!