Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Aug 2007
Posts: 374
|
Avisynth 2.5.8 MT
Note: Not maintained anymore, use Avisynth 2.6 builds instead.
Version 2009.07.12 Compiled dlls: http://www.mediafire.com/file/nnbngf...isynth258MT.7z Sources: http://pavelsx.googlepages.com/avisynth258MT_src.7z Build is statically linked with runtime library, so you don't need to install any VisualStudio runtime for it to work. Changes:
Multithreaded caching is quite bad what results in eating all memory and crashing after that. Workarounds:
There should be no crashes due to threading, but if you still experience not 'not enough memory' crashes with MT or correct SetMTMode - rebuild offending plugin with avisynth.h from these sources. interaction with ffdshow: patched ffdshow.ax revision 2975: http://www.mediafire.com/file/jz2jyluzzny/ffdshow.7z patched ffdshow.ax revision 3173: http://www.mediafire.com/file/ntnnnz0hyxy/ffdshow.7z patch: http://pavelsx.googlepages.com/ffds_avs_patch.diff Patch fixes incorrect timestamps, redice crashes on stop, reduce memory usage a bit. For using SetMTMode in ffdshow you must uncheck 'Add ffdshow video source', start your script with something like Code:
SetMemoryMax(512) SetMTMode(3,4) ffdshow_source() SetMTMode(2) Code:
SetMTMode(1) GetMTMode(false) > 0 ? distributor() : last Last edited by SEt; 25th July 2011 at 15:02. |
![]() |
![]() |
![]() |
#2 | Link | |
Registered User
Join Date: Feb 2008
Posts: 733
|
Quote:
avisource converttoyv12(pc.601) |
|
![]() |
![]() |
![]() |
#3 | Link |
Kid for Today
Join Date: Aug 2004
Posts: 3,477
|
hi SEt, does it work w/ the sample I sent you? coz this one gives a DrWatson error on XP SP3 related to the "avisynth" component of fffdshow.
there's also some crazy memory leaks on 4 threads w/ AddGrainC 1.4 in Avisynth MT 2.57, if you could fix them that'd be really awesome! but 2.57 works fine w/ AddGrainC 1.1, so I dunno who's at fault tbh. can you please submit your ffdshow changes to the SVN? Last edited by leeperry; 30th June 2009 at 19:17. |
![]() |
![]() |
![]() |
#4 | Link |
Fighting spam with a fish
Join Date: Sep 2005
Posts: 2,691
|
AddGrain has had memory leak issues in the past, most of which were resolved but I think that there were one or two left over. Didee and neuron2 know more about them.
Edit: Also, SEt, is this a different (more up-to-date) version than what you posted in the earlier thread? Last edited by Adub; 30th June 2009 at 20:07. |
![]() |
![]() |
![]() |
#5 | Link |
Registered User
Join Date: Aug 2007
Posts: 374
|
juGGaKNot, i don't understand you.
leeperry, it does work with your sample and filters with 4 threads and SetMemoryMax(512) - i get memory usage ~1.8Gb. Since you haven't posted your script - you have to figure out yourself correct SetMemoryMax and max number of threads to fit in 2Gb. ffdshow changes are not required and far from beautiful, so i'd leave them as is for anyone who want to apply them. Only recompilation of ffdshow.ax is required - you can use other dlls from other builds of the same revision. Adub, it's updated version - changelog is relative to my previous one. What looks like 'huge memory leak' is actually the way multithreaded cache works in 2.5.8 - it can stop somewhere below 2Gb and everything will be fine or it won't and something will crash due to end of address space. |
![]() |
![]() |
![]() |
#8 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
![]() np: Yage - 1st Calling (Future Sound Of London - By Any Other Name)
__________________
now playing: [artist] - [track] ([album]) |
|
![]() |
![]() |
![]() |
#9 | Link |
Registered User
Join Date: Aug 2007
Posts: 374
|
Incorrect timestamps are fixed by disabling passFirstThrough associated code that breaks them. Try yourself: add '#DEBUG' as first line in ffdshow avisynth script, enable debug messages and see debug output by DbgView. In "[?] TimgFilterAvisynth: Looked up frame X, using frame Y" X should be the same as Y for correct timestamps.
|
![]() |
![]() |
![]() |
#10 | Link | |
Kid for Today
Join Date: Aug 2004
Posts: 3,477
|
Quote:
![]() but you can try to use AddGrainC 1.4 on 8 threads and it will leak memory like crazy using 2.57 and won't obey SetMemoryMax() ![]() AddGrainC 1.1 works fine, no leak. I'll try your new build ![]() Last edited by leeperry; 30th June 2009 at 22:58. |
|
![]() |
![]() |
![]() |
#11 | Link |
Kid for Today
Join Date: Aug 2004
Posts: 3,477
|
ok, indeed my sample works now w/ your new MT.dll+avisynth.dll
![]() now, using this simple script w/ the latest icl10 ffdshoow build from xvidvideo.ru in KMPlayer in XP SP3 : Code:
SetMemoryMax(64) MT("AddGrainC()",8) ![]() first value is CPU load, second is RAM usage, and third is pagefile usage. and now AddGrainC 1.4 : ![]() I've put all the builds(+source) from 1.0 to 1.4 here....in case you have any idea what's going wrong : http://www.megaupload.com/?d=BOKPFX19 leaks start at 1.2, so between 1.1 and 1.2 something went wrong w/ MT ![]() I already mentioned it to foxyshadis, but never got a reply ![]() I'm not sure whether there's any point that I try your ffdshow mod, because SetMTMode() doesn't work too well w/ HR+Reclock...it seems to be asynchronous or something.. Last edited by leeperry; 30th June 2009 at 23:20. |
![]() |
![]() |
![]() |
#13 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
![]()
__________________
now playing: [artist] - [track] ([album]) |
|
![]() |
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Feb 2008
Posts: 733
|
Quote:
Last edited by juGGaKNot; 1st July 2009 at 17:49. |
|
![]() |
![]() |
![]() |
#16 | Link |
Registered User
Join Date: Jul 2007
Posts: 137
|
|
![]() |
![]() |
![]() |
#17 | Link |
Didée Fan
Join Date: Feb 2006
Location: Canada
Posts: 1,079
|
SEt,
What did you do to the softwire, soundtouch, pfc code in your src?
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity. |
![]() |
![]() |
![]() |
#19 | Link |
Kid for Today
Join Date: Aug 2004
Posts: 3,477
|
I'm using the first build you posted, and sometimes KMP crashes while opening and windows tells me that it doesn't have enough virtual memory...this never happened w/ 2.57
![]() how can I help to pinpoint the hypothetical memory leak exactly? |
![]() |
![]() |
![]() |
#20 | Link | |
Didée Fan
Join Date: Feb 2006
Location: Canada
Posts: 1,079
|
Quote:
Then SEt can fine tune his debugging. I know the poject settings can affect the stability of the dll's.
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|