View Full Version : multiple sources+outputs
Hello. I'm trying to do the next thing: I have 20 DV clips(different sizes) and I want to create an avs script that generates an output for each clip. Is it possible? I've tried to output all in one file but virtualdub closes automatically at the beginning(lack of memory). I've used the following script:
"a=DirectShowsource("e:\a1.avs")
b=DirectShowsource("e:\a2.avs")
......
u=DirectShowsource("e:\a20.avs")
return(a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+r+s+t+u)"
Each avs file has deinterlace and denoise filters.
Do you have any suggestions?
foxyshadis
2nd May 2006, 08:00
Try placing one copy of each filter (unless they're mostly different) after joining all the files into one clip.
Also, you can use avisource, or a simple import, on avs scripts, which is less resource intensive and way less bug-prone than using directshow.
If that still doesn't work, you might need to render each avs to lossless avi, then import the avis.
Even better, use segmentedavisource or segmenteddirectshowsource ( though i do not know if that one still work )
Use Import to load an .avs scripts into another .avs script. This will be a textual inclusion, so won't have the resource overhead of 20 DirectShow instances.
Also you probably want to use aligned splice, "++", to join your clips to keep the audio aligned.Import("e:\a1.avs")
Vid=Last
Import("e:\a2.avs")
Vid=Vid++Last
......
Import("e:\a20.avs")
Vid=Vid++Last
Return Vid
That last method seems to work fine. I used only 8files (1,5GB). I will try for 20 or more files when I'll have time and I'll wrote the conclusions. Thank you.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.