Vous êtes sur la page 1sur 6

DVD-Motion Menu Buttons (Free & Easy)

NOTE::DVDLab 1.3 now appears to create motion buttons for you. I haven't tried it, but the guide is here Tools

DVD-Lab (Free trial) Your Favorite Image Editor: Here's a Freeware one Avisynth (Freeware) VirtualDub (Freeware)

1. Get your Assets

Required : your movie clips as avi files Optional : Frames, backgrounds, music For this guide we are going to use the backgrounds and frames that come with DVD-Lab.
2. Make Menu/Background

a. Make a Menu with frames and a background using DVD-Lab. Try to stay within the inner dotted line (title safe area) if you want to make xtra sure it wont clip on your tv.

b. Export the Menu as an avi "Background.avi". You need only 1 frame. The size should be 720 x 540. This size makes it easier to place your clips. We will resize latter to 720 x 480.

c.

3. Make the Mask

We need to make holes in the background. The clips will show thru the black parts of our mask.

a. Place a White rectangle behind the frames, and move it to back. Also, if you set the drop shadow of the frames to none, it will be easier to edit.

b. Export again. This time as an Overlay "Overlay.png". This removes the background. c. Edit with a image editor (Photoshop, etc.). I used EasyPeg (Freeware) to do this example. I removed the frames and the left over white rectangle. Then I did a negative image effect

to turn white to black. This is my actual mask file.

d. In DVD-Lab, add a new menu, import "Overlay.png" as a background, put it in the new menu, then export it as "Mask.avi" 720 x 540.

4. Easy Placement of Clips

Draw some frames around your black spots in the 2nd menu. Don't let them overlap the other black spots. Right click on them to check the size and position. We will use these numbers to place the clips on the menu.

5. Put it all together 6. a. Make a text file "Menu.avs" and paste the following script

Code: #-----------------------------------------------------# 1 Load Menu Background & Mask BackGround = AviSource("Background.avi").ConvertToRGB32() Mask = AviSource("Mask.avi").ConvertToRGB32()

# 2 Load Clips Clip1=AviSource("bfly.avi").Trim( 2129, -1800).ConvertToRGB32() Clip2=AviSource("cell.avi").Trim( 2572, -1800).ConvertToRGB32() Clip3=AviSource("stars.avi").Trim( 1533, -1800).ConvertToRGB32() Clip4=AviSource("stink.avi").Trim( 1000, -1800).ConvertToRGB32() # 3 Start the Menu as a blank clip Menu = BlankClip(Background).loop(1800) # 4 Size & Place the Clips Clip1 = Clip1.crop(110,0,-110,0).LanczosResize(190, 185) Menu = Layer(Menu, Clip1, "add", 255, 78, 178) Clip2 = Clip2.crop(110,0,-110,0).LanczosResize(190, 185) Menu = Layer(Menu, Clip2, "add", 255, 270, 67) Clip3 = Clip3.crop(110,0,-110,0).LanczosResize(190, 185) Menu = Layer(Menu, Clip3, "add", 255, 448, 182) Clip4 = Clip4.crop(110,0,-110,0).LanczosResize(190, 185) Menu = Layer(Menu, Clip4, "add", 255, 257, 299) # 5 Mask & Place the Background BackGround = Mask(BackGround,Mask) Layer(Menu, BackGround, "add", 255, 0, 0) # 6 Resize to D1 BilinearResize(720, 480) #-----------------------------------------------------b. Here is what it does: c. 1. Load the files we exported from DVD-Lab and put them in a common color format 2. Load the clips, grab 1800 frames (1 min @ 30fps) from different starting frames, and put them in a common color format. You can use VirtualDub to find the starting frame you want. 3. Start the menu as a 1 min blank clip with the same fps, size, etc. as our background 4. Crop the clips and size them to our frames. Crop 1st because we have rectangle clips and need more square, this way resize doesn't distort the aspect too much. Layer the clips on the Menu we are building. Use the size and placement from your frames in "4) Easy Placement of Clips". 5. Mask the Background. This makes the corresponding black parts transparent (inside our frames). Layer the background over our clips. Their centers will show thru. Here is a (lame) picture of the blank menu, the clips, and the masked background.

d. Open the "menu.avs" script in virtual dub and this is what you get.

e. Save it in VirtualDub (or frameserve) , and encode an Mpeg with your favorite encoder.

7. Author the Menu

Here is a DVD-Lab menu guide. Scroll down to section : "3. Thumbnail Motion menus or more complicated motions." and follow steps 3 thru 6.

Notes and Comments

You Don't really need DVD-Lab to create the background and overlay avi files. Avisynth can load png files directly. I find DVD-Lab nice because it has the safe areas, built in frames, etc. You can also use Maestro to Author. In fact, once you make the Background & Mask avi files, you can reuse them easily. Just put the Text in Maestro.

Here is a discussion with more than 4 other ways to do this. How to make video streams for animated menus Black and White Mask - The Mask function in Avisynth makes Black areas transparent. It is easier in DVD-Lab to draw white rectangles. For Easy Placement of clips, you could use the size and shape of your original (circle) frames. You can run into problems if the corners overlap. Your clips should really be the size of the inside of these frames, not the outside.

Vous aimerez peut-être aussi