How to Show a Video in an Editing Area of Another Video - Technology
Pular para o conteúdo

How to Show a Video in an Edit Area of Another Video

Adverts

 

How to create a mask with Glaxnimate that adapts to area movement during playback to show a video in one area from another

This is the third post I dedicate to the synergy between
shotcut
, video editor very simple and
Glaxnimateportable program Vector graphics. In the first we saw how add animations
to the videos and in the second how
draw a mask
through a polygon. In the second post the mask was made on top of a JPG image therefore, it remained unchanged throughout the
movie playback.

In this third post I will deepen this last topic by showing how the mask can also be drawn in a video with
the area that is then changed during movie playback. In fact in Glaxnimate there is the function
Record (Record) similar to that of
keyframes already seen in shotcut AND
da vinci resolves.

To go down Glaxnimate click on the page linked at the beginning of the post and go to Stable version. An owner of a Microsoft PC will click on the link
Windows Zip to download a file zip which he will then have to unpack with the same windows going up
Extract everything

or with
7-ZIP
. In the folder that will be generated with the contents of the
ZIP, Double click on the file glaxnimate.vbs

which will automatically open the program interface.

Before you can use Glaxnimate with
Shot cut,

even an empty project must be saved by going to
File -> Save As and then give a first namechoose the destiny from the same folder as
Glaxnimate

and continue To save.

shotcut
is supported by windows, mac AND
Linux

and for its installation we went up Click to downloadthe advertising banner is closed and click
windows installer on one of two websites
fosshub AND GitHubGenericName.

A file in the format will be downloaded .exe which you double-click and follow the dialog boxes to complete the installation. I posted on mine Youtube channel
a tutorial to create motorcycle masks with Glaxnimate.

 

he lets himself go shotcut is at
Playlist drag and drop the two videos you want to operate on. The first will be the background on which we will have to draw the mask, while the second will be displayed inside the mask itself.

The video to be displayed in the mask is dragged to the
Timeline then click on the same menu, go up
Operation Track -> Add Video Track in which to drag the second video in which to insert the mask.

The video on which to draw the mask must be positioned on top of the other and the two films must be equalized in their duration. You select the video above with one click and then go up Filters and click the button More.

In the card Video you click on it
Mask: draw (Glaxnimate). The configuration window will open.

Glaxnimate mask

Click on one of the two buttons New or
You open

then select the empty project file saved with Glaxnimate in format .RAWR. Let's display a window to go Yes per
replace the file
.

It will open automatically Glaxnimate in which we will also display the video to apply the mask to. You check whether the playhead is positioned on the first frame of the movie. The tool is selected Draw the Bézier curve on the left, then trace the polygon in the area you want to show the video below.

For every click one at the. In the present case, there will only be 4 clicks to create a quadrilateral. The last click will occur above the first to create a sketch. Can you help us with this Enlargement activated by moving the mouse wheel forward while holding down Ctrl. To move the screen, you press on the same wheel.

mask creation

After completing the follow-up click in
Filling to open the palette in which to define the color #FFFFFF i.e. the
White and continue OK. The mask drawn with the mouse will then be colored by white.

If we go down Touch however, this mask will only work for the first frame. To change the mask during video playback, click the tool To edit who will show me us of the polygonal.

Click on the button Record and moves the playhead forward. With the cursor you move the nodes to adapt the mask to the new position and size of the area. Then go up again Record.

create keyframes on the mask

A series of
keyframe

which will adapt the shape of the mask when playing the video. It is clear that the greater the number of these keyframes
and the final result is better.

In certain circumstances it may be necessary
add a new node to those already present. You then go to the menu.

node added to mask

click in Path -> Add node Click the outline you want to add it to, then move it as desired.

When we reached the last frame of the Timeline click in Touch to check if the result is good.

save the mask

If not, we can still create others keyframe
adjusting the knots and then moving up Record. When we are satisfied we go up File -> Save. At this point, we can also close the Glaxnimate.

We then went back up shotcut where you will see the mask that was created, but which will be on the contrary. In the sense of hiding what should be displayed and showing what should be hidden.

glaxnimate mask in shotcut

Always with the same clip selected you go up Filtersyou choose me Video filters and click on it
Alpha Channel: Adjust. This will open your configuration window to go to Inverted to turn the display.

The overlaid clip will appear with the underlying clip inside the mask you drew.

rotation position size filter

If the area in which the video is displayed changes its size significantly, it is necessary to act on the clip which must be selected with one click. O Video filter size, position and rotation. The video will be shown with four corner handles and a center point with which to resize and reposition the screen.

We start from the first frame, apply i
keyframe then the
Playhead and you act on the screen again to adapt it to the new position and size of the mask.

The video preview is played to check the result. Optionally, the
Exponential Blur Filter to show the video in a not very clear way on the mask. To save the result, go to
Export, you select Template to a file MP4 then click on export fileyou choose the output folderyou give a first name for the video, you go up To save and wait for the end of the encoding shown in the window Activities.