digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Directshow source Help in AVIsynth? Script Error Invalid Arguments? (http://www.digitalfaq.com/archives/encode/6722-directshow-source-avisynth.html)

bigggt 11-15-2003 04:45 PM

Directshow source Help in AVIsynth? Script Error Invalid Arguments?
 
Hi i have a few files in .wmv and can't figure out what to do and everytime i try to use directShowSource i never can get it to work,do you need to get a plugin for it or is it built in Avisynth 2.52.

Here is my script

Code:

DirectShowSource("C:\My movie\item 3.wmv",false)
ConvertToYV12()
Blockbuster(method="noise",detail_min=1,detail_max=8,variance=0.3,seed=5823)
Deen()
GripCrop(352, 240, overscan=1, source_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.5,seed=5623)
GripBorders()

the message i get is

Code:

Script error Invalid arguments to function "directshowsource"
Any help will be greatly appreciated

Thanx

Dialhot 11-15-2003 05:31 PM

Read the doc provided with avisynth (under the "docs" directory). You will see that directshowsource do not have the same syntax than avisource and so, the ",false" on the line isn't correct at this place.

bigggt 11-15-2003 06:11 PM

thanx Dialhot,working now

rendalunit 11-26-2003 03:31 PM

bigggt,

How are you extracting the audio from the WMV files? I'm using goldwave and it's really slooooooow :!:

Thnx,
ren

bigggt 11-26-2003 05:50 PM

Hi ren

I actually gave up on them because i finally got them to load but then tempgenc would just freeze so i found a program that converted them to mpg.(not with great quality like we are used to but it worked)

WOWIEGURL 11-02-2006 04:46 AM

'm having the same probelms with the invalid arguments.. but the filters are installed in the avisynth plugins folder. It will say invalid arguments to function leakkerneldeint.dll & any other .dlls I'm using.

Please help

Dialhot 11-02-2006 05:05 AM

I have doubt your question has anything to do with a mistake in Directshowsource as mentionned originally in this tread.
You should have a syntax error somewhere; Post your entire, not modified script. The problem can also be in any ".avsi" file that you can have in the plugin directory of avisynth, as they are all loaded by avisynth before the first line of your avs script.

WOWIEGURL 11-02-2006 06:13 AM

Mpeg2Source=("G:\beauty 1\ep 1.d2v")
leakKernelDeint()
undot()
asharp(1, 4)
GripCrop(352,240,overscan=1,source_anamorphic=fals e)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))


#
#

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) ")

#
#
#

ColorMatrix(mode="rec.709->rec.601")
GripBorders()

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

#
#
## Functions ###

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

I wasn't haivng problems with the direct show source - only the invalid arguments part.

Dialhot 11-02-2006 06:15 AM

Did you ever see a "=" on the mpeg2source line in any of the scripts we post here ? :roll:

WOWIEGURL 11-02-2006 06:17 AM

if I don't invlude the = it can't find the .d2v file

Dialhot 11-02-2006 06:19 AM

So why didn't you start with that first ?

The error message is "Can't open the d2v" file or "Can't find the d2v file" ? The meaning is not the same.

WOWIEGURL 11-02-2006 06:21 AM

unable to load .d2v file

Dialhot 11-02-2006 06:28 AM

Ok. The version of DGDecode.dll is not correct.
You have to use the one corresponding to the DGIndex that you use. Update it in the plugin directory of avisynth if it is not the correct one.

If you are still using dvd2avi, then I suggest you to stop using it, remove Mpeg2Dec3.dll from your avisynth directory, use DGIndex inteed and put the DGDecode.dll that is delivered with DGIndex into the avisynth plugin directory.

I suggest also to change "Mpeg2Source" into "DGDecode_Mpeg2source" to be sure about what plugin is used.


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