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. |
|
|
Thread Tools | Search this Thread | Display Modes |
7th December 2005, 00:47 | #161 | Link |
Registered User
Join Date: Sep 2004
Posts: 113
|
usually disabling HT gives a little boost in performance in some apps since it reduces the overhead like you said, since HT is not really 2 physical cpus...
so what you're saying is that if i just use the modified avisynth and set mtmode in the script it should be enough and therefore using mt() is redundant then? |
7th December 2005, 01:22 | #162 | Link |
Registered User
Join Date: Aug 2004
Location: Denmark
Posts: 807
|
yes but some filters works better with mt() like fft3dfilter while others that depends on information about the whole frame(like motion compensation or smart deinterlacers) work better with setmtmode. It's possible to use both in the same script.
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/ |
7th December 2005, 01:30 | #163 | Link |
Clouded
Join Date: Jul 2003
Location: Cambridge, UK
Posts: 1,148
|
A thought for the long run: it would be nice if filters had some way to indicate to the environment what MT modes they were compatible with.
__________________
a.k.a. Clouded. Come and help by making sure your favourite AVISynth filters and scripts are listed. |
7th December 2005, 01:41 | #164 | Link |
Registered User
Join Date: Aug 2004
Location: Denmark
Posts: 807
|
mg262: the filters can call env->SetMTMode(int mode,int threads,bool temporary)
where mode is the requested mode, threads can be ignored(only used by SetMTMode), temporary indicate if the mode change only should be applied to this filter. If multithreading is not enabled this command will do nothing. It also possible to get the current mode by calling env->GetMTMode(bool return_nthreads) set return_nthreads to return the number of threads created if false then the current mode is returned.
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/ Last edited by tsp; 8th December 2005 at 21:55. |
7th December 2005, 22:12 | #165 | Link |
Registered User
Join Date: Nov 2001
Posts: 176
|
I get a Script error: there is no function named "SetMTMode"
I put MT.dll in my avisynth plugin directory, and I put the avisynth.dll in my windows\system32 directory which overwrote the stock avisynth.dll here is my script LoadPlugin("C:\Program Files\dgindex\DGDecode.dll") SetMTMode(2) video = mpeg2source("fm2.d2v") video = video.DeDot() video = video.AssumeTFF() interp = video.separatefields().selecteven().EEDI2(field = 1) video = video.tdeint(edeint=interp) video = video.MT("FFT3DFilter(sigma=3, plane=4, bt=4, sharpen=0.7)", avisynthTS=true) video = video.crop(4, 0, -4, -4) video = video.LanczosResize(512, 384) return video |
7th December 2005, 23:39 | #168 | Link | |
Registered User
Join Date: Aug 2004
Location: Denmark
Posts: 807
|
Quote:
also try this version Code:
LoadPlugin("C:\Program Files\dgindex\DGDecode.dll") SetMTMode(2) video = mpeg2source("fm2.d2v") video = video.DeDot() video = video.AssumeTFF() interp = video.separatefields().selecteven().EEDI2(field = 1) video = video.tdeint(edeint=interp) SetMTmode(6) video = video.MT("FFT3DFilter(sigma=3, plane=4, bt=4, sharpen=0.7)", avisynthTS=true) SetMTMode(2) video = video.crop(4, 0, -4, -4) video = video.LanczosResize(512, 384) return video
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/ |
|
8th December 2005, 14:24 | #169 | Link |
Registered User
Join Date: Mar 2003
Posts: 18
|
Dual XeoN 3.6
2 Gigs DDR2 Sata 250 hard drive avisynth256MT3 Encoding XviD HD Source 1920X1080 SetMTMode(2) LoadPlugin("C:\Program Files (x86)\AutoGK\DGMPGDec\dgdecode.dll") mpeg2source("D:\Work\test.d2v") crop(4,4,-4,-8) LanczosResize(1280,720) MT Enabled FPS - 15.938 MT Disabled FPS - 19.262 So what am I doing wrong here? It runs at 100% CPU with the MT enabled but still slower than with the MT disabled. Disabled only uses 40% CPU. I really wish I could get full use out of this sucker.
__________________
Badness |
8th December 2005, 14:42 | #170 | Link | |
Registered User
Join Date: Sep 2004
Posts: 113
|
Quote:
which os are you running? xp x64 or 2k3 x64? also, why you are not deinterlacing? 1080i is interlaced... |
|
8th December 2005, 21:58 | #171 | Link |
Registered User
Join Date: Aug 2004
Location: Denmark
Posts: 807
|
shpitz, Badness: If you encode to Huffyuv or MJPEG is the framerate still slower with MT enabled?
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/ |
9th December 2005, 00:55 | #173 | Link |
Registered User
Join Date: Aug 2004
Location: Denmark
Posts: 807
|
puffpio: thanks for trying. I will try and see if I can reproduce it. Oh and no need to disable HT as long as you don't use SetMTMode()/MT()
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/ |
9th December 2005, 07:06 | #175 | Link |
Registered User
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,545
|
Perhaps this issue is related to this issue and not MT.
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake? Curly: Burned at the stake! Moe: Why? Curly: A hot steak is always better than a cold chop. |
9th December 2005, 07:16 | #176 | Link | |
Registered User
Join Date: Mar 2003
Posts: 18
|
Quote:
OS is XP X64 Shotime Directv HD even though it is 1080 is 99% Straight Film. Same with HBO. Why, I dont know, but always has been. And my test clip was off shotime.
__________________
Badness |
|
9th December 2005, 15:20 | #177 | Link | ||
Registered User
Join Date: Aug 2004
Location: Denmark
Posts: 807
|
Quote:
Else try to just use MT with fft3dfilter and don't use SetMTMode. That should work. Quote:
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/ |
||
9th December 2005, 17:23 | #178 | Link | |
Registered User
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,545
|
Quote:
I was too tired last night to notice. @shpitz and puffpio Are you guys trying to encode to Xvid? The Xvid issues are documented earlier in the thread for you to digest. If not than I'll try your scripts and see if I have any success. @all Anybody having issues with MT should try encoding to X264 instead of Xvid and see if your performance decreases continue.
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake? Curly: Burned at the stake! Moe: Why? Curly: A hot steak is always better than a cold chop. Last edited by Revgen; 9th December 2005 at 17:28. |
|
9th December 2005, 23:25 | #180 | Link |
Registered User
Join Date: Aug 2004
Location: Denmark
Posts: 807
|
puffpio: You don't get 100% cpu utilization with that setting? Anyway I tested the script on my dual celeron. tdeint and Dedot didn't work because my celerons don't have integer sse. Altso it looks like fft3dfilter 1.8.5 and MT together is causing some problems (it works without mt and with SetMTmode(2)). I will try an older version and see if that helps.
Revgen: I totally forgot about the XviD issues. Koroshiya didn't have this problem when encoding to XviD from DivX.
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|