|
|
| Dragoniade |
| Posted: Feb 6 2013, 05:20 AM |
 |
|
Newbie

Group: Members
Posts: 9
Member No.: 23347
Joined: 1-April 08

|
Hello, I've been trying to do something with virtualdub, and so far, failed.
I need to open a series of video in sequence. The job consist of opening the video, get the info, opening another video and so forth. However, since the videos in questions need to go through an AVS file, I made a script to create the AVS then launch Virtualdub.
The problem is, each time I call "virtualdub.exe myvideo.avs", a new instance of Virtualdub is created. I would prefer to have the current virtualdub load the new file rather than create a new one.
I've been using the master flag to start jobs processing in another instance (by linking to a different jobs file) but since this is about loading file without doing any processing, I don't think this will work.
Is there a way, a flag, to have VirtualDub load a file while reusing the last instance rather than start a new one? Or any alternate Virtualdub scripting to do achieves same effect?
Thanks
|
 |
| TigerWild |
Posted: May 15 2013, 11:39 PM |
 |
|
Newbie

Group: Members
Posts: 8
Member No.: 26702
Joined: 30-December 09

|
I have been working on something similar, but I prefer to open my files in parallel (many instances of virtualdub) vice in a single virtualdub using a job queue. I think at least half way there my batch file may help you get started.
---copy below to text file, rename to .bat--- Set Mfps=23.976 Set Bpath="E:\- Video Extractions\Virtualdub\1920x1280 (23.976fps pure,93%%,MPEG2,deinterlaced)auto openNsave.vcf" rem Set Bpath="E:\- Video Extractions\Virtualdub\852x480 DAR3 (16x9) (24fps,96%%,MPEG2,deinterlaced).vcf" Set Vdpath="E:\- Video Extractions\Virtualdub\VirtualDub-1.8.8\" Set Svpath="D:\"
for %%A in (*.mkv *.avi *.mpg *.mpeg *.m2ts *.vob) do >%%~nA.avs echo # M2ts file & >>%%~nA.avs echo SetMemoryMax(128) & >>%%~nA.avs echo DirectShowSource("%%~dA%%~pA%%~nA%%~xA", fps=%Mfps%, audio=true, seekzero = true, convertfps=true) & >>%%~nA.avs echo EnsureVBRMP3Sync() & start /d %Vdpath% VirtualDub.exe /i %Bpath% "%%~dA%%~pA%%~nA.avs" "%Svpath%%%~nA.avi"
rem ---Notes--- rem code requires: Avisynth, virtualdub, pre-existing (.vcf) config file rem most people prefer to use virtualdub with jobs in queue; run them in sequence. This runs jobs in parallel by searching the directory of the script, finding all listed wildcard masked files below, generating a simple avisynth script file for each file, then opening virtualdub and autosaving the video to .avi rem caution, this will stress your system. you may only be able to handle 1 file at a time. I can input 30 blueray .m2ts files just fine, so long as i set vdub process to idle or low. Modify the code to your hearts content ~ TigerWild
rem create a unique .vcf that you will use with this batch file only. Do this by running Virtualdub, opening a video file, configuring all your settings as you want them, then selecting File->save processing settings->.vcf rem use a text editor to open the vcf file you made, and add these 2 lines: VirtualDub.Open(VirtualDub.params[0]); VirtualDub.SaveAVI(VirtualDub.params[1]);
rem ---References--- rem http://stackoverflow.com/questions/8749637...-into-variables rem http://forum.doom9.org/archive/index.php/t-152842.html with a nod to stax76 |
 |
| TigerWild |
| Posted: May 15 2013, 11:49 PM |
 |
|
Newbie

Group: Members
Posts: 8
Member No.: 26702
Joined: 30-December 09

|
if you would rather run one file at a time, change the line from
& start /d %Vdpath% VirtualDub.exe /i to & %Vdpath%VirtualDub.exe /i
this will make is so that you must close the current instance of vdub before the next is started (skips need to generate job queue and run it) |
 |
|