Log in

View Full Version : script error


gavo
27th May 2006, 19:51
Posted: Sat May 27, 2006 10:19 am Post subject:

--------------------------------------------------------------------------------

Can't seem to get your script to load up

a = MPEG2Source("C:\your_file.d2v").Crop(8,0,-8,0).ConvertToYV12().Deen("a3d", 3)
lm = a.FluxSmoothST(7, 24).Deen("a2d", 7).Blur(1.5).Blur(1.5)
lm_m = lm.EdgeMask(0, 1, 255, 255, "cartoon", Y=3, V=1,U=1).Binarize(threshold=20).Greyscale().Invert().Blur(1.5).Blur(1.5).Blur(1.5).Blur(1.5)
nlm = MaskedMerge(lm, a, lm_m)
mfToon(nlm).Tweak(sat=1.2, cont=1.1, bright=1.3).AddBorders(8,0,8,0)

The values with the letters are being rejected, here's what I got working.

Telecide(order=1,guide=1)
Decimate(cycle=5, mode=2)
assumefps(24)
Crop(8,0,-8,0)
ConvertToYV12()
Deen("a3d", 3)
FluxSmoothST(7, 24).Deen("a2d", 7).Blur(1.5).Blur(1.5)
#Binarize(threshold=20).Greyscale().Invert().Blur(1.5).Blur(1.5).Blur(1.5).Blur(1.5)
#MaskedMerge(lm, a, lm_m)
mfToon
Tweak(sat=1.2, cont=1.1, bright=1.3)
AddBorders(8,0,8,0)


I have to get rid of some letter volumes as it didnt understand them, and it does not understand masked merge lm a values, I got the script from someone and I just want to see if it works with my footage. if anyone knows any adjustments that be great.

stickboy
28th May 2006, 05:47
Can't seem to get your script to load upWho? Whom are you replying to?
The values with the letters are being rejected, here's what I got working.I don't understand what you mean by "values with the letters". Exactly what was the error you got?
Telecide(order=1,guide=1)
Decimate(cycle=5, mode=2)
assumefps(24)
Crop(8,0,-8,0)
ConvertToYV12()
Deen("a3d", 3)
FluxSmoothST(7, 24).Deen("a2d", 7).Blur(1.5).Blur(1.5)
#Binarize(threshold=20).Greyscale().Invert().Blur(1.5).Blur(1.5).Blur(1.5).Blur(1.5)
#MaskedMerge(lm, a, lm_m)
mfToon
Tweak(sat=1.2, cont=1.1, bright=1.3)
AddBorders(8,0,8,0)

I have to get rid of some letter volumes as it didnt understand them, and it does not understand masked merge lm a values, I got the script from someone and I just want to see if it works with my footage. if anyone knows any adjustments that be great.Again, I don't understand what "letter volumes" means. It's not clear from your post what your exact script is (is it the first version or the second?). I'm assuming the lines you commented out are the ones that are problematic, in which case, yes, you're calling MaskedMerge with variables (lm, a, lm_m) that you haven't defined!

gavo
29th May 2006, 00:06
Sorry, I got the script from a friend, and I just trying to apply it to my footage. As you can see, the second one, is the one that I can load up. The first script that I have however I can't load up due to those values you just mentioned that were not filled. I"m assumeing then, that I should just use the default setting. When i just put MaskedMerge(), I get a error saying invaild arguments. So when I just disable maskedmerge and use this script here

Telecide(order=1,guide=1)
Decimate(cycle=5, mode=2)
assumefps(24)
Crop(8,0,-8,0)
ConvertToYV12()
Deen("a3d", 3)
FluxSmoothST(7, 24).Deen("a2d", 7).Blur(1.5).Blur(1.5)
Binarize(threshold=20).Greyscale().Invert().Blur(1.5).Blur(1.5).Blur(1.5).Blur(1.5)
#MaskedMerge()
mfToon
Tweak(sat=1.2, cont=1.1, bright=1.3)
AddBorders(8,0,8,0)



I just get a white screen, it only after I disable #Binarize(threshold=20).Greyscale().Invert().Blur(1.5).Blur(1.5).Blur(1.5).Blur(1.5)

that it works, here what I got working

Telecide(order=1,guide=1)
Decimate(cycle=5, mode=2)
assumefps(24)
Crop(8,0,-8,0)
ConvertToYV12()
Deen("a3d", 3)
FluxSmoothST(7, 24).Deen("a2d", 7).Blur(1.5).Blur(1.5)
#Binarize(threshold=20).Greyscale().Invert().Blur(1.5).Blur(1.5).Blur(1.5).Blur(1.5)
#MaskedMerge()
mfToon
Tweak(sat=1.2, cont=1.1, bright=1.3)
AddBorders(8,0,8,0)