|
|
Memory Leak: AVISynth 2.06, CCE 2.66
I'm not sure of the appropriate place to post problems with AVISynth2, but there is a memory leak which currently renders the code unusable for encoding multiple episodes in a single CCE session.
- CCE Settings: VBR 3-Pass, No audio.
- Tried with Avisynth plugin MPEG2DEC and MPEG2DEC2.
- Does not occur when frame-serving with VFAPI.
Procedure:
- Start CCE
- Create and select a VBR Multipass template
- Create several AVISYNTH scripts for various test d2v files
- Drag multiple AVS files into the CCE encoding window
Open the Windows quot;Task Managerquot; to keep an eye on your quot;Memory Usage Historyquot;. After each pass, the page file usage will increase until Windows runs out of swap space.
I've tried using SetMemoryMax(64) in my scripts, but it does not change the behavior.
I'm typing most of this in from memory, I can post the actual scripts later this evening if they would be helpful.
Absolutely. Please post the results using a known-good client program (VDub) and try to find the shortest script that leak.
Thanks!
I had the same problem with CCE v2.66.01.02 and AVISynth 2.06
Here is the Script:
LoadPlugin(quot;C:\Program Files\AviSynth2\plugins\MPEG2DEC2.DLLquot;)
mpeg2source(quot;K:\Rookie of the Year\Rookie of the Year.d2vquot;)
BilinearResize(480,480)
ResampleAudio(44100)
In 2.66 you can start a job and cancel it a few second after it
starts over and over again and watch the memory slowly get used up
until CCE is exited. Set up a batch with quite a few jobs and
pretty soon all memory is gone...
Ran the exact same scripts and files in CCE 2.5 and there was
no memory issues :-)
mike
That's why I suggested VDub -- I can't make authoritative claims about its memory usage, but I trust Avery a lot more than the CCE folks based on the countless bugs I've seen reported here (never used it myself).
Maybe could help : I got same problem using the avs version of virtualdub (belgabor's one). After having reloaded several times my script , I got a 'Not enough memory message' : RAM : 0.5 MB FREE, SWAP : 450 MB !
I did not have time to test with standard virtualdub (will do later in the day).
My script used :
mpeg2dec (dividee's one)
crop
convolution3d
convertyuy2
tweak
bicubicresize
Addborders
Sorry not beeing able to post exact script at this moment
(WIN98SE)
Cheers,
FuPP
I got around the mem problems with CCE 2.66 and AviSynth 2.06
on my machine :-)
I was having two problems...
First was the memory leak after each Encode job. Second was the
fact that the vob files still had a open file handle after the job
completed, and wasn't released until CCE was closed.
CCE 2.66 can open avs scripts with out the
ResampleAudio(44100) command, So I wasn't adding it back in :-(
I added this back and ran the daylights out of cce and no mem leaks!!
Vob file handles are also being closed after each job :-)
mike |
|