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. |
8th April 2010, 01:31 | #241 | Link |
Registered User
Join Date: Jul 2002
Location: Italy, Genova
Posts: 206
|
Hi,
i'm trying to use MT in this script: Code:
SetWorkingDir("d:\avs_plugins\AviSynthPlugins\") LoadPlugin("MT.dll") Loadplugin("d:\avs_plugins\warpsharp.dll") LoadPlugin("SangNom.dll") LoadPlugin("average.dll") LoadPlugin("Degrainmedian.dll") Loadplugin("removegrain.dll") LoadPlugin("Repair.dll") LoadPlugin("gradfun2db.dll") LoadPlugin("DGAVCDecode.dll") LoadPlugin("DGDecode.dll") loadplugin("fft3dfilter.dll") loadplugin("hqdn3d.dll") LoadPlugin("convolution3d.dll") LoadPlugin("undot.dll") LoadPlugin("mvtools2.dll") LoadPlugin("mt_masktools-26.dll") LoadPlugin("TTempSmooth.dll") import("d:\avs_plugins\denoisers\MCTemporalDenoise.v1.4.08.avsi") import("d:\avs_plugins\denoisers\GradFun2DBmod.v1.5.avsi") import("LSFmod.v1.9.avsi") LoadPlugin("GradFun2DB") LoadPlugin("D:\Program Files (x86)\StaxRip\Applications\AviSynth plugins\DGAVCDecode.dll") AVCSource("L:\test_5d2\MVI_0135 temp files\MVI_0135.dga") MCTemporalDenoise(settings="high") How could I set MT in the correct way to use all my i-920 cores in the script above? Thanks in advance ciao!
__________________
P6T| 12Gb DDR3| i7-920 D0@3.8Ghz@1.168v+NOCTUA NH-U12P| Liberty 620| Stacker|2xRAID0 (4x500gb) Seag.72k.11| Seag. 500gb 72k.12| Seag. 1.5Tb 72k.11| GTX470@668/1843| U2410 24"| Se7en x64 on VRapt 300gb Last edited by Gannjunior; 8th April 2010 at 01:34. |
10th April 2010, 18:25 | #243 | Link |
Registered User
Join Date: Jul 2002
Location: Italy, Genova
Posts: 206
|
before MCTtemporal...
could you help me modify my script adding it in the correct place of the script? thanks!
__________________
P6T| 12Gb DDR3| i7-920 D0@3.8Ghz@1.168v+NOCTUA NH-U12P| Liberty 620| Stacker|2xRAID0 (4x500gb) Seag.72k.11| Seag. 500gb 72k.12| Seag. 1.5Tb 72k.11| GTX470@668/1843| U2410 24"| Se7en x64 on VRapt 300gb |
11th April 2010, 00:40 | #244 | Link |
Registered User
Join Date: Feb 2009
Location: USA
Posts: 676
|
Honestly I'm not that experienced with StMTMode.. Most people know a lot more than me..
Something real basic you could try is this.. SetMTMode(5,0) # put this BEFORE AVCSource - 5 = mode 5 (recommended for source filters). 0 = auto detect threads I believe. You define threads once and only ever change the MODE from then on. Then after your AVCSource but Before MCTTemporal - SetMTMode(2) That is one very basic way to try it. I have seen some other examples with a bit more code than that though, so hopefully someone better than me will come along and help.. I am used to using the MT filter on a single line instead of threading the whole script. |
24th May 2010, 09:21 | #245 | Link |
Registered User
Join Date: Feb 2009
Posts: 48
|
OS: Windows 7 64-bit.
CPU: Intel Core 2 Quad 9505. RAM: 4Gb Coder: x264, v.1592 32-bit. Avisynth: 2.5.8 with dlls from this theme. Source video resolution: 720x576 MVTools: v.2.5.10 (also tried 2.5.9) I tried to use script listed below with different numbers of threads and different volume of memory. With number of threads less than 5 - CPU load is no more than 50%. With SetMemoryMax=2048Mb - CPU load is no more than 50%. With number of threads more than 4 and SetMemoryMax=1200Mb - scripts hangs with module name error mvtools2.dll. Could anybody help me with this problem? Script looks like this: Code:
SetMemoryMax(1200) SetMTmode(5,8) DGDecode_mpeg2source("G:\video\_new\ub_s\s 3\d3\encode\d3_1.d2v", idct=3, info=3) AssumeTFF() SetMTmode(2) crop(10,68,-18,-64) ####################################### # TempGaussMC ####################################### Import("D:\arh\media\edit\video\_Filters\TempGaussMC\TempGaussMC_beta2u.avsi") clip=TempGaussMC_beta2u(EdiMode="nnedi2",qual=3,tr2=2,lossless=-1) clip=clip.SRestore(frate=25) return clip Last edited by prokhozhijj; 24th May 2010 at 10:56. |
24th May 2010, 17:09 | #246 | Link | ||
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,391
|
Quote:
Quote:
TGMC needs quite some memory even single-threaded. Now, with some uber-simplification just to make understanding more easy, using SetMTMode(mode,#threads) is quite similar to running TGMC #threads times in parallel. Say that singlethreaded TGMC requires 400MB RAM. Now multiplicate that by 8 threads, and you have a problem. (Yes, I know that SetMTMode in reality uses less ressources.) Add to that that you're encoding directly to x264, where x264 by itself can easily require anything from 500MB to 1 GB or 1.5GB of RAM, depending on settings. (RC-lookahead plays a major role.) Alltogether, that's lots of memory that is required .... and since for 32bit applications only 2GB are allowed, it's just too much. The possibilities are - stick with SetMTMode(2,4) - or: make a lossles encoding first, then feed that into x264 (get x264 memory requirement out of the game, so Avisynth has more memory available) - or: switch to 64bit Avisynth & x264_x64. In any case, reduce that overly huge SetMemoryMax. It only controls the frame cache of Avisynth, and you really don't need that much. The more frame cache you specify, the less memory is available for the actual script. My "best guess" is: if you have it running with SetMTMode(2,4), then stick with that. That's about as much as you'll get from TGMC on a CPU with 4 physical cores. You might even consider to specify *less* threads for x264. When the input contains the TGMC turtle, powered by 4 threads already, then it should be safe to reduce x264 to e.g. threads=4. It's default is 12 threads (on a 4-Core with HT), and that won't do much good in this case. 4 threads should be enough to slip into the little free space of Avisynth threads. Anything more will only add unnecessary overhead, for no actual benefit.
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) Last edited by Didée; 24th May 2010 at 19:50. Reason: fixed some typos, added some more detail |
||
26th May 2010, 14:23 | #247 | Link | |
Registered User
Join Date: Feb 2009
Posts: 48
|
Didée, thank you very much for explanation. I knew nothing about memory allocation within avisynth. So your explanation very useful for me. I'll try to reduce memory size for inner buffer cache.
But let me comment a little some sentences. Quote:
__________________
CPU: Core 2 Quad q9505 RAM: 4G OS: Windows 7 64 Video: Nvidia Geforce 460 GTX VP4 AviSynth: 2.5.8 Last edited by prokhozhijj; 26th May 2010 at 14:41. |
|
29th July 2010, 18:14 | #249 | Link |
Didée Fan
Join Date: Feb 2006
Location: Canada
Posts: 1,079
|
I forget, but if I remember correctly the direct show source dll is different from the avisynth dll. Same for tcp deliver dll. I only made the avisynth dll. It's a regular avisynth dll, no special requirements besides using mt dll.
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity. Last edited by Jeremy Duncan; 29th July 2010 at 18:30. |
2nd July 2011, 07:36 | #250 | Link |
Registered User
Join Date: Jan 2002
Posts: 210
|
OK I reinstalled everything. I remember I had an option other than disabled and libavcodec in ffdshow, but it seems to have disappeared. Am I missing anything? I have just come back after a break to encoding and need some assistance. Basically ffmpeg_mt is missing in the list.
thanks Forgot to add. Installed latest ffdshow(ffdshow_rev3914_20110629_clsid.exe) |
4th July 2011, 01:07 | #251 | Link | |
warpsharpened
Join Date: Feb 2007
Posts: 787
|
Quote:
|
|
|
|