How to Apply Lens Blur in Kdenlive
Simulating a shallow depth of field in Kdenlive is a great way to give your videos a professional, cinematic look by keeping your main subject sharp while softening the background. This article provides a direct, step-by-step guide on how to apply the Lens Blur effect and use masking techniques to isolate your subject, creating a realistic depth of field.
Step 1: Set Up Your Video Tracks
To simulate a shallow depth of field, you need two layers of the same video: one for the sharp foreground subject and one for the blurred background.
- Drag your video clip from the Project Bin onto the timeline.
- Duplicate the clip by copying and pasting it onto the track directly above (e.g., place the main clip on track V1 and the duplicate on track V2). Ensure both clips are perfectly aligned.
Step 2: Apply the Lens Blur Effect
The “Lens Blur” effect (often found under the “Blur and Hide” or “Frei0r” category depending on your Kdenlive version) will be applied to the background layer.
- Go to the Effects tab and search for Lens Blur (or Gaussian Blur if Lens Blur is unavailable in your package).
- Drag and drop the effect onto the bottom clip on track V1.
- Select the clip on V1, open the Effect/Composition Stack panel, and adjust the Radius or Blur slider to your preferred strength. A higher value creates a softer, more out-of-focus background.
Step 3: Isolate Your Subject with Rotoscoping
To make the subject on the top track (V2) stand out, you must mask out the background so the blurred layer underneath shows through.
- Select the top clip on track V2.
- In the Effects tab, search for Rotoscoping and apply it to this clip.
- In the project monitor, click around your subject to draw a mask. Close the mask by right-clicking on your first point.
- In the Rotoscoping effect settings, adjust the Feather width to soften the edges of your mask. This blends the sharp foreground subject naturally into the blurred background.
Step 4: Adjust and Fine-Tune
To make the effect look as realistic as possible:
- If your subject moves, click the Show Keyframe Ruler icon in the Rotoscoping effect settings to animate the mask path over time.
- Fine-tune the blur amount on the bottom track. A subtle blur usually looks more natural and convincing than an extremely heavy one.