View Full Version : I made a mt 2.5.8 avisynth.dll and mt.dll
cweb
16th March 2009, 15:24
I don't think it's mandatory to have it in system32, it just has to be somewhere that Windows will look for it, like one of the directories specified in the PATH environment variable or in the player application's current directory, wherever that is...
I could be wrong, though - I always install AviSynth in the default location, i.e. system32.
My AviSynth is installed to another location yet it places its main dll in system32...
leeperry
16th March 2009, 15:32
I don't think it's mandatory to have it in system32, it just has to be somewhere that Windows will look for it, like one of the directories specified in the PATH environment variable or in the player application's current directory, wherever that is...
I could be wrong, though - I always install AviSynth in the default location, i.e. system32.
actually, you can't regsvr32 avisynth.dll
I thought you were assuming in ffdshow that it was in /system32/ because its location is not indicated anywhere(.ini/registry)...I'd love to put it on my ramdisk to make my movies open faster in ffdshow, but that's a no go :o
Leak
16th March 2009, 15:37
actually, you can't regsvr32 avisynth.dll
I thought you were assuming in ffdshow that it was in /system32/ because its location is not indicated anywhere(.ini/registry)...I'd love to put it on my ramdisk to make my movies open faster in ffdshow, but that's a no go :o
It's loaded just like any other DLL, and system32 is one of the default locations that Windows looks in for DLLs. Like I said, adding a folder on your ramdisk to the PATH environment variable should do the trick.
And you can't regsvr32 it because the DLL isn't meant to be registered - it's installed as a VfW codec simply by adding a registry entry.
@cweb: You need to select "Standalone, unpack files only" as the install type to get it to copy AviSynth.dll into your installation folder.
cweb
16th March 2009, 15:56
@cweb: You need to select "Standalone, unpack files only" as the install type to get it to copy AviSynth.dll into your installation folder.
I see..
well I never had any problems with it placing avisynth.dll in system32.. thanks for the info anyway.
leeperry
16th March 2009, 15:58
Like I said, adding a folder on your ramdisk to the PATH environment variable should do the trick.
And you can't regsvr32 it because the DLL isn't meant to be registered - it's installed as a VfW codec simply by adding a registry entry.
wow cool, you were right! I thought all the .DLL's had to be registered :rolleyes:
:thanks:
totozero
17th March 2009, 09:19
Say what? (http://ffdshow-tryout.svn.sourceforge.net/viewvc/ffdshow-tryout?view=rev&revision=2642)
Yup, noticed it tho.
But strangely it doesn't work anymore (nor does yadif x2 framerate setting).
Got to run framedbl.dll / yadif.dll from avisynth tab in order to achieve time real doubling framerate.
Former ffds versions (ie until 08/11) are still acting normally.
Maybe I'm missing a point :sly:.
C'ya,
ToT'.
Leak
17th March 2009, 09:27
Yup, noticed it tho.
But strangely it doesn't work anymore (nor does yadif x2 framerate setting).
Well, I never used the framerate doubler, but I can assure you that YADIF's "Double framerate" option very much works here.
Have you checked "Process frames flagged as progressive"? Because that's what you definitely want for bobbing...
np: Telefon Tel Aviv - What's The Use Of Feet If You Haven't Got Legs (Fahrenheit Fair Enough)
totozero
17th March 2009, 10:01
Have you checked "Process frames flagged as progressive"? Because that's what you definitely want for bobbing...
Kudos to you.
It works now, there was no need to check this stuff with previous versions.
But it makes sense:thanks:.
C'ya,
ToT'.
lych_necross
18th March 2009, 07:36
Well, I never used the framerate doubler, but I can assure you that YADIF's "Double framerate" option very much works here.
Have you checked "Process frames flagged as progressive"? Because that's what you definitely want for bobbing...)
I tried it with "Process frames flagged as..." option and it seems to work. In MPC-HC, displaying stats does indeed show the framerate is doubling, but ffdshow and avisynth say otherwises. If playing a progressive file, would using yadif to double the framerate degrade the image quality any?
Also, maybe some devs could chime in on this question. Is it normal/safe for the build log on a project to contain warnings?
Leak
18th March 2009, 09:28
If playing a progressive file, would using yadif to double the framerate degrade the image quality any?
I'd assume so, yes - don't deinterlace if there is no need to deinterlace, as any reconstruction of the "missing lines" of both fields can only be inferior to the progressive image that's already there.
That, and since there's no extra temporal information in progressive video you'll get exact duplicates of each frame in the best case...
Also, maybe some devs could chime in on this question. Is it normal/safe for the build log on a project to contain warnings?
If you're talking about building ffdshow - yes, that's quite normal... sure, you could fix most of those by making the code a bit more verbose, but as long as it's not strictly neccessary probably nobody is going to do it...
lych_necross
19th March 2009, 08:00
Is there any chance that avisynth's wiki entry about MT will be updated to reflect this update?
Zelos
19th March 2009, 22:46
Hi,
working here on core i7-920 , 5 fps better than 2.5.7 :)
Still bugs on tweak.dll filter, seems it doesn't like mt ...
thanks for the work.
leeperry
20th March 2009, 02:43
I've got a 362*272 AVI file that crashes instantly...works fine if I disable the Avisynth filter in ffdshow :)
I guess it doesn't like pure mod2 files, when only x is mod2 it works a lot better
lych_necross
21st March 2009, 07:13
Maybe it is a problem with ffdshow's avisynth wrapper and not the actual avisynth files. Does it work with an official build of avisynth through ffdshow?
leeperry
21st March 2009, 11:42
it also crashes w/ 2.57 MT, probably having the height mod2 is not a good option...even if I resize it to 1024*768 keeping the AR, it resizes to 1024*766 and still crashes...I have to enforce 1.3333333 AR then it's fine.
lych_necross
22nd March 2009, 07:12
I'd bet money that the mod2 height issue is related to poor floating point to integer and integer to floating point conversions. The truncation of necessary values can cause unexpected and sometimes bad results. Some of those warnings will have to be reviewed.
I've made some changes to sources in the first post: now it should crash less and be a bit faster:
moved to http://forum.doom9.org/showthread.php?t=148117
BigDid
6th April 2009, 07:47
I've made some changes to sources in the first post: now it should crash less and be a bit faster:
...
Well, working fine up to now! :thanks:
Did
Jeremy Duncan
7th April 2009, 09:12
I've made some changes to sources in the first post: now it should crash less and be a bit faster:
DLL (http://www.mediafire.com/?hc3fcibfyck)
Source (http://www.mediafire.com/?nzixxzywx0x)
I updated the first post with the changes made by SEt.
The src he made was not able to be used by visual studio 2008 professional, so I fixed that and made the dll in the process.
Can't say it's faster than the previous one though, but it seems to make the frame interpolator code I tweaked look better. :D
I've only changed version number in files so they can be used with VS2005 enviroment, so just change it back if you want to use VS2008. Actually used compiler was from VS2008.
Also note that my build is statically linked and doesn't require any msvc*.dll
You should see noticeable speedup after some seeking events while playing .avs script, though there is much to improve there.
=A=RGOS
7th April 2009, 18:45
Hello,
It's work fine for me too (for Jeremy Duncan release).
An idea, Jeremy Duncan or SEt, do you have in your plan to create a centralized source code and version on sourceforge or google. ;)
Bye and many thank at all for this release ! :p
BigDid
8th April 2009, 17:58
I've only changed version number in files so they can be used with VS2005 enviroment, so just change it back if you want to use VS2008...
So this is it "VS 2008" needed and for your release, 2005 only.
I am fortunate to have had 2005 installed for another app :o
If not I would have continued to search /swap and wonder why it was not working on my new partition and windows install :angry:
A "Requirements" somewhere at the beginning would be welcome for other dummies like me :thanks:
Did
Jeremy Duncan
8th April 2009, 22:01
A "Requirements" somewhere at the beginning would be welcome for other dummies like me :thanks:
Did
I added some info to the first post to help you build it yourself.
Razorholt
10th April 2009, 18:15
I did installed the new dll in 2 other PCs just fine, but not the third one. The 2.5.8 version works fine but as soon as I copy the dll to the system32 folder I get the "Cannot load avisynth" error.
Thanks,
- Dan
BigDid
10th April 2009, 19:07
... The 2.5.8 version works fine but as soon as I copy the dll to the system32 folder I get the "Cannot load avisynth" error.
Hi,
2 posts above: http://forum.doom9.org/showthread.php?p=1271377#post1271377
Explanations: http://forum.doom9.org/showthread.php?p=1271986#post1271986
Did
Razorholt
10th April 2009, 19:38
Problem fixed. Thanks BigDid!
Well, I suppose that it's about time that I upgraded to 2.5.8. Thank you for offering this dll.
For future proofing, I have created a mirror for the necessary dlls.
For the dll only:
www.mirror.adubvideo.net/avisynth_258_mt.zip
For the dll and src:
www.mirror.adubvideo.net/avisynth258MT_src.zip
For the src, dll and MT 07, full package:
www.mirror.adubvideo.net/avisynth_258_mt_full.7z
Thanks to the authors.
Arshad07
17th May 2009, 01:45
I recently encode a small portion of an avi, and am getting an output movie splitted in 4 images
script used
LoadPlugin("RemoveGrainS.dll")
LoadPlugin("mt_masktools-26.dll")
LoadPlugin("mvtools.dll")
LoadPlugin("mvtools2.dll")
LoadPlugin("VagueDenoiser.dll")
DirectShowSource("bluray", fps=23.976, audio=false)
#deinterlace
#crop
Spline64Resize(1280,544) # Spline64 (Sharp)
MT("
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)",threads=4)
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=20, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
Any help appreciated!
Jeremy Duncan
17th May 2009, 03:54
LoadPlugin("RemoveGrainS.dll")
LoadPlugin("mt_masktools-26.dll")
LoadPlugin("mvtools.dll")
LoadPlugin("mvtools2.dll")
LoadPlugin("VagueDenoiser.dll")
setmtmode(5)
DirectShowSource("bluray", fps=23.976, audio=false)
setmtmode(2)
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)
MT("
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=20, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
",2)
MT("spline64resize(1280, last.height)",4)
MT("spline64resize(last.width, 544)",4, splitvertical=true)
rkalwaitis
17th May 2009, 08:46
Jeremy,
With this version of avisynth, do I still need to load the MT.dll? Or is it no longer required?
buzzqw
17th May 2009, 10:07
afaik mt.dll isn't to load BUT to put in your system32 folder
BHH
Gavino
17th May 2009, 10:31
afaik mt.dll isn't to load BUT to put in your system32 folder
No, it is the modified avisynth.dll that goes in your system32 folder.
mt.dll only needs to be loaded if using the MT (or MTi) function - if just using SetMTMode, it is not needed at all. As with any plugin, loading can be done explicitly via LoadPlugin, or implicitly by installing it in your plugins folder.
Arshad07
17th May 2009, 10:54
LoadPlugin("RemoveGrainS.dll")
LoadPlugin("mt_masktools-26.dll")
LoadPlugin("mvtools.dll")
LoadPlugin("mvtools2.dll")
LoadPlugin("VagueDenoiser.dll")
DirectShowSource("bluray", fps=23.976, audio=false)
#deinterlace
#crop
Spline64Resize(1280,544) # Spline64 (Sharp)
MT("""
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)
""",2)
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=20, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
LoadPlugin("RemoveGrainS.dll")
LoadPlugin("mt_masktools-26.dll")
LoadPlugin("mvtools.dll")
LoadPlugin("mvtools2.dll")
LoadPlugin("VagueDenoiser.dll")
setmtmode(5)
DirectShowSource("bluray", fps=23.976, audio=false)
setmtmode(2)
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)
setmtmode(1)
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=20, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
setmtmode(2)
Spline64Resize(1280,544) # Spline64 (Sharp)
First one still result in two screens. Whereas the second one works perfectly fine. Thanks a lot mate.
Without MT in my script, it was running at 2 fps with 15% CPU Utilization and now with MT it's running at nearly 8 fps with 95 % CPU Utilization....
what an improvement i must say. Thanks again
http://i39.tinypic.com/zivnuo.png
Arshad07
17th May 2009, 12:05
^ It works yea, but after 10/30 %, x264 crashes :confused:
Arshad07
17th May 2009, 15:57
the error for that ^
http://i40.tinypic.com/23usumd.png
http://i44.tinypic.com/2v8qptl.png
http://i44.tinypic.com/2v8qptl.png
you should be using mt_masktools-25.dll
mt_masktools-25.dll -> avisynth 2.5.x
mt_masktools-26.dll -> avisynth 2.6.x
Arshad07
17th May 2009, 17:45
you should be using mt_masktools-25.dll
mt_masktools-25.dll -> avisynth 2.5.x
mt_masktools-26.dll -> avisynth 2.6.x
crashed again :(
http://i42.tinypic.com/2u5xu2g.png
rkalwaitis
17th May 2009, 21:51
I have the same problem with Megui and this version of avisynth.dll I never noticed I was loading both the 25 and 26 version. However it did not always make my x264 stop working. Im gonna check it out and see what happens.
I can not see how the vaguedenoise is used in the above scripts....a little help please :)
Arshad07
17th May 2009, 22:08
I have the same problem with Megui and this version of avisynth.dll I never noticed I was loading both the 25 and 26 version. However it did not always make my x264 stop working. Im gonna check it out and see what happens.
Mine keeps stopping at different % :(
I can not see how the vaguedenoise is used in the above scripts....a little help please :)
VagueDenoiser(threshold=0.8, method=1, nsteps=6, chromaT=0.8)
More info here (http://avisynth.org.ru/vague/vaguedenoiser.html)
Jeremy Duncan
17th May 2009, 22:30
LoadPlugin("RemoveGrainS.dll")
LoadPlugin("mt_masktools-25.dll")
LoadPlugin("mvtools.dll")
LoadPlugin("mvtools2.dll")
LoadPlugin("VagueDenoiser.dll")
setmtmode(5)
DirectShowSource("bluray", fps=23.976, audio=false)
setmtmode(2)
backward_vec3 = last.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec2 = last.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
backward_vec1 = last.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec1 = last.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec2 = last.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=2, sharp=1, idx = 1)
forward_vec3 = last.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=2, sharp=1, idx = 1)
last.MVDegrain3(backward_vec1,forward_vec1,backward_vec2,forward_vec2,backward_vec3,forward_vec3,thSAD=300,idx=1)
MT("
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=20, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
",4)
MT("spline64resize(1280, last.height)",4)
MT("spline64resize(last.width, 544)",4, splitvertical=true)
Try this code Arshad. And install the 2008 c++ redistributable I linked to in the first post.
"I have the same problem with Megui and this version of avisynth.dll I never noticed I was loading both the 25 and 26 version." - Rkwaltis
Remove the 26 version tfrom the plugins folder.
Arshad07
17th May 2009, 23:03
Try this code Arshad. And install the 2008 c++ redistributable I linked to in the first post.
Right now, am updating my Vista with SP2. I'll wait for it to finish to try it out. Thanks a lot mate
Arshad07
17th May 2009, 23:10
Btw, u edited ur post with reason stating ''changed mt to use 2 cores not 4''. Can u make it for 4 cores please. TY
J_Darnley
18th May 2009, 01:20
Why aren't you using MVTools2? It is much more thread-safe then the v1 series.
Jeremy Duncan
18th May 2009, 06:47
Why aren't you using MVTools2? It is much more thread-safe then the v1 series.
This is true. Try this with mvtools2:
LoadPlugin("RemoveGrainSSE3.dll")
LoadPlugin("sse2tools.dll")
LoadPlugin("mt_masktools-25.dll")
LoadPlugin("mvtools2.dll")
setmtmode(5)
DirectShowSource("bluray", fps=23.976, audio=false)
setmtmode(2)
Interleaved2Planar() # convert clip to planar
super = MSuper(planar=true)
bv1 = MAnalyse(super, isb = true, delta = 1, overlap=4)
fv1 = MAnalyse(super, isb = false, delta = 1, overlap=4)
bv2 = MAnalyse(super, isb = true, delta = 2, overlap=4)
fv2 = MAnalyse(super, isb = false, delta = 2, overlap=4)
bv3 = MAnalyse(super, isb = true, delta = 3, overlap=4)
fv3 = MAnalyse(super, isb = false, delta = 3, overlap=4)
MDegrain3(super,bv1,fv1,bv2,fv2,bv3,fv3,thSAD=400,planar=true)
Planar2Interleaved() # convert back to normal interleave YUY2
MT("
LimitedSharpenFaster(ss_x=1.5, ss_y=1.5, dest_x=last.width, dest_y=last.height, Smode=3, strength=20, radius=2, Lmode=1, wide=false, overshoot=1, edgemode=0, special=false, exborder=0)
",4)
MT("spline64resize(1280, last.height)",4)
MT("spline64resize(last.width, 544)",4, splitvertical=true)
mvtools2 (http://avisynth.org.ru/mvtools/mvtools-v2.4.2.zip)
Get ssetools and removegrains from removegrain 0.9: link (http://home.pages.at/kassandro/RemoveGrain/RemoveGrain.zip)
Arshad07
18th May 2009, 11:35
Will give it a try after my damn pc would get updated to SP2. Taking ages man :(
Btw, can u upload '' mt_masktools-25.dll '' on a hosting server please. I searched a lot, but coudnt find it. :(
J_Darnley
18th May 2009, 13:37
It comes in the masktools-v2 packages that you download. They are available plus the dlls only, here: http://manao4.free.fr/ Which is the second result from Google when you search for masktools
Arshad07
18th May 2009, 15:59
It comes in the masktools-v2 packages that you download. They are available plus the dlls only, here: http://manao4.free.fr/ Which is the second result from Google when you search for masktools
is it this one: '' mt_masktools2.dll '' ?
Arshad07
18th May 2009, 18:44
It works FINALLY!!! Thanks a lot to ppl who have contributed !! Appreciate it!
Just some screens:-
Before V/s After
http://i42.tinypic.com/10z253o.png
http://i41.tinypic.com/25tvz1x.png
Arshad07
18th May 2009, 19:04
Again guys, when i close the previewer window megui crashes :(
http://i44.tinypic.com/52i6jb.png
What am i doing wrong? :confused:
Arshad07
18th May 2009, 21:19
Ok, sorry for multiple consecutive posts about this issue....but i got it to work. I had to demux the video from the mkv, then create a dga file from the VC-1 i got. Then it works fine but slooooooooooooow :(
@ Jeremy Duncan
Why MDegrain3 and not MVDegrain3 ? :confused: What's the difference?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.