digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   DVD2AVI: My script is not be read (http://www.digitalfaq.com/archives/encode/12219-dvd2avi-script-read.html)

Major 09-20-2004 07:23 AM

my script is not be read
 
I use dgmpgdec 1.0.12. i create the project .d2v, but when i tried to play the script in the media player, it told me: script error : expected a or. the error message refers to the line 9, the line is: mpeg2source .....

The script is:
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\GripFit_YV12.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\asharp.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\unfilter.dll")
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\undot.dll")

## Main section and static filters ###
Mpeg2Source(C:\DVD\Tenias.d2v)
#
undot()
asharp(1, 4)
gripCrop(352, 288, overscan=1, source_anamorphic=false,dest_anamorphic=false)
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 )
## Functions ###

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

Dialhot 09-20-2004 07:34 AM

You seems to have your plugins in the default plugin directory of avisynth. That means that :

1/ you do not need to use "loadplugin" lines in your script
2/ any plugin present in the directory is loaded, even if you do not have a "loadplugin" line for it in the script.

In other words : check that you don't have an old mpeg2dec3.dll file in this directory, because it can be used insteed of "DgDecode.dll" without your knowledge.

Major 09-20-2004 07:53 AM

Okay I dont use loadplugin.
I move the old mpg2dec3.dll to other directory, but without success.

should I put any conversion at the end of the script?

my project file is:
DGIndexProjectFile06
4
19 C:\DVD\VTS_02_1.VOB
19 C:\DVD\VTS_02_2.VOB
19 C:\DVD\VTS_02_3.VOB
19 C:\DVD\VTS_02_4.VOB

Stream_Type=1
iDCT_Algorithm=5 (1:MMX 2:SSEMMX 3:FPU 4:REF 5:SSE2MMX)
YUVRGB_Scale=0 (0:TVScale 1:PCScale)
Luminance_Filter=0,0 (Gamma, Offset)
Clipping=0,0,0,0 (ClipLeft, ClipRight, ClipTop, ClipBottom)
Aspect_Ratio=4:3
Picture_Size=720x576
Field_Operation=0 (0:None 1:ForcedFILM 2:RawFrames)
Frame_Rate=25000
Location=0,0,3,F8B9

7 0 2048 1 1 12 12 12 12 12 12 12 12 12 12 12 12
.................................................. .
............................................

FINISHED 0.00% FILM

Dialhot 09-20-2004 07:55 AM

Quote:

Originally Posted by Major
Okay I dont use loadplugin.
I move the old mpg2dec3.dll to other directory, but without success.

My mistake ! Your problem is that you forgot the quotes !
Try
Code:

Mpeg2Source("C:\DVD\Tenias.d2v")

jorel 09-20-2004 08:02 AM

Re: my script is not be read
 
Quote:

Originally Posted by Major
.... but when i tried to play the script in the media player, it told me: script error : expected a or. the error message refers to the line 9, the line is: mpeg2source .....

don't use media player, choose another one like zoomplayer or MPClassic!

Major 09-20-2004 08:02 AM

Yes, It works now, thank you very much.
I see other problem, when i played the script, it appears a message at the top of the image of the film (the whole film).

Script error: synthax error
{[script clip], line 2. column 0

Dialhot 09-20-2004 08:08 AM

Quote:

Originally Posted by Major
Script error: synthax error
{[script clip], line 2. column 0

All the part starting from "Scriptclip" to ", 1, 1) ") " must be on a single line ! Else you have the syntax error that you notice.

Major 09-20-2004 08:12 AM

Yes it works perfectly, thank you very much for your help.

I have divided the line witch contains scriptclip into 2 lines.

Thank you again

Major 09-20-2004 08:19 AM

Sorry, one questio.
If I put the old mpg2dec3g.dll in the same directoy as the new dgdecode.dll, and if put the line in the script:
LoadPlugin("C:\Archivos de programa\AviSynth 2.5\plugins\DGDecode.dll")

my question: I am forcing it to read from Dgdecode.dll or it will read one of them without my knowledge???

Dialhot 09-20-2004 08:25 AM

Quote:

Originally Posted by Major
my question: I am forcing it to read from Dgdecode.dll or it will read one of them without my knowledge???

This a in the avisynth manual (that is on your disc, in the doc directory of avisynth)
Quote:

user-defined function (always have the highest priority)
plugin-function (have higher priority than built-in functions - they will override a built-in function)
built-in function

Inside those groups the function loaded at last takes precedence, there is no error in a namespace conflict.
As the plugins are loaded in alphabetical order, mpeg2dec3 is loaded after DGIndex and so, it takes precedence.

If you want to force the usage of a particular function, you can do it with the last 2.55 release of avisynth :
Quote:

Starting from v2.55 there is DLLName_function() support. The problem is that two plugins can have different functions which are named the same. To call the needed one, DLLName_function() support is added. It only works for auto-loaded plugins. It doesn't auto-generate the additional names for plug-ins loaded with LoadPlugin.
(again, do read the manual).

Major 09-20-2004 08:31 AM

I use avisynth 2.55
I will read the manual again.

Thank you for your acalarations. :lol: :wink:

Major 09-20-2004 08:50 AM

Well, after I have read this part of the manual, i had to put in the line of mpeg2source:

## Main section and static filters ###
DGDecode_Mpeg2Source("C:\DVD\Tenias.d2v")

Thank you very much :wink:


All times are GMT -5. The time now is 05:58 PM  —  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.