Log in

View Full Version : error loading avs script into CCE


jarthel
12th November 2004, 18:22
I have the following script:
----------
import("C:\Program Files\NuMenu4U\new.avs\addaudio.avs")
LoadPlugin("C:\Program Files\NuMenu4U\new.dvd2avi\mpeg2dec3dg.dll")
Mpeg2Source("C:\INITIAL_D_VOL_6\D_VTS_01_0\FRAMESERVING\001.d2v" ,Idct=7,iPP=true)
LoadPlugin("d:\downloads\windows\videos\DVD authoring\avisynth\plugins25\decomb.dll")
FieldDeinterlace()

LoadPlugin("d:\downloads\windows\videos\DVD authoring\avisynth\plugins25\removegrain.dll")
LoadPlugin("d:\downloads\windows\videos\DVD authoring\avisynth\plugins25\removedirt.dll")

removegrain()
removedirt()
AddAudio()
ConvertToYUY2()
-----------------------

If I load this script into CCE, I would get an error saying "Frame size 1112x56 is not supported". The weird thing is that if I open the file inside vdub, the frame size is 720x576 which PAL frame size.

Another weird thing, if I removed the "loadplugin" statements that are hightlighted, this script will load perfectly in CCE but of course vdub won't load cause "removegrain" and "removedirt" are unknown functions.

The weirdest thing of all is that this script was running 5 times before it decided not to run suddenly!!! :|

Any ideas?

RB
19th November 2004, 09:24
When the script fails to load in CCE, open it in MediaPlayer. What do you see?

Pringles
30th November 2004, 18:51
Hi ! I do have the same error msg with another kind of avs file:

LoadPlugin("C:\Program Files\GordianKnot\VirtualDubMod\plugins\textsub.vdf")
avisource("D:\yuvi.avi")
BicubicResize(720,272)
AddBorders(0,104,0,104)
TextSub("D:\yuvi.srt")
ResampleAudio(44100)

The avi file is encoded in Xvid and I'm trying to convert it with CCE, following this guide: http://www.doom9.org/mpg/avi2dvdr.htm

When I load the AVS in mpc, I have the following msg:

Plugin("C:\Program Files\GordianKnot\VirtualDubMod\plugins\textsub.vdf") is not an Avisynth 2.5 plugin.
(D:\yuvi.avs, line 1)

It seems that there is a problem with textsub.vdf, but I don't know what. I followed exactly (well, I think) what was writen in the doom9 guide.

Anyone knows what it would be ?
Thanks in advance!

RB
30th November 2004, 21:15
Obviously this Textsub plugin is not for AVISynth 2.5x which you are using. Get an updated plugin or downgrade to AVISymth 2.0x.

Pringles
1st December 2004, 20:53
Thanks for your answer. By downgrading, it now works fine :)

Socio
1st December 2004, 22:38
Also if it is a Vurtualdub plug-in I think you have to use the "LoadVirtualDubPlugin" call instead of just "LoadPlugin"

Pringles
2nd December 2004, 16:01
Thanks for your answer ;)

I also wonder why some scripts don't work, such as:
LoadPlugin("C:\Program Files\GordianKnot\mpeg2dec3.dll")
mpeg2source("J:\DVD\1492\1492.d2v",false)

It says Invalid arguments to function "mpeg2source"

Is it possible to select a d2v file to make CCE convert VOB files ?
Thanks :)

Boulder
3rd December 2004, 15:33
mpeg2source("J:\DVD\1492\1492.d2v",false) is wrong because there is no option that has the Boolean "false" as the parameter. You're probably mixing it up with AVISource which has the option "audio" which can be true or false.

Just use mpeg2source("J:\DVD\1492\1492.d2v") and you'll be fine.

Pringles
7th December 2004, 17:27
Thanks :)