Jump to content

Archive:Kdenlive/Manual/Effects/Alpha manipulation/Rotoscoping: Difference between revisions

From KDE UserBase Wiki
Ttguy (talk | contribs)
more description on how it works - Bézier_curve and all that.
Claus chr (talk | contribs)
m Claus chr moved page Kdenlive/Manual/Effects/Alpha manipulation/Rotoscoping to Archive:Kdenlive/Manual/Effects/Alpha manipulation/Rotoscoping without leaving a redirect: Part of translatable page "Kdenlive/Manual/Effects/Alpha manipulation/Rotoscoping"
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>
== Rotoscoping == <!--T:1-->
==== Rotoscoping ==== <!--T:1-->
 
===== What is Rotoscoping? ===== <!--T:18-->


<!--T:2-->
<!--T:2-->
"In the visual effects industry, the term rotoscoping refers to the technique of manually creating a matte for an element on a live-action plate so it may be composited over another background." [http://en.wikipedia.org/wiki/Rotoscoping Wikipedia]
"In the visual effects industry, the term rotoscoping refers to the technique of manually creating a matte for an element on a live-action plate so it may be composited over another background." [http://en.wikipedia.org/wiki/Rotoscoping Wikipedia]


Use this effect in combination with a composite transition to draw a region on one video track which will be transparent and allow the video track underneath to appear.
<!--T:19-->
Draw a region on one video track, and everything outside/inside that region will dissapear, showing the video track underneath.
 
<!--T:20-->
[[File:Kdenlive_rotoscoping.png|900px]]
 
===== How to draw the region in Kdenlive? ===== <!--T:21-->


The region is drawn by creating a [http://en.wikipedia.org/wiki/Bézier_curve Bézier_curve] on the frame.  <br>
Add nodes to the Bézier_curve by left clicking the mouse.  <br>
Close the curve by clicking back on the first node added. <br>
Remove nodes by right clicking on them.  <br>
Insert extra nodes in the curve by clicking on the line between nodes. <br>
Change the position of the curve by dragging the middle control point of a node. <br>
Adjust the shape of the curve by dragging the control "handles"<br>


To make the drawn mask follow the action in a clip move the position in the clip by dragging the carat on the time line (1 or 3 in screenshot below) or by using the time code control in the rotoscope effect (2 in the screenshot) and then click ''add key frame'' (5 in the screen shot).  Now adjust the position of the nodes in the curve to match the action. Kdenlive will calculate a path to move the nodes from the position they were in the previous key frame to the position you put them in at this keyframe.  So you do not have to draw a curve for every frame in the clip.


<!--T:27-->
The region is drawn by adding nodes along your region. These act as edges for your rotoscope, and there is a line between each node.
The line between each node can be made into a [http://en.wikipedia.org/wiki/Bézier_curve Bézier_curve] using "handles".<br>
Add nodes to the node by left clicking the mouse.<br>
Close the region by right clicking the mouse on one of the nodes.<br>
Change the position of the region by moving a node. <br>
Make a line curved by dragging the control "handles". These are the two dots on the ends  of the straight lines that appear on the curve (see screen shot above).<br>
[[File:Rotoscoping_Handles.png]] <br>
To define if it is the inside or the outside of the curve that is transparent toggle the ''invert'' checkbox.
<!--T:26-->
In a previous version of kdenlive you could add a new nodes by clicking on the line between existing nodes. You could subtract nodes by right clicking on them. But it looks like you can not do this with the 17.04 & 18.04 version.
===== How to move the mask to follow the action - keyframes ===== <!--T:23-->
<!--T:24-->
To make the drawn mask follow the action in a clip... <br>
Move the position in the clip by dragging the carat on the time line (1 or 3 in screenshot below) or by using the time code control in the rotoscope effect (2 in the screenshot) <br>
Click ''add key frame'' (5 in the screen shot).  <br>
Now adjust the position of the nodes in the curve to match the action. <br>
Kdenlive will calculate a path to move the nodes from the position they were in the previous key frame to the position you put them in at this keyframe.  So you do not have to draw a curve for every frame in the clip.<br>
To remove a key frame move to the frame with the key frame using the ''Go to previous keyframe'' (4) or ''Go to next keyframe'' (6) and then click the red X that the ''add key frame'' (5) becomes when you are on an existing keyframe.
To remove a key frame move to the frame with the key frame using the ''Go to previous keyframe'' (4) or ''Go to next keyframe'' (6) and then click the red X that the ''add key frame'' (5) becomes when you are on an existing keyframe.
<!--T:25-->
[[File:Kdenlive Rotoscoping drag points.png]]


<!--T:3-->
<!--T:3-->
This effect is based on the MLT [http://www.mltframework.org/bin/view/MLT/FilterRotoscoping FilterRotoscoping]  <br>
This effect is based on the MLT [http://www.mltframework.org/bin/view/MLT/FilterRotoscoping FilterRotoscoping]  <br>


=== Rotoscoping options greyed out === <!--T:4-->
===== Rotoscoping options greyed out ===== <!--T:4-->


<!--T:5-->
<!--T:5-->
Line 34: Line 58:
Solution. Click in the project monitor and start drawing your rotoscope matte. Then the rotoscope keyframe options become enabled.
Solution. Click in the project monitor and start drawing your rotoscope matte. Then the rotoscope keyframe options become enabled.


=== Examples === <!--T:8-->
===== Examples ===== <!--T:8-->


<!--T:9-->
<!--T:9-->
Line 50: Line 74:
see also Rotoscoping on [http://kdenlive.org/users/ttill/rotoscoping ttill's blog]
see also Rotoscoping on [http://kdenlive.org/users/ttill/rotoscoping ttill's blog]


=== Tutorial with Rotoscoping === <!--T:13-->
===== Tutorial with Rotoscoping ===== <!--T:13-->


<!--T:14-->
<!--T:14-->

Latest revision as of 12:56, 15 August 2023

Rotoscoping

What is Rotoscoping?

"In the visual effects industry, the term rotoscoping refers to the technique of manually creating a matte for an element on a live-action plate so it may be composited over another background." Wikipedia

Draw a region on one video track, and everything outside/inside that region will dissapear, showing the video track underneath.

How to draw the region in Kdenlive?

The region is drawn by adding nodes along your region. These act as edges for your rotoscope, and there is a line between each node. The line between each node can be made into a Bézier_curve using "handles".
Add nodes to the node by left clicking the mouse.
Close the region by right clicking the mouse on one of the nodes.
Change the position of the region by moving a node.
Make a line curved by dragging the control "handles". These are the two dots on the ends of the straight lines that appear on the curve (see screen shot above).

To define if it is the inside or the outside of the curve that is transparent toggle the invert checkbox.

In a previous version of kdenlive you could add a new nodes by clicking on the line between existing nodes. You could subtract nodes by right clicking on them. But it looks like you can not do this with the 17.04 & 18.04 version.

How to move the mask to follow the action - keyframes

To make the drawn mask follow the action in a clip...
Move the position in the clip by dragging the carat on the time line (1 or 3 in screenshot below) or by using the time code control in the rotoscope effect (2 in the screenshot)
Click add key frame (5 in the screen shot).
Now adjust the position of the nodes in the curve to match the action.
Kdenlive will calculate a path to move the nodes from the position they were in the previous key frame to the position you put them in at this keyframe. So you do not have to draw a curve for every frame in the clip.
To remove a key frame move to the frame with the key frame using the Go to previous keyframe (4) or Go to next keyframe (6) and then click the red X that the add key frame (5) becomes when you are on an existing keyframe.

This effect is based on the MLT FilterRotoscoping

Rotoscoping options greyed out

When you first add the rotoscope effect the keyframe options in it are greyed out. You can not even add a new keyframe.

Solution. Click in the project monitor and start drawing your rotoscope matte. Then the rotoscope keyframe options become enabled.

Examples

Examples of what you can do with the Rotoscoping effect.



see also Rotoscoping on ttill's blog

Tutorial with Rotoscoping

This video is about green screen on Kdenlive but he does use rotoscoping in it too.