octavarium
29th October 2008, 21:23
I feel like i've worked myself into a corner, and i need help getting this script to add an overlay. I've trimmed out sections to do different processing to save time and since the opening is a regular movie and the rest is anime, i'd like to keep it this way if possible. All that i have tried seems to fail, and the only way i've been able to get the overlay added is by commenting out everything except the clip1/clip2 variables. I'm trying to add the overlay to trimmed section 'a'. Here's what i have to work with.
clip1 = DGDecode_mpeg2source("E:\Projects\DesertPunk\v1.d2v", info=3)
clip2 = avisource("E:\Downloads\DesertPunkOP.avi")
Overlay(clip1, clip2, mode="blend", opacity=0.5)
a = trim(clip1,45,2742)
b = trim(clip1,2743,43499)
c = a.ColorMatrix(hints=true).ConvertToYV12().tfm(order=1).tdecimate(hybrid=1).Crop(4,4,-2,-4).Spline64Resize(640,480).Convolution3D( "MovieLQ" ).Tweak(hue=0.12,sat=1.3,cont=1.14,bright=-5.62)
d = b.ColorMatrix(hints=true).ConvertToYV12().tfm(order=1).tdecimate(hybrid=1).antialiasing(order=1).Crop(4,4,-2,-4).Spline64Resize(640,480).degrainmedian(4,6,1,false,false).HQDN3D(2.6,4.2,1,3.8).fastlinedarken(102,212,224,1).WarpSharp().Tweak(hue=0.12,sat=1.3,cont=1.14,bright=-5.62)
e = c+d
return(e)
any suggestions would be greatly appreciated.
clip1 = DGDecode_mpeg2source("E:\Projects\DesertPunk\v1.d2v", info=3)
clip2 = avisource("E:\Downloads\DesertPunkOP.avi")
Overlay(clip1, clip2, mode="blend", opacity=0.5)
a = trim(clip1,45,2742)
b = trim(clip1,2743,43499)
c = a.ColorMatrix(hints=true).ConvertToYV12().tfm(order=1).tdecimate(hybrid=1).Crop(4,4,-2,-4).Spline64Resize(640,480).Convolution3D( "MovieLQ" ).Tweak(hue=0.12,sat=1.3,cont=1.14,bright=-5.62)
d = b.ColorMatrix(hints=true).ConvertToYV12().tfm(order=1).tdecimate(hybrid=1).antialiasing(order=1).Crop(4,4,-2,-4).Spline64Resize(640,480).degrainmedian(4,6,1,false,false).HQDN3D(2.6,4.2,1,3.8).fastlinedarken(102,212,224,1).WarpSharp().Tweak(hue=0.12,sat=1.3,cont=1.14,bright=-5.62)
e = c+d
return(e)
any suggestions would be greatly appreciated.