Archive:Kdenlive/Manual/Effects/Blur and hide/Auto Mask: Difference between revisions

From KDE UserBase Wiki
(defect fixed)
m (Claus chr moved page Kdenlive/Manual/Effects/Blur and hide/Auto Mask to Archive:Kdenlive/Manual/Effects/Blur and hide/Auto Mask without leaving a redirect: Part of translatable page "Kdenlive/Manual/Effects/Blur and hide/Auto Mask")
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages />
<translate>


=== Auto Mask ===
=== Auto Mask === <!--T:1-->


<!--T:2-->
This effect can be used to mask peoples faces. It uses motion estimation to track subjects and mask faces. It is the MLT filter  [http://www.mltframework.org/bin/view/MLT/FilterAutotrackRectangleDiscussion autotrack_rectangle]
This effect can be used to mask peoples faces. It uses motion estimation to track subjects and mask faces. It is the MLT filter  [http://www.mltframework.org/bin/view/MLT/FilterAutotrackRectangleDiscussion autotrack_rectangle]


==== Demo ====
==== Demo ==== <!--T:3-->
{{#evp:youtube|rRg_i5C8_Hc}}
{{#ev:youtube|rRg_i5C8_Hc}}


==== How to apply Auto Mask ====
==== How to apply Auto Mask ==== <!--T:4-->
See video below on how to use this effect. Warning: The effect is not 100% reliable.  
See video below on how to use this effect. Warning: The effect is not 100% reliable.  


<!--T:5-->
{{#ev:youtube|ZD0WOsX6B5A}}
{{#ev:youtube|ZD0WOsX6B5A}}


==== Motion Tracking ====
==== Motion Tracking ==== <!--T:6-->


The Auto Mask effect can also be used to track motion of an object and use it later as keyframes for an effect / transition. (This functionality is not working in ver 0.9.10 of kdenlive - mantis [https://bugs.kdenlive.org/view.php?id=3338 3338])
<!--T:7-->
The Auto Mask effect can also be used to track motion of an object and use it later as keyframes for an effect / transition.  


{{Note|The method described here is a re-purposing of the motion tracking data that the Auto Mask effect calculates. You do not need to follow the method described below to generate an Auto Mask that will obscure faces. The instructions in the above video should be enough. Nor can you use the method describe below to improve the tracking of the mask created by the Auto Mask effect.}}
<!--T:8-->
{{Note|The method described here is a re-purposing of the motion tracking data that the Auto Mask effect calculates. You do not need to follow the method described below to generate an Auto Mask that will obscure faces. The instructions in the above video should be enough. Nor can you use the method described below to improve the tracking of the mask created by the Auto Mask effect.}}
To use this feature, first add the clip you want to analyse in timeline, and add the "Auto Mask" effect to it - Figure 1.


[[File:Tracking01.png|400px|thumb|right|Figure 1.]]Go to the first frame where your object is visible, and adjust the yellow rectangle so that is surrounds the object, like the hand in Figure 1.
<!--T:18-->
To use this feature, first, add the clip you want to analyze in the timeline, and add the "Auto Mask" effect to it - Figure 1.


<!--T:9-->
[[File:Tracking01.png|400px|thumb|right|Figure 1.]]Go to the first frame where your object is visible, and adjust the yellow rectangle so that it surrounds the object, like the hand in Figure 1.
<!--T:10-->
Then click on the <menuchoice>Analyse</menuchoice> button in the effect options. This will start an analysis of the clip (you can follow its progress in the Project Tree view). <br clear="all"/>
Then click on the <menuchoice>Analyse</menuchoice> button in the effect options. This will start an analysis of the clip (you can follow its progress in the Project Tree view). <br clear="all"/>


[[File:Tracking03.png|400px|thumb|right|Figure 2.]]When the job is finished, the motion tracking data is stored in the clip properties. To use this data, you can for example add a title clip over the clip you just analysed, like in the screenshot in Figure 2.. <br clear="all"/>
<!--T:11-->
[[File:Tracking03.png|400px|thumb|right|Figure 2.]]When the job is finished, the motion tracking data is stored in the clip properties. To use this data, you can, for example, add a title clip and affine transition over the clip you just analyzed, like in the screenshot in Figure 2.. <br clear="all"/>


[[File:Tracking02.png|400px|thumb|right|Figure 3.]]Next step is to import the motion data in the transition. To do this, first select the clip you have analysed, then select the transition using the <keycap>CTRL</keycap> key so that both items are selected. Finally, go in the transitions's config menu [[File:Kdenlive Config menu icon.png]] and select <menuchoice>Import keyframes from clip</menuchoice>. You can now delete the "Auto Mask" effect from the clip in timeline and play the project to see your title clip following the object.  
<!--T:12-->
[[File:Kdenlive Affine options menu.png|400px|thumb|right|Figure 3.]]Next step is to import the motion data in the transition. To do this, first, select the clip you have analyzed, then select the transition using the <keycap>CTRL</keycap> key so that both items are selected. Finally, go in the transitions's Options menu [[File:Kdenlive Affine options button.png]] and select <menuchoice>Import keyframes from clip</menuchoice>. You can now delete the "Auto Mask" effect from the clip in the timeline and play the project to see your title clip following the object.  


[[File:Kdenlive Import keyframes.png|400px|thumb|right|Figure 4.]]
<!--T:13-->
[[File:Kdenlive Import keyframes from clip.png|400px|thumb|right|Figure 4.]]
<br clear="all"/>
<br clear="all"/>
Checking the ''Limit keyframes number'' checkbox In the "Import Keyframes" dialog (Figure 4) will cause Kdenlive to only import every nth frame (where n is the number selected in the combo box). This is a useful feature if you want to manually edit the keyframes that are imported because it allows you limit the number of key frames you will need to manually edit. If this check box is not checked then you import a key frame for every frame that is in the source clip.<br>
Checking the ''Limit keyframes number'' checkbox In the "Import Keyframes" dialog (Figure 4) will cause Kdenlive to only import every nth frame (where n is the number selected in the combo box). This is a useful feature if you want to manually edit the keyframes that are imported because it allows you to limit the number of keyframes you will need to manually edit. If this checkbox is not checked then you import a keyframe for every frame that is in the source clip.<br>
Checking the ''Size'' checkbox in  the "Import Keyframes" dialog (Figure 4) will cause Kdenlive to also import the size information from the keyframes data and this will mean that the transition will be adjusted to be the same size as the obscure rectangle.
===== Deleting Motion Tracking Data =====
The motion tracking data is saved with the  [[Special:MyLanguage/Kdenlive/Manual/Projects_and_Files/Clips#Clip_Properties|clip properties]]. You can view this data and delete it from the clip properties dialog - Figure 5.


===== Deleting Motion Tracking Data ===== <!--T:14-->


<!--T:19-->
The motion tracking data is saved with the  [[Special:MyLanguage/Kdenlive/Manual/Projects_and_Files/Clips#Clip_Properties|clip properties]]. You can view this data from the clip properties Analysis tab - Figure 5.  Delete the data using button 1


[[File:Kdenlive Clip properties with motion vectors.png|400px|thumb|right|Figure 5.]]
 
 
<!--T:15-->
[[File:Kdenlive Clip properties analysis.png|400px|thumb|right|Figure 5 - Clip Properties - Analysis tab.]]
<br clear="all"/>
<br clear="all"/>


{{Note|A defect preventing this effect from working has recently been fixed. See defect }}
<!--T:16-->
 
{{Prevnext2
{{Prevnext2
| prevpage=Special:MyLanguage/Kdenlive/Manual/Effects/Blur_and_hide  
| prevpage=Special:MyLanguage/Kdenlive/Manual/Effects/Blur_and_hide  
Line 48: Line 62:
}}
}}


<!--T:17-->
[[Category:Kdenlive]]
[[Category:Kdenlive]]
</translate>

Latest revision as of 11:34, 15 August 2023

Other languages:

Auto Mask

This effect can be used to mask peoples faces. It uses motion estimation to track subjects and mask faces. It is the MLT filter autotrack_rectangle

Demo

How to apply Auto Mask

See video below on how to use this effect. Warning: The effect is not 100% reliable.

Motion Tracking

The Auto Mask effect can also be used to track motion of an object and use it later as keyframes for an effect / transition.

Note

The method described here is a re-purposing of the motion tracking data that the Auto Mask effect calculates. You do not need to follow the method described below to generate an Auto Mask that will obscure faces. The instructions in the above video should be enough. Nor can you use the method described below to improve the tracking of the mask created by the Auto Mask effect.


To use this feature, first, add the clip you want to analyze in the timeline, and add the "Auto Mask" effect to it - Figure 1.

Figure 1.

Go to the first frame where your object is visible, and adjust the yellow rectangle so that it surrounds the object, like the hand in Figure 1.

Then click on the Analyse button in the effect options. This will start an analysis of the clip (you can follow its progress in the Project Tree view).

Figure 2.

When the job is finished, the motion tracking data is stored in the clip properties. To use this data, you can, for example, add a title clip and affine transition over the clip you just analyzed, like in the screenshot in Figure 2..

Figure 3.

Next step is to import the motion data in the transition. To do this, first, select the clip you have analyzed, then select the transition using the CTRL key so that both items are selected. Finally, go in the transitions's Options menu and select Import keyframes from clip. You can now delete the "Auto Mask" effect from the clip in the timeline and play the project to see your title clip following the object.

Figure 4.


Checking the Limit keyframes number checkbox In the "Import Keyframes" dialog (Figure 4) will cause Kdenlive to only import every nth frame (where n is the number selected in the combo box). This is a useful feature if you want to manually edit the keyframes that are imported because it allows you to limit the number of keyframes you will need to manually edit. If this checkbox is not checked then you import a keyframe for every frame that is in the source clip.

Deleting Motion Tracking Data

The motion tracking data is saved with the clip properties. You can view this data from the clip properties Analysis tab - Figure 5. Delete the data using button 1


Figure 5 - Clip Properties - Analysis tab.