
the code
ConvertToRGB()
video2d =last
videoW = width(video2d)
videoH = height(video2d)
ResW = videoW + 4(videoW / 100)
CropW = (ResW - videoW) / 2
f1 = video2d
f2 = deleteframe(video2d,0)
#Create L mask:
f1 = f1.Layer(mask(f1.invert), x= -2)
#Create R mask:
f2 = f2.Layer(mask(f2.invert), x= 2).deleteframe(0)
# Add the perspective effect to the second frame and crop it
f2 = PointResize(f2, ResW, videoH)
f2 = Crop(f2, CropW, 0, videoW, videoH)
rcanaglyph(f1,f2)
Its worked with me if it work with you please reply
any one can fix this code to use low cpu