Log in

View Full Version : Needing help with running out of memory problem...


Jeff D
18th February 2004, 21:27
I'm trying to move some old animated episodes of The Tick from VHS to DVD.

I've searched around for advice on what to do with my sources that aren't the best quality.

I think the problem is related to the interleving of a HUFFYUV source, but I need some other advice on what I could do...

First, the script I'm using taken from a thread on how to clean up VHS noise by averaging multiple captures (BTW this multiple source thing is tought to do...):


LoadPlugin("C:\avsplugs\2.5\c3d\Convolution3d.dll")
LoadPlugin("C:\avsplugs\2.5\decomb\Decomb510\Decomb510.dll")
LoadPlugin("C:\avsplugs\2.5\cnr2\cnr2.dll")


### AVI SOURCE(S) ###
cap1=Trim(AVISource("f:\capture\1.avs"),0,13916)++Trim(AVISource("f:\capture\1.avs"),18713,31410)++Trim(AVISource("f:\capture\1.avs"),35325,44931) # Single/First AVI (Audio Source)
cap2=Trim(AVISource("f:\capture\2.avs"),0,13916)++Trim(AVISource("f:\capture\2.avs"),18713,31410)++Trim(AVISource("f:\capture\2.avs"),35325,44931) # Single/First AVI (Audio Source)
cap3=Trim(AVISource("f:\capture\4.avs"),0,13916)++Trim(AVISource("f:\capture\4.avs"),18713,31410)++Trim(AVISource("f:\capture\4.avs"),35325,44931) # Single/First AVI (Audio Source)

### LAYER CAPTURES ###
Interleave(cap1,cap2,cap3).TemporalSoften(1,255,255).SelectEvery(3,1) # 3 Layers

### ADD 2 SECOND BLACK LEADER/TRAILER ###
BlankClip(cap1,15)+last+BlankClip(cap1,15)

### INVERSE TELECINE ###
Telecide(guide=1,order=1,post=0,chroma=true,blend=false).Decimate(cycle=5,mode=0,quality=3)

### FILTERING - VHS - PROGRESSIVE/IVTC/DEINTERLACED SOURCE ###
Convolution3D(preset="animeLQ") # Light
cnr2()


The avisynth source are basically three files that just have correctly trimmed captured huffyuv sources. I don't suspect this would be much of a memory hit.

My capture is less than 30 minutes and the final edited segment is just about 20 minutes.

Any suggestions on what causes the problem? The huffyuv source? The interleving of three files? The filters?

Any creative ideas how to step around this problem to get the same results? Every idea I had about using the three segments a individual files wouldn't work well with my final target being a VBR MPEG...

PC 1GB RAM with 5GB free on the system drive. I keep increasing the free space on the system drive, but results are pretty much the same at the same point...

Leak
18th February 2004, 23:16
Perhaps you should try Import()ing your AVS-Files instead of using AVISource on them; I'm not sure how much buffering AVISynth does by default, but if each instance of AVISynth allocates buffers for it's video and audio this might add up to a lot...

np: AGF - Live @ Ultrahang Fest 26.09.03

stickboy
19th February 2004, 00:33
Originally posted by Jeff D

cap1= Trim(AVISource("f:\capture\1.avs"),0,13916)
\ ++Trim(AVISource("f:\capture\1.avs"),18713,31410)
\ ++Trim(AVISource("f:\capture\1.avs"),35325,44931)
\ # Single/First AVI (Audio Source)
cap2= Trim(AVISource("f:\capture\2.avs"),0,13916)
\ ++Trim(AVISource("f:\capture\2.avs"),18713,31410)
\ ++Trim(AVISource("f:\capture\2.avs"),35325,44931)
\ # Single/First AVI (Audio Source)
cap3= Trim(AVISource("f:\capture\4.avs"),0,13916)
\ ++Trim(AVISource("f:\capture\4.avs"),18713,31410)
\ ++Trim(AVISource("f:\capture\4.avs"),35325,44931)
\ # Single/First AVI (Audio Source)You should be able to get a significant improvement by not re-opening the same .avs files over and over and over.
cap1 = AVISource("f:\capture\1.avs")
cap2 = AVISource("f:\capture\2.avs")
cap3 = AVISource("f:\capture\4.avs")

cap1 = cap1.Trim(0, 13916)
\ ++ cap1.Trim(18713, 31410)
\ ++ cap1.Trim(35325, 44931)
cap2 = cap2.Trim(0, 13916)
\ ++ cap2.Trim(18713, 31410)
\ ++ cap2.Trim(35325, 44931)
cap3 = cap3.Trim(0, 13916)
\ ++ cap3.Trim(18713, 31410)
\ ++ cap3.Trim(35325, 44931)

Jeff D
19th February 2004, 08:21
Thanks for the ideas, I'll give them a shot.