Log in

View Full Version : Please help with really bizarre avisynth syntax problem


markrb
18th March 2002, 19:52
When I load the following avs script into media player and CCE they both work: This AVS Works.
#Import("xsharp.avs")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
#Loadplugin("D:\DVD\Tweak\tweak.dll","tweak")
mpeg2source("F:\tweak1\DVD2AV~1.D2V")
#tweak(hue=-5,sat=.9,bright=15,cont=.9)
#ConvertToRgb()
#VD_Xsharpen
TemporalSmoother(3,1)
Sharpen(.5)
BicubicResize(480,360,0.00,0.55)
AddBorders(0,60,0,60)
ResampleAudio(44100)


However when I remove the #(rem) lines the avs will play in media player, but CCE will only encode red lines on the bottom of the screen. There isn't even any text there as if it was an error. Also the CCE speed will be over 5.

This is the avs without the #rem out lines so you can see it better.
This AVS Does not work.

LoadPlugin("C:\PROGRA~1\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
mpeg2source("F:\tweak1\DVD2AV~1.D2V")
TemporalSmoother(3,1)
Sharpen(.5)
BicubicResize(480,360,0.00,0.55)
AddBorders(0,60,0,60)
ResampleAudio(44100)

Any ideas why one works when the other doesn't? To my eyes they should be the same. All I am trying to do is add the function Sharpen to the Avs file that DVD2SVCD creates. Maybe I have the syntax of it wrong?

Thanks,
Mark

Acaila
18th March 2002, 23:27
#ConvertToRgb()
#VD_Xsharpen

When you convert to RGB you also need to convert back I believe.

That makes it:
ConvertToRGB()
VD_Xsharpen
ConvertToYUY2()

Maybe you also need a () behind Xsharpen? (-> VD_Xsharpen() )

markrb
19th March 2002, 01:02
Those lines are rem'ed out and are not actually used.

I just tested by removing TS and just have Sharpen in the AVS and vice versa and they both work without the other in there with a clean AVS file. Why will it work with the messed up AVS, but they not work together in the clean one? More testing, but if anyone has something for me to try please tell me. I would like to get both sharpen and TS working together.

Mark

Acaila
19th March 2002, 09:08
Sorry, I misunderstood your question.
Both scripts look identical so there's no reason why one should work and the other fail.