Log in

View Full Version : Multiple AVS + Avisynth + VDub - Extreme Ram Usage - crash


DDogg
19th March 2006, 20:27
Note - At the end of this post I ask for a better way to accomplish this task instead of the ugly method used. Suggestions would be appreciated - a lot
=============================================

Problem: all available memory (800 megs) is used causing XP pro to crash. I think this is operator error due to the poor method used, but thought I should report it just in case it might help the developers -

Replicate the problem by -

10 AVS files are created like the one just below - Each one incrementing the file to be opened. Last one opens 0010.avi.

directshowsource("F:\0001.avi",fps=10.00)
bilinearresize(620,324).converttoyuy2()
convertfps(24)


Another (very ugly) script is used to combine all 10 -
a=avisource("D:\WUTemp\01.avs")
b=avisource("D:\WUTemp\02.avs")
c=avisource("D:\WUTemp\03.avs")
d=avisource("D:\WUTemp\04.avs")
e=avisource("D:\WUTemp\05.avs")
f=avisource("D:\WUTemp\06.avs")
g=avisource("D:\WUTemp\07.avs")
h=avisource("D:\WUTemp\08.avs")
i=avisource("D:\WUTemp\09.avs")
j=avisource("D:\WUTemp\10.avs")
return(a+b+c+d+e+f+g+h+i)

This avs is loaded into VDub - an attempt is made to save off as a huffy avi with PCM audio directly streamed

Result: all system memory is used - XP, or VDub crash due to lack of memory

Avisynth 2.56 Oct 28
VirtualDub-1.6.14 or VDubMod 1.5.4.1
XP Pro SP2 / 1 gig ram
==============================================

It has been a long while since I used avisynth and I am so rusty that my rust has rust on it - I am sure there is a much better method to take all of these 8 and 10 fps training clips (100's of them) and convert them to 24 fps with the aim of encoding to dvd.

All comments and suggestions welcome

DD

Wilbert
19th March 2006, 23:28
Why don't you use SegmentedAviSource or SegmentedDirectShowSource? What codec is your source?

DDogg
20th March 2006, 03:44
Why don't you use SegmentedAviSource or SegmentedDirectShowSource? What codec is your source? Couple of reasons - the first is I partially forgot about it and remembered something about segmented source being a bit on the finicky side.

Looking back at the docs I see the files must have a period after the first alpha characters and will only allow 2 actual digits. So all my Alpha00xx files must be manually renamed to alpha.01-99.avi - this seems to be the best solution for now.

I wish it were a popular enough feature for the developers to re-visit and make the command a little more flexible so one could auto load a series of files starting with say, D1 - like D10001 through D1099. I suppose it much easier said than done and most folks would never need it anyway.

Still, after I did manually rename 50 or so files to MyDesk.01.avi through MyDesk.50.avi, the below worked without crashing the system.
SegmentedDirectShowSource("D:\WUTemp\media\mydesk.avi",fps=8)
bilinearresize(620,324).converttoyuy2()
convertfps(24)
Wilbert, thanks for taking the time to reply and for jogging my memory - very happy to see you are still an active member here. BTW, the source codec is TSCC like what was (or is) used in Camtasia (IIRC). Regards, DD