![]() |
| 3D Video Wall |
if you were following the blog, on Part 1 of this series you were able to make your first side-by-side stereo video using AVISynth and VirtualDub.
If you had no material in order to test, be patient, i will be posting a ip file with an example including the avs file and a set of picture sequences in the next post. I will also post some nice scripts for converting existing 5-tiled videos into Youtube 3D videos and how to convert 8-tiled videos into 5-tiled videos.
On this post we will concentrate in getting all 5 views on one video in the so called 5-tiled video.
We have then the following:
a5 = ImageSource("view01_%04d.jpg", start=970, end=1042, fps=25).LanczosResize(960, 540)
a4 = ImageSource("view02_%04d.jpg", start=970, end=1042, fps=25).LanczosResize(960, 540)
a3 = ImageSource("view03_%04d.jpg", start=970, end=1042, fps=25).LanczosResize(960, 540)
a2 = ImageSource("view04_%04d.jpg", start=970, end=1042, fps=25).LanczosResize(960, 540)
a1 = ImageSource("view05_%04d.jpg", start=970, end=1042, fps=25).LanczosResize(960, 540)
We now Stack the view one and two in side-by-sideand then video three and 4.
s11 = StackHorizontal(a1, a2)
s21 = StackHorizontal(a3, a4)
We have now two side-by-side videos calles s11 and s21. These two videos should be placed in top of each other so that we get a 4-tiled video.
StackVertical(s11,s21)
Now we need to split the video 5 into two parts, the upper and lower parts and then stack them together in side-by-side.
line1 = Crop(a5, 0, 0, 0, 270)
line2 = Crop(a5, 0, 270, 0, 0)
line3 = StackHorizontal(line1, line2)
Please note that we have to enter the height of the video on the Crop function: 540 / 2 = 270.
Now we just need to stack the resulting video to the bottom
StackVertical(line3)
That's it. Just load it in VirtualDub, choose the correct codec and save your 5-tiled 3d video.
Please note that we are working with half Full HD resolution. For 3D video walls like the one in the picture, you will need to work with higher resolutions. At least 1024x576.
See you next time.

No comments:
Post a Comment