|
carol.gimp.orgGIMP 2.2GIMP Animation Plug-in:Layers |
|
This tutorial starts with a stack of video extracted frames and requires some knowledge of TheGIMP and TheGIMP Animation Plug-in and its Video Navigator. Using simple layer manipulation via the animation plug-in to mask off portions of all the frames and then to add a background to each frame is the goal of this example. With TheGIMP, it is six simple jobs, add the alpha channel, add the mask, paste the mask image to the mask, add the new background layer, make sure it is underneath the main layer and flatten the image. The process will be almost the same when working with the stack of frames, each step needs to work over every frame in the stack. To accomplish these same six steps with GAP, the tutorial will use four different gap dialogs:
|
|
Make a maskThis is my third mask for this simple task. The first mask left too much of the blue and I wanted the transition between my image and my fake sky background to be less obvious. The next mask cut off parts of the mobile in big chunks of the movie -- that mask was too small. There were a few options; I opted to start over. This mask is going to go through some image making hocus pocus. A copy of this mask is to be attached as a new layer underneath each of our movie image frames. Then it is going to become a layer of this original image, and then the layer that got copied gets deleted. The next three steps outline this. |
|
|
What has just been accomplished can be seen in the layers dialog. A new layer has been attached to the lowest layer position in each frame in the stack. At this point, it is not looking like the typical way a layer is applied to a normal gimp image as well. The animation dialogs present a different way to do this. |
|
|
Check in the layers dialog to see if the layer was successfully applied. The frame image in the special image window will not look so good at this step since the layer that was used as the mask is showing where the original layer is transparent. The next step is to delete this layer. |
|
|
Delete a layerKnowing that image frames were forced to have layer numbers starting at the top with 0 and working up through the numbers as you count down through the layers, the layer called 1 needs to be deleted. Change the Layerstack: number from 0 to 1 and touch the [OK] button. Check it in the layers dialog to see if the correct layer is deleted. |
Make a new backgroundClassic gimp tools and dialogs were used to create the new background for this movie. The gimp color picker to get the colors from the sky and the gimp gradient editor to spread those colors out similarly. Classic gimp tools and dialogs were used to create the new background for this movie. The gimp color picker to get the colors from the sky and the gimp gradient editor to spread those colors out similarly. |
|
Add the new background image as a layerUsing the Video -->Move Path dialog the exact same way as it was used to add the mask layer; add the new sky background image to each frame in the stack. Make sure that the new background image is open on in this gimp session for the plug-in to be able to use it. |
|
Flatten all of the framesThis step is actually not required. The Master Videoencoder handles that for you. One uncomplicated dialog does this. Select Video -->Flatten Frames and touch the [OK] button. This step should complete all of the layers manipulation I did on the frame stack from the movie. All that is left to do is to find some sound and re-encode this for a standard player or something else if this does not exist. |
GAP Layers ManipulationIn this tutorial, several frames in an extracted movie were manipulated using the Layers Modify, Layer Delete, Move Path and Flatten Frames dialogs from TheGIMP Animation Plug-in. In future tutorials, the sound needs to be changed and the whole thing re-encoded to play on other computers. |
|
|
|
|