digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Vsfilter giving me a runtime error? (http://www.digitalfaq.com/archives/avisynth/4867-vsfilter-giving-runtime.html)

totonho03 08-03-2003 06:24 PM

Vsfilter giving me a runtime error?
 
Hello:
If you do not mind, I decided to open up a thread so as to not taint the previous thread with my issues:

An update: Vsfilter is the one given me the runtime error. I am going to check all of my filters, and post the results. In addition to it, I also need to check the sampler filter, to ensure that it works w. Avs 2.52

Thanks

Totonho03

Dialhot 08-03-2003 07:19 PM

We can"t survey all the trheads in all the forums there ! So if you want to split a post, please report all informations needed to understand your problem !

vmesquita 08-03-2003 07:28 PM

@totonho03
Use the sampler I indicated in the tutorial, that is the 2.5x version of sampler... Wired, VSFilter is working fine to me, but doesn't matter to you since you plan to use switchable subtitles... Please let's us now how it is going...
Also post the script and the problem here as Dialhot suggested, people don't know what is the thread you're talking about :wink: And if they don't understand, they can't help... :)

Good luck!
[]'s
Vmesquita

totonho03 08-03-2003 09:29 PM

Dialhort and all:

You folks are correct in stating that I did not defined the problem here, and that I wa splitting threads. Sorry for that. All of my issues will be posted here.
To the best of my understanding, I have resolved my issues. VirtualDubMode is now opening the test script that I was using. It took me a long time to do it, but it is there.
I was getting all kinds of error messages, and by recheking filters and their location I am now able to open the script with no error messagesThe script that I was using is:
Quote:

#==============================================#
# -= AviSynth script by MovieStacker v2.0.0 (beta3) =- #
#==============================================#


############## # Parameters # ##############
myanamorphic=true # change to false if on step 6 you had 4:3 instead of 16:9
#subtitle="VTS_01_0.sub" # Add a# in the beginning of this line if you don't need subtitles or change for the
# of the sub file created on step 7.
myoverscan=1 # Test values from 0 to 3 here. Bigger files produce more quality but a value too big will
#cause undesirable black borders on your TV.

########## # Script # ##########
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\MPEG2Dec3.dll")
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\GripFit_YV12.dll")
#LoadPlugin("F:\DVDProjects\1Programs\Avisynth\Avi Synth 2.52_170703\plugins\VSFilter.dll")
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\Sampler-2.5.dll")
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\Decomb.dll")

Mpeg2Source("F:\DVDProjects\CQMATIC\dvd2avi176\tea rs.d2v")
telecide()
decimate(5)

#Resize, over scan and borders
GripCrop(720, 480, overscan=myoverscan, source_anamorphic=myanamorphic,dest_anamorphic=fal se)
GripSize(resizer="BicubicResize")
GripBorders()

#Subtitles # ############
#VobSub(subtitle) # Add a # in the beginning of this line if you don't need subtitles.
converttoyuy2()
sampler(15)
Next, I will try the script with the entire film and report of my results.

Thanks to all for the advise given. Please keep tune because I may need help later on........ :D

Totonho03

new_bee 08-04-2003 02:44 AM

Ok, now I need help :oops:
This thread is called script error, so I'm simply posting it in here

Code:

## DLL Section ##
#
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\TomsMoComp.dll")
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\GripFit_YV12.dll")
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\asharp.dll")
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\unfilter.dll")
LoadPlugin("C:\Programme\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("E:\Rip\Avisynth\Sampler\Sampler-2.5.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf =  0 # Current frame.
#
####

## Main section and static filters ###
#
Mpeg2Source("E:\2001_A_SPACE_ODYSSEY\odyssey.d2v")
#
TomsMoComp(1, 15, 1)

undot()
Limiter()
asharp(1, 4)
GripCrop(704, 576, overscan=2)
GripSize(resizer="BicubicResize")
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2
}

#
converttoyuy2()
sampler(length=15)

It works fine when I open it in CCE, but says "Access Violation" when I reopen it (after having changed a line in editor). I have to restart CCE and it's up and going again. Wazzup :?:

Dialhot 08-04-2003 03:41 AM

Quote:

Originally Posted by totonho03
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\MPEG2Dec3.dll")
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\GripFit_YV12.dll")
#LoadPlugin("F:\DVDProjects\1Programs\Avisynth\Avi Synth 2.52_170703\plugins\VSFilter.dll")
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\Sampler-2.5.dll")
LoadPlugin("F:\DVDProjects\1Programs\Avisynth\AviS ynth 2.52_170703\plugins\Decomb.dll")

As all plugins are in the "plugin" directory of avs2.52, there's no need of all the "loadplugin" lines : you can remove them all ! Avs will autoload every plugin that is present in the "plugin" directory.

Quote:

converttoyuy2()
No need to convert : sampler works perfectly in YV12 color space.
You will gain a lot of time.

Dialhot 08-04-2003 03:43 AM

Quote:

Originally Posted by new_bee
It works fine when I open it in CCE, but says "Access Violation" when I reopen it (after having changed a line in editor). I have to restart CCE and it's up and going again. Wazzup :?:

A bugg in CCE that prevent the reopenig of a script without restart ?

vmesquita 08-04-2003 07:39 AM

@new_bee
Did you delete and add the script after deleting the line? CCE keeps the clip lenght so you must do this.

@Dialhot
We need this converttoyuy2 because CCE doesn't accept yv12 input... :(

@Totonho03
Looking good... Please post your results!

[]'s
Vmesquita

new_bee 08-04-2003 09:41 AM

Quote:

Originally Posted by vmesquita
@new_bee
Did you delete and add the script after deleting the line? CCE keeps the clip lenght so you must do this.

Yes.
I've tried several more times (TomsMoComp doesn't come out that well, I'm using FieldDeinterlace now) and it seems as if CCE interferes with Avisynth in some way. I can encode the sample clip twice (I don't reopen it), even with different Q-Values, but when I do it the third time the .mpv file shows "Access Violation 234908352x238250945" (some strange numbers). The same when I open the AVS-File with MediaPlayer at this moment.
When I close down CCE and load the file again I have two more tries, then the same problem again. Close CCE, reopen, two tries. Strange, isn't it?

vmesquita 08-04-2003 04:00 PM

Very strange, never happened to me...

[]'s
Vmesquita


All times are GMT -5. The time now is 01:27 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.