Quantcast DVD2AVI: my Script is Not be Read - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #1  
09-20-2004, 07:23 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
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
}
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-20-2004, 07:34 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3  
09-20-2004, 07:53 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4  
09-20-2004, 07:55 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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")
Reply With Quote
  #5  
09-20-2004, 08:02 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #6  
09-20-2004, 08:02 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7  
09-20-2004, 08:08 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8  
09-20-2004, 08:12 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #9  
09-20-2004, 08:19 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
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???
Reply With Quote
  #10  
09-20-2004, 08:25 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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).
Reply With Quote
  #11  
09-20-2004, 08:31 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
I use avisynth 2.55
I will read the manual again.

Thank you for your acalarations.
Reply With Quote
  #12  
09-20-2004, 08:50 AM
Major Major is offline
Free Member
 
Join Date: Aug 2004
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD2AVI: Flash guide for DVD2AVI/DGIndex rds_correia Video Encoding and Conversion 5 08-18-2007 07:44 AM
DVD2Avi - script avisynth et CQ matic. Encore une question spirou Conversion et d'Encodage de Vidéo (Français) 1 02-28-2004 11:16 AM
DVD2AVI: Problems at DVD2AVI Stage surfingus Video Encoding and Conversion 16 06-01-2003 01:45 PM
DVD2AVI: No sound dvd2avi holgerschlegel Video Encoding and Conversion 1 09-02-2002 06:29 PM
DVD2AVI: How to dvd2avi with .mpg files captured from nokia9600? cbr900 Video Encoding and Conversion 0 08-31-2002 09:21 AM




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