Bug 473803 - Issue with "Rotate (keyframable)" Effect in Kdenlive 23.04.3 Producing Incorrect Background Color in the final Render
Summary: Issue with "Rotate (keyframable)" Effect in Kdenlive 23.04.3 Producing Incorr...
Status: CONFIRMED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: 23.04.3
Platform: Mint (Ubuntu based) Linux
: NOR major
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-27 12:30 UTC by Shiba Prasad
Modified: 2024-10-02 12:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
This should reflect the anticipated outcome of the final render; however, the eventual output consistently displays a black background across all frames. (1.38 MB, image/gif)
2023-08-27 12:47 UTC, Shiba Prasad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shiba Prasad 2023-08-27 12:30:02 UTC
SUMMARY
The "Rotate (keyframable)" effect in Kdenlive version 23.04.3 appears to be malfunctioning. When applying this effect, adding some keyframe and specifying a user-defined background color, the rendered output displays a black background instead of the intended color. Interestingly, during the preview within the software, everything appears as expected with the correct background color; the issue only becomes apparent in the final rendered output.

STEPS TO REPRODUCE:
1. Open Kdenlive version 23.04.3.
2. Import a media and place it on the timeline.
3. Apply the "Rotate (keyframable)" effect to the media clip.
4. Set a custom background color for the effect, and animate it with a few keyframes.
5. Preview the timeline to observe the effect with the chosen background color (note that it appears correctly in the preview.
6. Render the project to a desired output format.
7. Check the rendered output for the presence of the issue - the background color is rendered as black instead of the user-specified color.

OBSERVED BEHAVIOR:
The effect behaves correctly during preview, showing the correct background color. However, in the final rendered output, the background color is replaced with black, rendering the intended background color inaccurately.

EXPECTED BEHAVIOR:
The "Rotate (keyframable)" effect should accurately follow the user-defined background color during both preview and final rendering, consistently maintaining the chosen color throughout the rendering process.

SOFTWARE/OS VERSIONS
Linux OS: Linux Mint 21.2 Cinnamon
Kdenlive is Installed via official stable PPA

(available in About System)
KDE Frameworks Version:  5.92.0
Qt Version: 5.15.3
MLT Version: 7.16.0

ADDITIONAL INFORMATION
Graphics Card: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630] (prog-if 00 [VGA controller])
Project Settings: [1920x1080, 25fps]
Comment 1 Shiba Prasad 2023-08-27 12:47:46 UTC
Created attachment 161216 [details]
This should reflect the anticipated outcome of the final render; however, the eventual output consistently displays a black background across all frames.
Comment 2 Shiba Prasad 2023-08-27 13:03:23 UTC
(In reply to Shiba Prasad from comment #0)
> SUMMARY
> The "Rotate (keyframable)" effect in Kdenlive version 23.04.3 appears to be
> malfunctioning. When applying this effect, adding some keyframe and
> specifying a user-defined background color, the rendered output displays a
> black background instead of the intended color. Interestingly, during the
> preview within the software, everything appears as expected with the correct
> background color; the issue only becomes apparent in the final rendered
> output.
> 
> STEPS TO REPRODUCE:
> 1. Open Kdenlive version 23.04.3.
> 2. Import a media and place it on the timeline.
> 3. Apply the "Rotate (keyframable)" effect to the media clip.
> 4. Set a custom background color for the effect, and animate it with a few
> keyframes.
> 5. Preview the timeline to observe the effect with the chosen background
> color (note that it appears correctly in the preview.
> 6. Render the project to a desired output format.
> 7. Check the rendered output for the presence of the issue - the background
> color is rendered as black instead of the user-specified color.
> 
> OBSERVED BEHAVIOR:
> The effect behaves correctly during preview, showing the correct background
> color. However, in the final rendered output, the background color is
> replaced with black, rendering the intended background color inaccurately.
> 
> EXPECTED BEHAVIOR:
> The "Rotate (keyframable)" effect should accurately follow the user-defined
> background color during both preview and final rendering, consistently
> maintaining the chosen color throughout the rendering process.
> 
> SOFTWARE/OS VERSIONS
> Linux OS: Linux Mint 21.2 Cinnamon
> Kdenlive is Installed via official stable PPA
> 
> (available in About System)
> KDE Frameworks Version:  5.92.0
> Qt Version: 5.15.3
> MLT Version: 7.16.0
> 
> ADDITIONAL INFORMATION
> Graphics Card: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
> (prog-if 00 [VGA controller])
> Project Settings: [1920x1080, 25fps]

Update: 
I discovered a workaround that seems to help. Here's what you can do: 
1. Select two clips and add them to your library.
2. This action makes Kdenlive save your selected timeline as an 'mlt' file.
3. Next, import this 'mlt' file back into your project.
4. Use the newly imported 'mlt' file as a clip.
5. Finally, render this clip, and it should come out correctly.
Comment 3 Bernd 2023-08-28 16:48:20 UTC
This effect uses the *affine* filter, the same as Position and Zoom. There are compositing artifacts with PaZ which apparently come from how *affine* is implemented in melt (the compositing and effects engine used by Kdenlive).

Unless you need rotation around the X and Z axes, you can use the Transform effect.