1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| factor3D = 20 inputFile = "D:\video.mp4"
video2d = FFVideoSource(inputFile)
video2d = ConvertToRGB32(video2d)
videoW = width(video2d) videoH = height(video2d) ResW = videoW + (videoW / factor3D) videoH = videoH + (videoH / factor3D) video2d = LanczosResize(video2d, videoW, videoH) CropW = (ResW - videoW) / 2
f1 = video2d f2 = DeleteFrame(video2d, 0)
f1 = LanczosResize(f1, ResW, videoH) f1 = Crop(f1, 0, 0, videoW, videoH)
f2 = LanczosResize(f2, ResW, videoH) f2 = Crop(f2, CropW, 0, videoW, videoH)
StackHorizontal(f2, f1)
|