View Full Version : help me fix my script (actually Acaila's with some mods)
jarthel
9th August 2002, 08:54
It gives me "Avisynth access violation at 0x010d70d7. Anything I need to change?
Thanks for the replies
Jayel
---Here's the script-----
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\mpeg2dec.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\decomb.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\cnr2.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\mam.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\SmoothHiQ.dll")
#nofilter=mpeg2source("D:\dvdrips\dual7\dual7.d2v")
body1=mpeg2source("D:\dvdrips\dual7\dual7.d2v").trim(0,42423).Telecide().Decimate(cycle=5).crop(8,0,704,480)
credits1=mpeg2source("D:\dvdrips\dual7\dual7.d2v").trim(42424,0).Telecide().Decimate(cycle=5).crop(8,0,704,480)
LumaFiltered=MAM(body1.cnr2().TemporalSoften(1,5,25),body1.SmoothHiQ(5,50,50,125,50))
ChromaFiltered=LumaFiltered.MergeLuma(LumaFiltered)
movie=ChromaFiltered.BicubicResize(640,480,0,0.5)
credits=credits1.TemporalSmoother(10).BilinearResize(640,480)
#return movie
return movie+credits
#return nofilter
-----------------------------
Richard Berg
9th August 2002, 08:57
Can you pin down which filter is crashing?
sh0dan
9th August 2002, 09:08
... and give us a hint to what Avisynth version you are using.
jarthel
9th August 2002, 09:13
well the filter originally works without MAM. Here's the previous line before I use MAM:
1 avs file using temporalsoften2
---------------
LumaFiltered=body1.temporalSoften(1,5,25),body1.SmoothHiQ(5,50,50,125,50))
ChromaFiltered=LumaFiltered.cnr2().MergeLuma(LumaFiltered)
---------------
another avs file using SSHiQ
----------
LumaFiltered=body1.SmoothHiQ(5,50,50,125,50))
ChromaFiltered=LumaFiltered.cnr2().MergeLuma(LumaFiltered)
-----------
jarthel
9th August 2002, 09:16
Sorry.
I'm using Avisynth 2.04 and using the latest plugin DLLs. I'm using latest VDub to open avs file. I'm also using WinXP if that matters.
sh0dan
9th August 2002, 09:21
First intuition is then, of course, that the problem is MAM or CNR2 releated - without any source it is hard to determine the cause of the problem - try contacting Marc FD, and hear if it a known problem, or if he can recreate it.
jarthel
9th August 2002, 09:27
Have you tried using MAM shodan/Richard? How would you implement MAM using the same thought (my script) in mind?
Thanks
Jayel
Belgabor
9th August 2002, 09:30
In my (short) tests, MAM didnt seem to like being given Clip references as arguments, to make clear what I mean:
MAM(Cnr2(),TemporalSoften()) works,
MAM(Clip1.Cnr2(),Clip2.TemporalSoften()) doesn't.
Cheers
Belgabor
jarthel
9th August 2002, 09:34
well I did that in my script with this change:
--------
LumaFiltered=MAM(cnr2().TemporalSoften(1,5,25),SmoothHiQ(5,50,50,125,50))
ChromaFiltered=LumaFiltered.MergeLuma(LumaFiltered)
----------
it wouldn't work as it keeps on telling me that cnr2 has invalid arguments.
Jayel
Acaila
9th August 2002, 09:48
I don't want to be picky, but this:LumaFiltered=MAM(body1.cnr2().TemporalSoften(1,5,25),body1.SmoothHiQ(5,50,50,125,50))filters both luma and chroma if it's not followed by a MergeChroma(body1). If on the other hand it IS followed by MergeChroma(body1) then the cnr2() has no effect because it doesn't work luma in the first place.
and this:ChromaFiltered=LumaFiltered.MergeLuma(LumaFiltered)only merges the luma information from the LumaFiltered clip with itself which ofcourse results in no effect except probably a drop in processing speed.
My suggestion (this probably won't fix the bug if there is one):
-----------------------------------------------------------------------------
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\mpeg2dec.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\decomb.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\cnr2.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\mam.dll")
LoadPlugin("D:\downloads\windows\utilities\divx\GordianKnot\SmoothHiQ.dll")
#nofilter=mpeg2source("D:\dvdrips\dual7\dual7.d2v")
body1=mpeg2source("D:\dvdrips\dual7\dual7.d2v").trim(0,42423).Telecide().Decimate(cycle=5).crop(8,0,704,480)
credits1=mpeg2source("D:\dvdrips\dual7\dual7.d2v").trim(42424,0).Telecide().Decimate(cycle=5).crop(8,0,704,480)
LumaFiltered=body1.MAM(TemporalSoften(1,5,255),SmoothHiQ(5,50,255,125,50)).MergeChroma(body1)
ChromaFiltered=LumaFiltered.cnr2()
movie=ChromaFiltered.BicubicResize(640,480,0,0.5)
credits=credits1.TemporalSmoother(10).BilinearResize(640,480)
#return movie
return movie+credits
#return nofilter
jarthel
9th August 2002, 09:58
copy/pasted the new script Acaila. Well it wouldn't load. It's saying "invalid arguments to Temporalsoften". :(
another question in relation to the script. How will I implement spatialsofter to your original code (from another thread). You said that for animes, it's better to use temporal and spatial. I've searched the forums and I can't find something definite in this area.
Recommended settings would be nice.
Jayel
Acaila
9th August 2002, 10:13
Rename TemporalSoften to TemporalSoften2 and load the plugin at the beginning of your script. That should do it.
If it doesn't replace TemporalSoften(1,5,255) by TemporalSoften(body1,1,5,255)And replace SmoothHiQ(5,50,255,125,50) by SmoothHiQ(body1,5,50,255,125,50)
As for anime, just use something basic like:
MPEG2Source(..)
Crop(..)
TemporalSmoother(1)
SmoothHiQ(3,10,15,192,3)
SimpleResize(..)
Add whatever else you need (ivtc?). No need to do it with a complicted script, because you can safely smooth more in anime than for normal movies.
I hardly ever encode anime so I'm the wrong guy to ask about recommended settings...
jarthel
10th August 2002, 06:42
Well still wouldn't work with the new changes. Thanks for trying Acaila. :)
jayel
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.