digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2SVCD: Need help with scriptclip line (http://www.digitalfaq.com/archives/encode/13612-dvd2svcd-scriptclip-line.html)

The Untouchable 06-24-2005 01:41 PM

DVD2SVCD: Need help with scriptclip line
 
Hey every1, when I use dialhots DVD2SVCD Adaptive script
it gives this error in the movie preview, why & how can I fix this?
thanks..

Using this ...

9=ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")

I get this error

evaluate: Unrecognized exception!
(ScriptClip], line 1)

would the function still be working if I applied it like this instead

^ScriptClip(" nf=YDifferenceToNext()" +chr(13)+ "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) ")

This would be my script if I make the changes that I just asked about

0=nf=0
1=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
2=GripSize(resizer="BiCubicResize")
3=Undot()
4=Asharp(1, 4)
5=STMedianFilter(^S_FilterThreshHold, ^S_EdgeThreshHold, ^T_FilterThreshHold, ^T_EdgeThreshHold )
6=MergeChroma(blur(^blur_chroma))
7=MergeLuma(blur(^blur_luma))
8=SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
9=GripBorders()
10=function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
11=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
^ScriptClip(" nf=YDifferenceToNext()" +chr(13)+ "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) ")
^overscan=1
^source_ana=true
^dest_ana=false
^S_FilterThreshHold=3
^S_EdgeThreshHold=3
^T_FilterThreshHold=1
^T_EdgeThreshHold=1
^blur_chroma=1.58
^blur_luma=0.1

Prodater64 06-24-2005 01:49 PM

Post the whole script please.
As:
Code:

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("Your_D2V_Source_Here")
#
undot()
asharp(1, 4)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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!

#
#
## Functions ###

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


The Untouchable 06-24-2005 01:52 PM

this is the original dialhot script that gives an error...

0=nf=0
1=GripCrop(^TargetWidth, ^TargetHeight+^BorderTop+^BorderBottom, overscan=^overscan, source_anamorphic=^source_ana, dest_anamorphic=^dest_ana)
2=GripSize(resizer="BiCubicResize")
3=Undot()
4=Asharp(1, 4)
5=STMedianFilter(^S_FilterThreshHold, ^S_EdgeThreshHold, ^T_FilterThreshHold, ^T_EdgeThreshHold )
6=MergeChroma(blur(^blur_chroma))
7=MergeLuma(blur(^blur_luma))
8=SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
9=ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "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) ")
10=GripBorders()
11=function fmin(int f1, int f2) { return (f1<f2) ? f1 : f2 }
12=function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12(c) }
^overscan=1
^source_ana=true
^dest_ana=false
^S_FilterThreshHold=3
^S_EdgeThreshHold=3
^T_FilterThreshHold=1
^T_EdgeThreshHold=1
^blur_chroma=1.58
^blur_luma=0.1

hmmm ... would the function still be working if I applied it like this instead & moved it to after #12?

^ScriptClip(" nf=YDifferenceToNext()" +chr(13)+ "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) ")

Dialhot 06-24-2005 05:32 PM

No it can't work like this.
And the script I gave monthes ago is correct (check that you correctly pasted it, the scripclip line must be on a single line for instance)

Else I guess your source has a problem.

Note: I moved the thread in the correct forum

The Untouchable 06-24-2005 08:17 PM

Source is dvd, I've tryed 3 diff dvds, it does that for all
also It is all on 1 line ...
Anything else that can cause this, all the other frameserver synth scripts work, so does this 1 BUT it has big error letters on the video

Dialhot 06-25-2005 03:25 AM

Do a search on the forum. These "evaluate errors" have already been discussed and resolved (I guess). I just don't remember now what caused this.

The Untouchable 06-25-2005 04:09 AM

Thats really wierd bro, I installed an older version of avisynth
(AVS 2.5.5 RC3(26-08-04) instead of "Avisynth 2.5.5."
& the errors gone hmmmm

Dialhot 06-25-2005 04:15 AM

That's weird. But at least you found a workaround :)

Note: last beta release is 2.5.6. You can try to retrieve it.

The Untouchable 06-25-2005 01:03 PM

tried using 2.5.6 b3 but everytime I try to prieview or run dvd2svcd, the program shuts down hmmm wonder if 2.5.6 b1 does that too.
u said last build ... did they stop making avisynth or something?

Prodater64 06-25-2005 01:10 PM

Quote:

Originally Posted by The Untouchable
tried using 2.5.6 b3 but everytime I try to prieview or run dvd2svcd, the program shuts down hmmm wonder if 2.5.6 b1 does that too.
u said last build ... did they stop making avisynth or something?

He means last available beta version.
Avisynth developement don't stop.

The Untouchable 06-25-2005 01:21 PM

:oops:


All times are GMT -5. The time now is 07:03 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.